jQuery in Action, 3rd edition
The moose likes Other JSE/JEE APIs and the fly likes ClassLoader.checkCerts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "ClassLoader.checkCerts" Watch "ClassLoader.checkCerts" New topic


Ritu Pande

Joined: Jun 05, 2005
Posts: 17
Dear All,

What is the solution for following exception. Pls help me out.

Exception in thread "main" java.lang.SecurityException: class "org.mozilla.jss.C
ryptoManager$UserCertConflictException"'s signer information does not match sign
er information of other classes in the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at Pruebas.main(Pruebas.java:18)

Thnx in adv.
Rodrigo Lopes
Ranch Hand

Joined: Feb 29, 2008
Posts: 119
This happens when classes belonging to the same package are loaded from different JAR files, and those JAR files have signatures signed with different certificates or, perhaps more often, at least one is signed and one or more others are not. This includes classes loaded from directories.

Copied from answer in Stackoverflow
I agree. Here's the link: http://aspose.com/file-tools
subject: ClassLoader.checkCerts
It's not a secret anymore!