-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: CGLIB Issues When Application Compiled on different computer
PostPosted: Thu Aug 10, 2006 2:42 pm 
Beginner
Beginner

Joined: Fri Apr 22, 2005 5:58 pm
Posts: 26
Has anyone ever had an instance where the CGLIB optimizer didn't work under some conditions? I have two computers (desktop/laptop) that are very similar. I think the JDK versions might be a little off, but they are both 1.5.

I am using Netbeans on both to build my application. They both have identical source code bases for my application, I just took clean copies from CVS on both machines.

the JAR file that is generated on my desktop runs fine on both the laptop, desktop and server. The JAR that is generated on my laptop won't run on any of them... and it generates errors during the CGLIB optimization process.

I am using hibernate 3, with the most recent stable version of CGLIB. Here is a sample error message... (and yes, i have public no arg const for all my mapping classes).

Code:
2006-08-10 14:22:27,055 ERROR [main] (CGLIBLazyInitializer.java:103) - CGLIB Enhancement failed: com.connectfirst.intelliqueue.model.SOAPServiceInput
java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/XMLType
   at com.connectfirst.intelliqueue.model.SOAPService.<clinit>(SOAPService.java:94)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at com.connectfirst.intelliqueue.model.SOAPServiceInput$$EnhancerByCGLIB$$c6a08eda.CGLIB$STATICHOOK1(<generated>)
   at com.connectfirst.intelliqueue.model.SOAPServiceInput$$EnhancerByCGLIB$$c6a08eda.<clinit>(<generated>)
   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:585)
   at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:547)
   at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:536)
   at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:562)
   at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:493)
   at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:220)
   at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:368)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:280)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:597)
   at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
   at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:42)
   at org.hibernate.tuple.PojoTuplizer.buildProxyFactory(PojoTuplizer.java:144)
   at org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:83)
   at org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:54)
   at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:218)
   at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:400)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:211)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
   at com.connectfirst.intelliqueue.utils.HibernateUtil.<clinit>(HibernateUtil.java:36)
   at com.connectfirst.intelliqueue.IntelliQueue.startup(IntelliQueue.java:96)
   at com.connectfirst.intelliqueue.IntelliQueue.main(IntelliQueue.java:54)
2006-08-10 14:22:28,550 WARN  [main] (PojoTuplizer.java:156) - could not create proxy factory for:com.connectfirst.intelliqueue.model.SOAPServiceInput
org.hibernate.HibernateException: CGLIB Enhancement failed: com.connectfirst.intelliqueue.model.SOAPServiceInput
   at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:108)
   at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:42)
   at org.hibernate.tuple.PojoTuplizer.buildProxyFactory(PojoTuplizer.java:144)
   at org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:83)
   at org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:54)
   at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:218)
   at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:400)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:211)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
   at com.connectfirst.intelliqueue.utils.HibernateUtil.<clinit>(HibernateUtil.java:36)
   at com.connectfirst.intelliqueue.IntelliQueue.startup(IntelliQueue.java:96)
   at com.connectfirst.intelliqueue.IntelliQueue.main(IntelliQueue.java:54)
Caused by: java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/XMLType
   at com.connectfirst.intelliqueue.model.SOAPService.<clinit>(SOAPService.java:94)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at com.connectfirst.intelliqueue.model.SOAPServiceInput$$EnhancerByCGLIB$$c6a08eda.CGLIB$STATICHOOK1(<generated>)
   at com.connectfirst.intelliqueue.model.SOAPServiceInput$$EnhancerByCGLIB$$c6a08eda.<clinit>(<generated>)
   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:585)
   at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:547)
   at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:536)
   at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:562)
   at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:493)
   at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:220)
   at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:368)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:280)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:597)
   at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
   ... 14 more
2006-08-10 14:22:28,932 ERROR [main] (CGLIBLazyInitializer.java:103) - CGLIB Enhancement failed: com.connectfirst.intelliqueue.model.Gate
java.lang.NoClassDefFoundError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at com.connectfirst.intelliqueue.model.Gate$$EnhancerByCGLIB$$e623e5b5.CGLIB$STATICHOOK4(<generated>)
   at com.connectfirst.intelliqueue.model.Gate$$EnhancerByCGLIB$$e623e5b5.<clinit>(<generated>)
   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:585)
   at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:547)
   at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:536)
   at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:562)
   at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:493)
   at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:220)
   at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:368)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:280)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:597)
   at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
   at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:42)
   at org.hibernate.tuple.PojoTuplizer.buildProxyFactory(PojoTuplizer.java:144)
   at org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:83)
   at org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:54)
   at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:218)
   at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:400)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:211)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
   at com.connectfirst.intelliqueue.utils.HibernateUtil.<clinit>(HibernateUtil.java:36)
   at com.connectfirst.intelliqueue.IntelliQueue.startup(IntelliQueue.java:96)
   at com.connectfirst.intelliqueue.IntelliQueue.main(IntelliQueue.java:54)
2006-08-10 14:22:30,107 WARN  [main] (PojoTuplizer.java:156) - could not create proxy factory for:com.connectfirst.intelliqueue.model.Gate
org.hibernate.HibernateException: CGLIB Enhancement failed: com.connectfirst.intelliqueue.model.Gate
   at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:108)
   at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:42)
   at org.hibernate.tuple.PojoTuplizer.buildProxyFactory(PojoTuplizer.java:144)
   at org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:83)
   at org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:54)
   at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:218)
   at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:400)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:211)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
   at com.connectfirst.intelliqueue.utils.HibernateUtil.<clinit>(HibernateUtil.java:36)
   at com.connectfirst.intelliqueue.IntelliQueue.startup(IntelliQueue.java:96)
   at com.connectfirst.intelliqueue.IntelliQueue.main(IntelliQueue.java:54)
Caused by: java.lang.NoClassDefFoundError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at com.connectfirst.intelliqueue.model.Gate$$EnhancerByCGLIB$$e623e5b5.CGLIB$STATICHOOK4(<generated>)
   at com.connectfirst.intelliqueue.model.Gate$$EnhancerByCGLIB$$e623e5b5.<clinit>(<generated>)
   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:585)
   at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:547)
   at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:536)
   at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:562)
   at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:493)
   at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:220)
   at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:368)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:280)
   at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:597)
   at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
   ... 14 more


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 10:02 pm 
Beginner
Beginner

Joined: Fri Apr 22, 2005 5:58 pm
Posts: 26
Maybe I am barking up the wrong tree here... perhaps missing something obvious. Can anyone think of a reason that these errors would be generated, aside from the common "no public no-arg const" issue...

If there is any more information I could provide please let me know.

Thanks,
Geoff


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.