CGLib « Jar « JPA Q&A





1. URGENT, PLEASE. CGLIB error with 2.1rc and cglib2.jar    forum.hibernate.org

Hi [again], :( I get the following error when switching from 2.1 beta 5 to 2.1 rc with the new CGLIB2 jar: 13:47:28,218 ERROR LazyInitializer:59 - CGLIB Enhancement failed java.lang.ExceptionInInitializerError at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.cglib.proxy.EnhancerEmitter.setThreadCallbacks(EnhancerEmitter.java:194) at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:345) at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:326) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:195) at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:305) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:221) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:380) at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:50) at net.sf.hibernate.persister.AbstractEntityPersister.(AbstractEntityPersister.java:793) at net.sf.hibernate.persister.NormalizedEntityPersister.(NormalizedEntityPersister.java:739) at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:44) ...

2. CGLIB generating SecurityException on signed jars    forum.hibernate.org

I have an application using Hibernate to interface with a SQLServer database. This application has been running fine. But I have a new requirement to deploy parts of my application remotely, which requires me to sign my jar files. Unfortunately signing my jar files seems to break Hibernate's use of CGLIB, as it generates proxy classes in the same package as ...