Signer information does not match

前端 未结 7 1384
粉色の甜心
粉色の甜心 2020-12-08 21:43

I\'m receving the following error on log file.

(java.lang.SecurityException: class \"com.adventnet.snmp.snmp2.SecurityModelTable\"\'s signer inform

7条回答
  •  情话喂你
    2020-12-08 22:14

    I encountered this exception while running a Scala/Spark project in Eclipse (Mars) on Windows and it prevented me from debugging and running the project in the IDE. The project used a Maven pom.xml file. It took a while to resolve, so I'm posting detailed steps here to help others:

    1. Go to the folder where your project pom.xml file is
    2. Run the command: mvn dependency:tree -Dverbose >Depends.Txt Make sure you don't have a Depends.Txt or it will be overwritten!
    3. Search in the Depends.Txt file for the unsigned class that the Eclipse IDE is complaining about. In my case, it was javax.servlet.
    4. You may find it in a section that looks like this:

      +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.6.0:provided

      +- javax.servlet:servlet-api:jar:2.5:provided

    5. The Maven group ID that you want to exclude the duplicate class from in the above is: hadoop-mapreduce-client-core

    6. Add an exclusions section listing the groupid of the exclusion in the pom.xml after the offending package. In my case, this was the groupid javax.servlet.

    7. Note that you can't resolve this issue by reordering the Java build path as some have posted for a similar problem.

提交回复
热议问题