`
gstarwd
  • 浏览: 1524916 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

ssh 整合时报错java.lang.reflect.InvocationTargetException... 但是能运行起[

    博客分类:
  • SSH
阅读更多

内容太长(多次发):
[Tomcat]2007-09-07   12:03:30,937[main]building   session   factory
[Tomcat]2007-09-07   12:03:30,984[main]No   configuration   found.   Configuring   ehcache   from   ehcache-failsafe.xml   found   in   the   classpath:   jar:file:/E:/apache-tomcat-5.5.20/webapps/atm/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
[Hibernate]2007-09-07   12:03:32,140[main]CGLIB   Enhancement   failed:   com.entity.CardInfo
net.sf.cglib.core.CodeGenerationException:   java.lang.reflect.InvocationTargetException--> null
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at   net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:676)
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   org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:825)
at   org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:751)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
at   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at   org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at   org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:353)
at   org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)
at   org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)
at   org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at   org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at   javax.servlet.GenericServlet.init(GenericServlet.java:211)
at   org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at   org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at   org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at   org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at   org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at   org.apache.catalina.core.StandardService.start(StandardService.java:450)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 

 

Caused   by:   java.lang.reflect.InvocationTargetException
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.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
...   56   more
Caused   by:   java.lang.SecurityException:   class   "com.entity.CardInfo$$EnhancerByCGLIB$$d2f126f " '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.java:487)
at   java.lang.ClassLoader.defineClass(ClassLoader.java:614)
...   62   more
[Tomcat]2007-09-07   12:03:32,140[main]CGLIB   Enhancement   failed:   com.entity.CardInfo
net.sf.cglib.core.CodeGenerationException:   java.lang.reflect.InvocationTargetException--> null
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at   net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:676)
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   org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:825)
at   org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:751)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
at   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at   org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at   org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:353)
at   org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)
at   org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)
at   org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at   org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at   javax.servlet.GenericServlet.init(GenericServlet.java:211)
at   org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at   org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at   org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at   org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at   org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at   org.apache.catalina.core.StandardService.start(StandardService.java:450)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 

 

 

Caused   by:   java.lang.reflect.InvocationTargetException
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.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
...   56   more
Caused   by:   java.lang.SecurityException:   class   "com.entity.CardInfo$$EnhancerByCGLIB$$d2f126f " '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.java:487)
at   java.lang.ClassLoader.defineClass(ClassLoader.java:614)
...   62   more
[Hibernate]2007-09-07   12:03:32,187[main]could   not   create   proxy   factory   for:com.entity.CardInfo
org.hibernate.HibernateException:   CGLIB   Enhancement   failed:   com.entity.CardInfo
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   org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:825)
at   org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:751)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
at   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at   org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at   org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:353)
at   org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)
at   org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)
at   org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at   org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at   javax.servlet.GenericServlet.init(GenericServlet.java:211)
at   org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at   org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at   org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at   org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at   org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at   org.apache.catalina.core.StandardService.start(StandardService.java:450)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 

 

 

Caused   by:   net.sf.cglib.core.CodeGenerationException:   java.lang.reflect.InvocationTargetException--> null
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at   net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:676)
at   org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
...   52   more
Caused   by:   java.lang.reflect.InvocationTargetException
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.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
...   56   more
Caused   by:   java.lang.SecurityException:   class   "com.entity.CardInfo$$EnhancerByCGLIB$$d2f126f " '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.java:487)
at   java.lang.ClassLoader.defineClass(ClassLoader.java:614)
...   62   more
[Tomcat]2007-09-07   12:03:32,187[main]could   not   create   proxy   factory   for:com.entity.CardInfo
org.hibernate.HibernateException:   CGLIB   Enhancement   failed:   com.entity.CardInfo
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   org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:825)
at   org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:751)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
at   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at   org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at   org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:353)
at   org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)
at   org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)
at   org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at   org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at   javax.servlet.GenericServlet.init(GenericServlet.java:211)
at   org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at   org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at   org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at   org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at   org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at   org.apache.catalina.core.StandardService.start(StandardService.java:450)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused   by:   net.sf.cglib.core.CodeGenerationException:   java.lang.reflect.InvocationTargetException--> null
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at   net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
at   net.sf.cglib.proxy.Enhancer.create(Enhancer.java:676)
at   org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
...   52   more
Caused   by:   java.lang.reflect.InvocationTargetException
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.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
...   56   more
Caused   by:   java.lang.SecurityException:   class   "com.entity.CardInfo$$EnhancerByCGLIB$$d2f126f " '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.java:487)
at   java.lang.ClassLoader.defineClass(ClassLoader.java:614)
...   62   more

 

 


其实很简单,就是把实体中的….hbm.xml文件中,将class标签的lazy属性改为false(默认为true) <class name="com.wuwei.struts.bean.User" table="user" lazy="false">。如果有schema="dbo" catalog="test"配置信息,请将其删除, 行动就OK了

分享到:
评论

相关推荐

    解决axis2-CodegenWizardPluginBUG- java.lang.reflect.InvocationTargetException

    然而,在运行此插件时,由于某些原因可能会抛出`java.lang.reflect.InvocationTargetException`,这是一个反射调用异常,通常表示在调用某个方法时发生了异常。 `InvocationTargetException`通常作为Java标准库中的...

    scrcpy投屏 AssertionError: java.lang.reflect.InvocationTargetExcep

    标题中的问题“scrcpy投屏 AssertionError: java.lang.reflect.InvocationTargetException”是用户在尝试使用Scrcpy时遇到的一个常见错误。这个错误通常意味着在执行某个方法时,Java运行时环境遇到了未预期的情况。...

    MyEclipse axis2 wsdl java.lang.reflect.invocationtargetexception

    MyEclipse axis2 wsdl java.lang.reflect.invocationtargetexception code gen 大家要注意一定要仔细,这个问题基本上缺少包引起的,而且一定要clean 如果需要axis2插件 以及这个plugins中的包在我的其他资源里面有

    axis2 InvocationTargetException

    标题 "axis2 InvocationTargetException" 描述的是一个与Apache Axis2框架相关的编程问题,该问题通常在执行服务调用时出现,提示"InvocationTargetException"。这可能是由于多种原因引起的,包括但不限于错误的服务...

    java.lang.reflect.Proxy 学习资料 讲解 例子 源码

    java.lang.reflect.Proxy 学习资料 讲解 例子 源码 java.lang.reflect.Proxy 学习资料 讲解 例子 源码 java.lang.reflect.Proxy 学习资料 讲解 例子 源码

    Java.lang.reflect 包下常用的类及方法简介

    在Java编程语言中,`java.lang.reflect`包是核心库的一部分,它提供了运行时访问类、接口、字段和方法的能力。这个包对于理解和操作对象的动态特性至关重要,尤其是在实现反射机制时。反射允许我们在程序运行期间...

    Java reflect 机制详解

    免费共享,很详细的介绍了反射机制的原理,适合追根究底的java学习者

    WebLogic错误 java.lang.AssertionError: Registered more than one

    Caused by: java.lang.RuntimeException: javax.management.remote.JMXServerErrorException: java.lang.AssertionError: Registered more than one instance with the same objectName : com.bea:Name=wl04,Type=...

    wsdl生成java客户端报错

    java.lang.reflect.invocationtargetexception问题的解决方法之一

    webservice启动没有问题,通过自动生成的客户端报错

    faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {...

    commons-lang3-3.1jar:org.apache.commons.lang3.StringUtils等.

    `org.apache.commons.lang3.reflect.FieldUtils`类则是关于反射操作的工具类,它提供了一些安全且方便的方法来访问和修改对象的字段。这些方法包括但不限于: 1. `getField()`:安全地获取类或对象的字段,即使该...

    wsdl生成java客户端报错问题解决方法

    解决使用wsdl生成java客户端报错:java.lang.reflect.invocationtargetexception的方法之一

    java.lang.IllegalArgumentException:Input == null的异常处理

    java.lang.ExceptionInInitializerError Caused by: java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1388) at com.pleanwar.fiying.FlyingObject.loadImage...

    jaxen.jar和dom4j.jar

    at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run...

    uiautomatorviewer更新文件.rar

    解决uiautomatorviewer报错问题,分享给大家。 Unexpected error while obtaining UI hierarchy # 点击Details java.lang.reflect.InvocationTargetException

    ireport测试

    本文将深入探讨`iReport`在Java开发中的应用,以及如何与MyEclipse集成,同时还会涉及到Struts2框架的使用。 `iReport`是JasperReports库的一部分,它提供了一个用户友好的图形界面,允许开发者设计和编辑各种类型...

    BEWINDOWEB#bewindoweb.github.io#00078-编写basedao的时候报错:java.lang.C

    编写basedao的时候报错:java.lang.Class cannot be cast to java.lang.reflect.Parameterized

    JAVA的WebService支持

    Java的Web服务支持是Java平台在企业级应用开发中的一项重要功能,它允许不同系统间的应用程序通过网络交换数据,实现跨平台的互操作性。Web服务基于开放的标准,如XML(可扩展标记语言)、WSDL(Web服务描述语言)和...

    javacode发布成webservice

    ### Java代码发布为WebService的方法与步骤 在当前的软件开发领域中,将Java代码发布为WebService是一种常见的做法,尤其在企业级应用和服务交互场景中。本文将基于提供的标题、描述及部分图片描述内容,详细阐述...

Global site tag (gtag.js) - Google Analytics