Announcement Announcement Module
Collapse
No announcement yet.
SecurityException with signet jars and CGLIB's proxies Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SecurityException with signet jars and CGLIB's proxies

    I have application signet from me for Java Web Start environment with all permisions. But it does not run correctly when a CGLIB proxy is created.

    the error is:

    Caused by: java.lang.SecurityException: class "com.xxx.StorageServer$$EnhancerByCGLIB$$cf80ab43" 's signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java: 775)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.j ava:487)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :614)

    Even if I set the SecurityManager to null this error still comes, because it is thrown directly from the ClassLoader.

    Does it mean that CGLIBs proxies can not be used at all with signet jars? How should it work then with the AOP and other dynamic proxies?

    any suggestions?
Working...
X