Announcement Announcement Module
No announcement yet.
SecurityException with signet jars and CGLIB's proxies Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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 "$$EnhancerByCGLIB$$cf80ab43" 's signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts( 775)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.j ava:487)
    at java.lang.ClassLoader.defineClass( :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?