net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null

Hibernate JIRA | Benoit Menendez | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I just upgraded from the 2.1 rc1 to 2.1 final and I am having the following problem. If I restore the cglib2.jar from rc1 everything works. 2003-12-12 17:51:50,059 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/User.hbm.xml 2003-12-12 17:51:50,900 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.User -> KMS_USER 2003-12-12 17:51:51,481 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.roles -> KMS_USER_ROLE 2003-12-12 17:51:51,521 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.proficiencies -> KMS_USER_SKILL 2003-12-12 17:51:51,541 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.subscription -> KMS_SUBSCRIPTION 2003-12-12 17:51:51,541 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.readings -> KMS_USER_DOCUMENT 2003-12-12 17:51:51,551 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.settings -> KMS_USER_VIEW 2003-12-12 17:51:51,551 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Role.hbm.xml 2003-12-12 17:51:51,711 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Role -> KMS_ROLE 2003-12-12 17:51:51,721 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Skill.hbm.xml 2003-12-12 17:51:51,851 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Skill -> KMS_SKILL 2003-12-12 17:51:51,851 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Department.hbm.xml 2003-12-12 17:51:51,971 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Department -> KMS_DEPARTMENT 2003-12-12 17:51:51,982 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/View.hbm.xml 2003-12-12 17:51:52,132 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.View -> KMS_VIEW 2003-12-12 17:51:52,142 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.View.fields -> KMS_DISPLAY 2003-12-12 17:51:52,152 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.View.filters -> KMS_FILTER 2003-12-12 17:51:52,182 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/UserSession.hbm.xml 2003-12-12 17:51:52,302 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.UserSession -> KMS_SESSION 2003-12-12 17:51:52,312 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Document.hbm.xml 2003-12-12 17:51:52,432 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Document -> KMS_DOCUMENT 2003-12-12 17:51:52,482 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.Document.permissions -> KMS_PERMISSION 2003-12-12 17:51:52,642 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.FileDocument -> KMS_DOCUMENT 2003-12-12 17:51:52,662 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Link -> KMS_DOCUMENT 2003-12-12 17:51:52,672 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Message -> KMS_DOCUMENT 2003-12-12 17:51:52,733 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Topic -> KMS_DOCUMENT 2003-12-12 17:51:52,743 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Folder -> KMS_DOCUMENT 2003-12-12 17:51:52,743 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Version.hbm.xml 2003-12-12 17:51:52,883 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Version -> KMS_VERSION 2003-12-12 17:51:52,893 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/MessageDetail.hbm.xml 2003-12-12 17:51:53,013 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.MessageDetail -> KMS_MESSAGE 2003-12-12 17:51:53,013 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: cch/Employee.hbm.xml 2003-12-12 17:51:53,133 INFO [net.sf.hibernate.cfg.Binder] Mapping class: cch.Employee -> CCH_EMPLOYEE 2003-12-12 17:51:53,183 INFO [net.sf.hibernate.cfg.Configuration] processing one-to-many association mappings 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.util.ReflectHelper] reflection optimizer disabled for: system.Filter, IllegalArgumentException: Cannot find matching method/constructor 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.FileDocument.versions -> KMS_VERSION 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.cfg.Configuration] processing one-to-one association property references 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.cfg.Configuration] processing foreign key constraints 2003-12-12 17:51:55,316 INFO [net.sf.hibernate.dialect.Dialect] Using dialect: net.sf.hibernate.dialect.SAPDBDialect 2003-12-12 17:51:55,316 INFO [net.sf.hibernate.cfg.SettingsFactory] Use outer join fetching: true 2003-12-12 17:51:55,336 INFO [net.sf.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: com.proinsight.objects.ConnectionProvider 2003-12-12 17:51:55,376 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transaction.JBossTransactionManagerLookup 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] Use scrollable result sets: true 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] JDBC 2 max batch size: 15 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] Query language substitutions: {} 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] cache provider: net.sf.hibernate.cache.HashtableCacheProvider 2003-12-12 17:51:55,426 INFO [net.sf.hibernate.cfg.Configuration] instantiating and configuring caches 2003-12-12 17:51:55,557 INFO [net.sf.hibernate.impl.SessionFactoryImpl] building session factory 2003-12-12 17:51:55,767 INFO [net.sf.hibernate.util.ReflectHelper] reflection optimizer disabled for: system.Folder, BulkBeanException: Property is private (property setCreatedById) 2003-12-12 17:51:56,478 INFO [net.sf.hibernate.util.ReflectHelper] reflection optimizer disabled for: system.View, BulkBeanException: Property is private (property setCreatedById) 2003-12-12 17:51:56,588 ERROR [net.sf.hibernate.proxy.LazyInitializer] CGLIB Enhancement failed net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192) at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:246) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:406) at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:74) at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:801) at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:741) at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:41) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:136) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726) at com.proinsight.objects.ObjectDataSource.getSessionFactory(ObjectDataSource.java:173) at com.proinsight.objects.ObjectDataSource.<clinit>(ObjectDataSource.java:42) at com.proinsight.servlets.KMSProInsightServlet.init(KMSProInsightServlet.java:43) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:530) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:394) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589) 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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291) at org.jboss.Main.boot(Main.java:150) at org.jboss.Main$1.run(Main.java:395) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:181) ... 72 more Caused by: java.lang.ClassFormatError: Illegal Field name "CGLIB$load_class$ARRAY0$_Ljava_lang_String;" at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.lang.ClassLoader.defineClass(ClassLoader.java:382) ... 77 more

    Hibernate JIRA | 1 decade ago | Benoit Menendez
    net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
  2. 0

    I just upgraded from the 2.1 rc1 to 2.1 final and I am having the following problem. If I restore the cglib2.jar from rc1 everything works. 2003-12-12 17:51:50,059 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/User.hbm.xml 2003-12-12 17:51:50,900 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.User -> KMS_USER 2003-12-12 17:51:51,481 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.roles -> KMS_USER_ROLE 2003-12-12 17:51:51,521 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.proficiencies -> KMS_USER_SKILL 2003-12-12 17:51:51,541 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.subscription -> KMS_SUBSCRIPTION 2003-12-12 17:51:51,541 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.readings -> KMS_USER_DOCUMENT 2003-12-12 17:51:51,551 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.User.settings -> KMS_USER_VIEW 2003-12-12 17:51:51,551 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Role.hbm.xml 2003-12-12 17:51:51,711 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Role -> KMS_ROLE 2003-12-12 17:51:51,721 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Skill.hbm.xml 2003-12-12 17:51:51,851 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Skill -> KMS_SKILL 2003-12-12 17:51:51,851 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Department.hbm.xml 2003-12-12 17:51:51,971 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Department -> KMS_DEPARTMENT 2003-12-12 17:51:51,982 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/View.hbm.xml 2003-12-12 17:51:52,132 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.View -> KMS_VIEW 2003-12-12 17:51:52,142 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.View.fields -> KMS_DISPLAY 2003-12-12 17:51:52,152 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.View.filters -> KMS_FILTER 2003-12-12 17:51:52,182 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/UserSession.hbm.xml 2003-12-12 17:51:52,302 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.UserSession -> KMS_SESSION 2003-12-12 17:51:52,312 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Document.hbm.xml 2003-12-12 17:51:52,432 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Document -> KMS_DOCUMENT 2003-12-12 17:51:52,482 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.Document.permissions -> KMS_PERMISSION 2003-12-12 17:51:52,642 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.FileDocument -> KMS_DOCUMENT 2003-12-12 17:51:52,662 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Link -> KMS_DOCUMENT 2003-12-12 17:51:52,672 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Message -> KMS_DOCUMENT 2003-12-12 17:51:52,733 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Topic -> KMS_DOCUMENT 2003-12-12 17:51:52,743 INFO [net.sf.hibernate.cfg.Binder] Mapping subclass: system.Folder -> KMS_DOCUMENT 2003-12-12 17:51:52,743 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/Version.hbm.xml 2003-12-12 17:51:52,883 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.Version -> KMS_VERSION 2003-12-12 17:51:52,893 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: system/MessageDetail.hbm.xml 2003-12-12 17:51:53,013 INFO [net.sf.hibernate.cfg.Binder] Mapping class: system.MessageDetail -> KMS_MESSAGE 2003-12-12 17:51:53,013 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: cch/Employee.hbm.xml 2003-12-12 17:51:53,133 INFO [net.sf.hibernate.cfg.Binder] Mapping class: cch.Employee -> CCH_EMPLOYEE 2003-12-12 17:51:53,183 INFO [net.sf.hibernate.cfg.Configuration] processing one-to-many association mappings 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.util.ReflectHelper] reflection optimizer disabled for: system.Filter, IllegalArgumentException: Cannot find matching method/constructor 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.cfg.Binder] Mapping collection: system.FileDocument.versions -> KMS_VERSION 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.cfg.Configuration] processing one-to-one association property references 2003-12-12 17:51:55,166 INFO [net.sf.hibernate.cfg.Configuration] processing foreign key constraints 2003-12-12 17:51:55,316 INFO [net.sf.hibernate.dialect.Dialect] Using dialect: net.sf.hibernate.dialect.SAPDBDialect 2003-12-12 17:51:55,316 INFO [net.sf.hibernate.cfg.SettingsFactory] Use outer join fetching: true 2003-12-12 17:51:55,336 INFO [net.sf.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: com.proinsight.objects.ConnectionProvider 2003-12-12 17:51:55,376 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transaction.JBossTransactionManagerLookup 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] Use scrollable result sets: true 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] JDBC 2 max batch size: 15 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] Query language substitutions: {} 2003-12-12 17:51:55,406 INFO [net.sf.hibernate.cfg.SettingsFactory] cache provider: net.sf.hibernate.cache.HashtableCacheProvider 2003-12-12 17:51:55,426 INFO [net.sf.hibernate.cfg.Configuration] instantiating and configuring caches 2003-12-12 17:51:55,557 INFO [net.sf.hibernate.impl.SessionFactoryImpl] building session factory 2003-12-12 17:51:55,767 INFO [net.sf.hibernate.util.ReflectHelper] reflection optimizer disabled for: system.Folder, BulkBeanException: Property is private (property setCreatedById) 2003-12-12 17:51:56,478 INFO [net.sf.hibernate.util.ReflectHelper] reflection optimizer disabled for: system.View, BulkBeanException: Property is private (property setCreatedById) 2003-12-12 17:51:56,588 ERROR [net.sf.hibernate.proxy.LazyInitializer] CGLIB Enhancement failed net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192) at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:246) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:406) at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:74) at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:801) at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:741) at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:41) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:136) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726) at com.proinsight.objects.ObjectDataSource.getSessionFactory(ObjectDataSource.java:173) at com.proinsight.objects.ObjectDataSource.<clinit>(ObjectDataSource.java:42) at com.proinsight.servlets.KMSProInsightServlet.init(KMSProInsightServlet.java:43) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:530) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:394) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589) 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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291) at org.jboss.Main.boot(Main.java:150) at org.jboss.Main$1.run(Main.java:395) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:181) ... 72 more Caused by: java.lang.ClassFormatError: Illegal Field name "CGLIB$load_class$ARRAY0$_Ljava_lang_String;" at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.lang.ClassLoader.defineClass(ClassLoader.java:382) ... 77 more

    Hibernate JIRA | 1 decade ago | Benoit Menendez
    net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
  3. 0

    I've decided to turn on Proxool connection pool and it throws the following exception on startup: [19:20:56.899] Proxool Provider using delegate JDBC Driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/boxlife [19:20:56.930] Proxool Provider Connection URL: proxool.hibernate-1:com.mysql.jdbc.Driver:jdbc:mysql://localhost/boxlife [19:20:57.128] Proxool 0.8.2-bh-1+ [19:20:57.434] Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory [19:20:57.582] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) [19:20:59.164] Prototype [19:20:59.164] net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.164] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192) [19:20:59.164] at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330) [19:20:59.164] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:246) [19:20:59.164] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:406) [19:20:59.164] at org.logicalcobwebs.proxool.ProxyFactory.buildProxyConnection(ProxyFactory.java:44) [19:20:59.164] at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:150) [19:20:59.164] at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:95) [19:20:59.164] at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:42) [19:20:59.164] Caused by: java.lang.reflect.InvocationTargetException [19:20:59.164] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:20:59.164] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [19:20:59.164] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [19:20:59.164] at java.lang.reflect.Method.invoke(Method.java:324) [19:20:59.164] at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373) [19:20:59.164] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:181) [19:20:59.164] ... 7 more [19:20:59.164] Caused by: java.lang.ClassFormatError: Illegal Class name "java/sql/Connection$$EnhancerByCGLIB$$f39e9d85-2" [19:20:59.164] at java.lang.ClassLoader.defineClass0(Native Method) [19:20:59.164] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [19:20:59.164] at java.lang.ClassLoader.defineClass(ClassLoader.java:382) [19:20:59.164] ... 13 more [19:20:59.174] Couldn't get connection [19:20:59.174] net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.174] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192) [19:20:59.174] at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330) [19:20:59.174] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:246) [19:20:59.174] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:406) [19:20:59.174] at org.logicalcobwebs.proxool.ProxyFactory.buildProxyConnection(ProxyFactory.java:44) [19:20:59.174] at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:150) [19:20:59.174] at org.logicalcobwebs.proxool.PrototyperController.buildConnection(PrototyperController.java:88) [19:20:59.174] at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:222) [19:20:59.174] at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89) [19:20:59.174] at java.sql.DriverManager.getConnection(DriverManager.java:512) [19:20:59.174] at java.sql.DriverManager.getConnection(DriverManager.java:193) [19:20:59.174] at net.sf.hibernate.connection.ProxoolConnectionProvider.getConnection(ProxoolConnectionProvider.java:46) [19:20:59.174] at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [19:20:59.174] at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1078) [19:20:59.174] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724) [19:20:59.174] at pl.elysium.hibernate.struts.util.HibernatePlugIn.initHibernate(HibernatePlugIn.java:113) [19:20:59.174] at pl.elysium.hibernate.struts.util.HibernatePlugIn.init(HibernatePlugIn.java:90) [19:20:59.174] at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) [19:20:59.174] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) [19:20:59.174] at javax.servlet.GenericServlet.init(GenericServlet.java:82) [19:20:59.174] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:511) [19:20:59.174] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153) [19:20:59.174] at com.caucho.server.webapp.Application.start(Application.java:1318) [19:20:59.174] at com.caucho.server.webapp.WebAppEntry.createApplicationInt(WebAppEntry.java:656) [19:20:59.174] at com.caucho.server.webapp.WebAppEntry.createApplication(WebAppEntry.java:460) [19:20:59.174] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:541) [19:20:59.174] at com.caucho.server.host.Host.start(Host.java:433) [19:20:59.174] at com.caucho.server.host.HostEntry.createHostInt(HostEntry.java:520) [19:20:59.174] at com.caucho.server.host.HostEntry.createHost(HostEntry.java:298) [19:20:59.174] at com.caucho.server.host.HostContainer.start(HostContainer.java:504) [19:20:59.174] at com.caucho.server.resin.ServletServer.start(ServletServer.java:727) [19:20:59.174] at com.caucho.server.resin.ResinServer.start(ResinServer.java:363) [19:20:59.174] at com.caucho.server.resin.Resin.init(Resin.java:284) [19:20:59.174] at com.caucho.server.resin.Resin.main(Resin.java:490) [19:20:59.174] Caused by: java.lang.reflect.InvocationTargetException [19:20:59.174] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:20:59.174] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [19:20:59.174] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [19:20:59.174] at java.lang.reflect.Method.invoke(Method.java:324) [19:20:59.174] at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373) [19:20:59.174] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:181) [19:20:59.174] ... 33 more [19:20:59.174] Caused by: java.lang.ClassFormatError: Illegal Field name "CGLIB$load_class$ARRAY0$_Ljava_lang_String;" [19:20:59.174] at java.lang.ClassLoader.defineClass0(Native Method) [19:20:59.174] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [19:20:59.174] at java.lang.ClassLoader.defineClass(ClassLoader.java:382) [19:20:59.174] ... 39 more [19:20:59.222] Problem [19:20:59.222] java.sql.SQLException: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.222] at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:238) [19:20:59.222] at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89) [19:20:59.222] at java.sql.DriverManager.getConnection(DriverManager.java:512) [19:20:59.222] at java.sql.DriverManager.getConnection(DriverManager.java:193) [19:20:59.222] at net.sf.hibernate.connection.ProxoolConnectionProvider.getConnection(ProxoolConnectionProvider.java:46) [19:20:59.222] at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [19:20:59.222] at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1078) [19:20:59.222] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724) [19:20:59.222] at pl.elysium.hibernate.struts.util.HibernatePlugIn.initHibernate(HibernatePlugIn.java:113) [19:20:59.222] at pl.elysium.hibernate.struts.util.HibernatePlugIn.init(HibernatePlugIn.java:90) [19:20:59.222] at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) [19:20:59.222] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) [19:20:59.222] at javax.servlet.GenericServlet.init(GenericServlet.java:82) [19:20:59.222] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:511) [19:20:59.222] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153) [19:20:59.222] at com.caucho.server.webapp.Application.start(Application.java:1318) [19:20:59.222] at com.caucho.server.webapp.WebAppEntry.createApplicationInt(WebAppEntry.java:656) [19:20:59.222] at com.caucho.server.webapp.WebAppEntry.createApplication(WebAppEntry.java:460) [19:20:59.222] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:541) [19:20:59.222] at com.caucho.server.host.Host.start(Host.java:433) [19:20:59.222] at com.caucho.server.host.HostEntry.createHostInt(HostEntry.java:520) [19:20:59.222] at com.caucho.server.host.HostEntry.createHost(HostEntry.java:298) [19:20:59.222] at com.caucho.server.host.HostContainer.start(HostContainer.java:504) [19:20:59.222] at com.caucho.server.resin.ServletServer.start(ServletServer.java:727) [19:20:59.222] at com.caucho.server.resin.ResinServer.start(ResinServer.java:363) [19:20:59.222] at com.caucho.server.resin.Resin.init(Resin.java:284) [19:20:59.222] at com.caucho.server.resin.Resin.main(Resin.java:490) [19:20:59.251] Could not obtain connection metadata [19:20:59.251] java.sql.SQLException: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.251] at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:238) [19:20:59.251] at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89) [19:20:59.251] at java.sql.DriverManager.getConnection(DriverManager.java:512) [19:20:59.251] at java.sql.DriverManager.getConnection(DriverManager.java:193) [19:20:59.251] at net.sf.hibernate.connection.ProxoolConnectionProvider.getConnection(ProxoolConnectionProvider.java:46) [19:20:59.251] at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [19:20:59.251] at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1078) [19:20:59.251] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724) [19:20:59.251] at pl.elysium.hibernate.struts.util.HibernatePlugIn.initHibernate(HibernatePlugIn.java:113) [19:20:59.251] at pl.elysium.hibernate.struts.util.HibernatePlugIn.init(HibernatePlugIn.java:90) [19:20:59.251] at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) [19:20:59.251] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) [19:20:59.251] at javax.servlet.GenericServlet.init(GenericServlet.java:82) [19:20:59.251] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:511) [19:20:59.251] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153) [19:20:59.251] at com.caucho.server.webapp.Application.start(Application.java:1318) [19:20:59.251] at com.caucho.server.webapp.WebAppEntry.createApplicationInt(WebAppEntry.java:656) [19:20:59.251] at com.caucho.server.webapp.WebAppEntry.createApplication(WebAppEntry.java:460) [19:20:59.251] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:541) [19:20:59.251] at com.caucho.server.host.Host.start(Host.java:433) [19:20:59.251] at com.caucho.server.host.HostEntry.createHostInt(HostEntry.java:520) [19:20:59.251] at com.caucho.server.host.HostEntry.createHost(HostEntry.java:298) [19:20:59.251] at com.caucho.server.host.HostContainer.start(HostContainer.java:504) [19:20:59.251] at com.caucho.server.resin.ServletServer.start(ServletServer.java:727) [19:20:59.251] at com.caucho.server.resin.ResinServer.start(ResinServer.java:363) [19:20:59.251] at com.caucho.server.resin.Resin.init(Resin.java:284) [19:20:59.251] at com.caucho.server.resin.Resin.main(Resin.java:490) Upgrading to latest (0.8.3) proxool fixes it: [19:23:27.696] Proxool 0.8.3 (14-Dec-2003 16:06) [19:23:27.982] Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory [19:23:28.055] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) so please update the proxool jar in cvs.

    Hibernate JIRA | 1 decade ago | Krzysztof Dabrowski
    net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I've decided to turn on Proxool connection pool and it throws the following exception on startup: [19:20:56.899] Proxool Provider using delegate JDBC Driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/boxlife [19:20:56.930] Proxool Provider Connection URL: proxool.hibernate-1:com.mysql.jdbc.Driver:jdbc:mysql://localhost/boxlife [19:20:57.128] Proxool 0.8.2-bh-1+ [19:20:57.434] Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory [19:20:57.582] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) [19:20:59.164] Prototype [19:20:59.164] net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.164] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192) [19:20:59.164] at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330) [19:20:59.164] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:246) [19:20:59.164] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:406) [19:20:59.164] at org.logicalcobwebs.proxool.ProxyFactory.buildProxyConnection(ProxyFactory.java:44) [19:20:59.164] at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:150) [19:20:59.164] at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:95) [19:20:59.164] at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:42) [19:20:59.164] Caused by: java.lang.reflect.InvocationTargetException [19:20:59.164] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:20:59.164] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [19:20:59.164] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [19:20:59.164] at java.lang.reflect.Method.invoke(Method.java:324) [19:20:59.164] at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373) [19:20:59.164] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:181) [19:20:59.164] ... 7 more [19:20:59.164] Caused by: java.lang.ClassFormatError: Illegal Class name "java/sql/Connection$$EnhancerByCGLIB$$f39e9d85-2" [19:20:59.164] at java.lang.ClassLoader.defineClass0(Native Method) [19:20:59.164] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [19:20:59.164] at java.lang.ClassLoader.defineClass(ClassLoader.java:382) [19:20:59.164] ... 13 more [19:20:59.174] Couldn't get connection [19:20:59.174] net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.174] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192) [19:20:59.174] at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330) [19:20:59.174] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:246) [19:20:59.174] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:406) [19:20:59.174] at org.logicalcobwebs.proxool.ProxyFactory.buildProxyConnection(ProxyFactory.java:44) [19:20:59.174] at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:150) [19:20:59.174] at org.logicalcobwebs.proxool.PrototyperController.buildConnection(PrototyperController.java:88) [19:20:59.174] at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:222) [19:20:59.174] at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89) [19:20:59.174] at java.sql.DriverManager.getConnection(DriverManager.java:512) [19:20:59.174] at java.sql.DriverManager.getConnection(DriverManager.java:193) [19:20:59.174] at net.sf.hibernate.connection.ProxoolConnectionProvider.getConnection(ProxoolConnectionProvider.java:46) [19:20:59.174] at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [19:20:59.174] at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1078) [19:20:59.174] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724) [19:20:59.174] at pl.elysium.hibernate.struts.util.HibernatePlugIn.initHibernate(HibernatePlugIn.java:113) [19:20:59.174] at pl.elysium.hibernate.struts.util.HibernatePlugIn.init(HibernatePlugIn.java:90) [19:20:59.174] at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) [19:20:59.174] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) [19:20:59.174] at javax.servlet.GenericServlet.init(GenericServlet.java:82) [19:20:59.174] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:511) [19:20:59.174] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153) [19:20:59.174] at com.caucho.server.webapp.Application.start(Application.java:1318) [19:20:59.174] at com.caucho.server.webapp.WebAppEntry.createApplicationInt(WebAppEntry.java:656) [19:20:59.174] at com.caucho.server.webapp.WebAppEntry.createApplication(WebAppEntry.java:460) [19:20:59.174] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:541) [19:20:59.174] at com.caucho.server.host.Host.start(Host.java:433) [19:20:59.174] at com.caucho.server.host.HostEntry.createHostInt(HostEntry.java:520) [19:20:59.174] at com.caucho.server.host.HostEntry.createHost(HostEntry.java:298) [19:20:59.174] at com.caucho.server.host.HostContainer.start(HostContainer.java:504) [19:20:59.174] at com.caucho.server.resin.ServletServer.start(ServletServer.java:727) [19:20:59.174] at com.caucho.server.resin.ResinServer.start(ResinServer.java:363) [19:20:59.174] at com.caucho.server.resin.Resin.init(Resin.java:284) [19:20:59.174] at com.caucho.server.resin.Resin.main(Resin.java:490) [19:20:59.174] Caused by: java.lang.reflect.InvocationTargetException [19:20:59.174] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:20:59.174] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [19:20:59.174] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [19:20:59.174] at java.lang.reflect.Method.invoke(Method.java:324) [19:20:59.174] at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373) [19:20:59.174] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:181) [19:20:59.174] ... 33 more [19:20:59.174] Caused by: java.lang.ClassFormatError: Illegal Field name "CGLIB$load_class$ARRAY0$_Ljava_lang_String;" [19:20:59.174] at java.lang.ClassLoader.defineClass0(Native Method) [19:20:59.174] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [19:20:59.174] at java.lang.ClassLoader.defineClass(ClassLoader.java:382) [19:20:59.174] ... 39 more [19:20:59.222] Problem [19:20:59.222] java.sql.SQLException: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.222] at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:238) [19:20:59.222] at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89) [19:20:59.222] at java.sql.DriverManager.getConnection(DriverManager.java:512) [19:20:59.222] at java.sql.DriverManager.getConnection(DriverManager.java:193) [19:20:59.222] at net.sf.hibernate.connection.ProxoolConnectionProvider.getConnection(ProxoolConnectionProvider.java:46) [19:20:59.222] at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [19:20:59.222] at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1078) [19:20:59.222] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724) [19:20:59.222] at pl.elysium.hibernate.struts.util.HibernatePlugIn.initHibernate(HibernatePlugIn.java:113) [19:20:59.222] at pl.elysium.hibernate.struts.util.HibernatePlugIn.init(HibernatePlugIn.java:90) [19:20:59.222] at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) [19:20:59.222] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) [19:20:59.222] at javax.servlet.GenericServlet.init(GenericServlet.java:82) [19:20:59.222] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:511) [19:20:59.222] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153) [19:20:59.222] at com.caucho.server.webapp.Application.start(Application.java:1318) [19:20:59.222] at com.caucho.server.webapp.WebAppEntry.createApplicationInt(WebAppEntry.java:656) [19:20:59.222] at com.caucho.server.webapp.WebAppEntry.createApplication(WebAppEntry.java:460) [19:20:59.222] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:541) [19:20:59.222] at com.caucho.server.host.Host.start(Host.java:433) [19:20:59.222] at com.caucho.server.host.HostEntry.createHostInt(HostEntry.java:520) [19:20:59.222] at com.caucho.server.host.HostEntry.createHost(HostEntry.java:298) [19:20:59.222] at com.caucho.server.host.HostContainer.start(HostContainer.java:504) [19:20:59.222] at com.caucho.server.resin.ServletServer.start(ServletServer.java:727) [19:20:59.222] at com.caucho.server.resin.ResinServer.start(ResinServer.java:363) [19:20:59.222] at com.caucho.server.resin.Resin.init(Resin.java:284) [19:20:59.222] at com.caucho.server.resin.Resin.main(Resin.java:490) [19:20:59.251] Could not obtain connection metadata [19:20:59.251] java.sql.SQLException: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null [19:20:59.251] at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:238) [19:20:59.251] at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89) [19:20:59.251] at java.sql.DriverManager.getConnection(DriverManager.java:512) [19:20:59.251] at java.sql.DriverManager.getConnection(DriverManager.java:193) [19:20:59.251] at net.sf.hibernate.connection.ProxoolConnectionProvider.getConnection(ProxoolConnectionProvider.java:46) [19:20:59.251] at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [19:20:59.251] at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1078) [19:20:59.251] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724) [19:20:59.251] at pl.elysium.hibernate.struts.util.HibernatePlugIn.initHibernate(HibernatePlugIn.java:113) [19:20:59.251] at pl.elysium.hibernate.struts.util.HibernatePlugIn.init(HibernatePlugIn.java:90) [19:20:59.251] at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) [19:20:59.251] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) [19:20:59.251] at javax.servlet.GenericServlet.init(GenericServlet.java:82) [19:20:59.251] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:511) [19:20:59.251] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153) [19:20:59.251] at com.caucho.server.webapp.Application.start(Application.java:1318) [19:20:59.251] at com.caucho.server.webapp.WebAppEntry.createApplicationInt(WebAppEntry.java:656) [19:20:59.251] at com.caucho.server.webapp.WebAppEntry.createApplication(WebAppEntry.java:460) [19:20:59.251] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:541) [19:20:59.251] at com.caucho.server.host.Host.start(Host.java:433) [19:20:59.251] at com.caucho.server.host.HostEntry.createHostInt(HostEntry.java:520) [19:20:59.251] at com.caucho.server.host.HostEntry.createHost(HostEntry.java:298) [19:20:59.251] at com.caucho.server.host.HostContainer.start(HostContainer.java:504) [19:20:59.251] at com.caucho.server.resin.ServletServer.start(ServletServer.java:727) [19:20:59.251] at com.caucho.server.resin.ResinServer.start(ResinServer.java:363) [19:20:59.251] at com.caucho.server.resin.Resin.init(Resin.java:284) [19:20:59.251] at com.caucho.server.resin.Resin.main(Resin.java:490) Upgrading to latest (0.8.3) proxool fixes it: [19:23:27.696] Proxool 0.8.3 (14-Dec-2003 16:06) [19:23:27.982] Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory [19:23:28.055] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) so please update the proxool jar in cvs.

    Hibernate JIRA | 1 decade ago | Krzysztof Dabrowski
    net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
  6. 0

    JVMѧϰ±Ê¼Ç-ÄÚ´æÒç³ö -android100ѧϰÍø

    android100.org | 2 years ago
    net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassFormatError

    Illegal Field name "CGLIB$load_class$ARRAY0$_Ljava_lang_String;"

    at java.lang.ClassLoader.defineClass0()
  2. Java RT
    Method.invoke
    1. java.lang.ClassLoader.defineClass0(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:382)
    4. sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
    5. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    6. java.lang.reflect.Method.invoke(Method.java:324)
    6 frames
  3. Code Generation Library
    AbstractClassGenerator.create
    1. net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373)
    2. net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:181)
    2 frames
  4. IDEA
    Enhancer.create
    1. net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:330)
    2. net.sf.cglib.proxy.Enhancer.create(Enhancer.java:246)
    3. net.sf.cglib.proxy.Enhancer.create(Enhancer.java:406)
    3 frames
  5. net.sf.hibernate
    Configuration.buildSessionFactory
    1. net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:74)
    2. net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:801)
    3. net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:741)
    4. net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:41)
    5. net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:136)
    6. net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
    6 frames
  6. com.proinsight.objects
    ObjectDataSource.<clinit>
    1. com.proinsight.objects.ObjectDataSource.getSessionFactory(ObjectDataSource.java:173)
    2. com.proinsight.objects.ObjectDataSource.<clinit>(ObjectDataSource.java:42)
    2 frames
  7. com.proinsight.servlets
    KMSProInsightServlet.init
    1. com.proinsight.servlets.KMSProInsightServlet.init(KMSProInsightServlet.java:43)
    1 frame
  8. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:256)
    1 frame
  9. Glassfish Core
    StandardHost.addChild
    1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
    4. org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
    5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
    6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
    7 frames
  10. org.jboss.web
    EmbeddedTomcatService.performDeploy
    1. org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:530)
    2. org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)
    2 frames
  11. JBoss Application Server Server
    AbstractWebContainer.start
    1. org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
    1 frame
  12. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
    2. org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
    4. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    4 frames
  13. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:324)
    3 frames
  14. org.jboss.mx
    ReflectedMBeanDispatcher.invoke
    1. org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    1 frame
  15. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
    2. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    2 frames
  16. Unknown
    $Proxy6.deploy
    1. $Proxy6.deploy(Unknown Source)
    1 frame
  17. org.jboss.deployment
    AbstractDeploymentScanner.startService
    1. org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
    2. org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
    3. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
    4. org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
    4 frames
  18. JBoss Application Server System
    ServiceMBeanSupport.start
    1. org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
    1 frame
  19. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:324)
    3 frames
  20. org.jboss.mx
    ReflectedMBeanDispatcher.invoke
    1. org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    1 frame
  21. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
    1 frame
  22. JBoss Application Server System
    ServiceController$ServiceProxy.invoke
    1. org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
    1 frame
  23. Unknown
    $Proxy0.start
    1. $Proxy0.start(Unknown Source)
    1 frame
  24. JBoss Application Server System
    ServiceController.start
    1. org.jboss.system.ServiceController.start(ServiceController.java:394)
    1 frame
  25. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:324)
    3 frames
  26. org.jboss.mx
    ReflectedMBeanDispatcher.invoke
    1. org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    1 frame
  27. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
    2. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    2 frames
  28. Unknown
    $Proxy4.start
    1. $Proxy4.start(Unknown Source)
    1 frame
  29. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
    2. org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
    4. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    5. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
    5 frames
  30. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  31. org.jboss.mx
    ReflectedMBeanDispatcher.invoke
    1. org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    1 frame
  32. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
    2. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    2 frames
  33. Unknown
    $Proxy5.deploy
    1. $Proxy5.deploy(Unknown Source)
    1 frame
  34. JBoss Application Server System JMX
    ServerImpl.start
    1. org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
    2. org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
    2 frames
  35. JBoss Application Server Server
    Main$1.run
    1. org.jboss.Main.boot(Main.java:150)
    2. org.jboss.Main$1.run(Main.java:395)
    2 frames
  36. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:534)
    1 frame