Caused by: java.lang.NoSuchFieldError: STRING 这是什么异常呢?

问题描述

2010-12-12 23:02:34 org.apache.catalina.loader.WebappClassLoader validateJarFile信息: validateJarFile(D:Tomcat6Tomcat 6.0webappsoa_01WEB-INFlibservlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class2010-12-12 23:02:34 org.apache.catalina.core.StandardContext addApplicationListener信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.2010-12-12 23:02:34 org.apache.catalina.core.ApplicationContext log信息: Initializing Spring root WebApplicationContext[Spring]2010-12-12 23:02:39,250[main]Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: STRINGat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)at org.apache.catalina.core.StandardService.start(StandardService.java:516)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:578)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:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.NoSuchFieldError: STRINGat org.jbpm.identity.hibernate.PermissionUserType.<clinit>(PermissionUserType.java:44)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at java.lang.Class.newInstance0(Class.java:355)at java.lang.Class.newInstance(Class.java:308)at org.hibernate.type.TypeFactory.customComponent(TypeFactory.java:144)at org.hibernate.type.TypeFactory.customComponent(TypeFactory.java:135)at org.hibernate.type.TypeFactory.byClass(TypeFactory.java:95)at org.hibernate.type.TypeResolver.heuristicType(TypeResolver.java:130)at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:297)at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:290)at org.hibernate.mapping.Collection.validate(Collection.java:313)at org.hibernate.mapping.Set.validate(Set.java:42)at org.hibernate.cfg.Configuration.validate(Configuration.java:1336)at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1835)at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)... 36 more[Tomcat]2010-12-12 23:02:39,250[main]Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: STRINGat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)at org.apache.catalina.core.StandardService.start(StandardService.java:516)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:578)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:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.NoSuchFieldError: STRINGat org.jbpm.identity.hibernate.PermissionUserType.<clinit>(PermissionUserType.java:44)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at java.lang.Class.newInstance0(Class.java:355)at java.lang.Class.newInstance(Class.java:308)at org.hibernate.type.TypeFactory.customComponent(TypeFactory.java:144)at org.hibernate.type.TypeFactory.customComponent(TypeFactory.java:135)at org.hibernate.type.TypeFactory.byClass(TypeFactory.java:95)at org.hibernate.type.TypeResolver.heuristicType(TypeResolver.java:130)at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:297)at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:290)at org.hibernate.mapping.Collection.validate(Collection.java:313)at org.hibernate.mapping.Set.validate(Set.java:42)at org.hibernate.cfg.Configuration.validate(Configuration.java:1336)at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1835)at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)... 36 more2010-12-12 23:02:39 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: STRINGat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)at org.apache.catalina.core.StandardService.start(StandardService.java:516)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:578)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:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Caused by: java.lang.NoSuchFieldError: STRINGat org.jbpm.identity.hibernate.PermissionUserType.<clinit>(PermissionUserType.java:44)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at java.lang.Class.newInstance0(Class.java:355)at java.lang.Class.newInstance(Class.java:308)at org.hibernate.type.TypeFactory.customComponent(TypeFactory.java:144)at org.hibernate.type.TypeFactory.customComponent(TypeFactory.java:135)at org.hibernate.type.TypeFactory.byClass(TypeFactory.java:95)at org.hibernate.type.TypeResolver.heuristicType(TypeResolver.java:130)at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:297)at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:290)at org.hibernate.mapping.Collection.validate(Collection.java:313)at org.hibernate.mapping.Set.validate(Set.java:42)at org.hibernate.cfg.Configuration.validate(Configuration.java:1336)at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1835)at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)... 36 more2010-12-12 23:02:39 org.apache.catalina.core.StandardContext start严重: Error listenerStart2010-12-12 23:02:39 org.apache.catalina.core.StandardContext start严重: Context [/oa_01] startup failed due to previous errors2010-12-12 23:02:39 org.apache.catalina.core.ApplicationContext log信息: Closing Spring root WebApplicationContext2010-12-12 23:02:39 org.apache.coyote.http11.Http11Protocol start信息: Starting Coyote HTTP/1.1 on http-80802010-12-12 23:02:40 org.apache.jk.common.ChannelSocket init信息: JK: ajp13 listening on /0.0.0.0:80092010-12-12 23:02:40 org.apache.jk.server.JkMain start信息: Jk running ID=0 time=0/63 config=null2010-12-12 23:02:40 org.apache.catalina.startup.Catalina start信息: Server startup in 48564 ms 问题补充:lockwang 写道

解决方案

引用问题补充:我的sessionfactory这样配有错误吗 配置的ms没有错误,你是在哪启动tomcat的?是eclipse还是通过bat文件启动,检查是否有不同版本的spring包同时存在你项目的lib里和tomcat的lib里
解决方案二:
查看你的D:Tomcat6Tomcat 6.0webappsoa_01WEB-INFlib与D:Tomcat6Tomcat 6.0lib下的jar有没有名称一样但版本不一致的,删除较老的版本

时间: 2024-09-12 05:44:32

Caused by: java.lang.NoSuchFieldError: STRING 这是什么异常呢?的相关文章

Caused by: java.lang.IllegalStateException错误

问题描述 Caused by: java.lang.IllegalStateException错误 错误报的是Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. 说是代码:String time = cursor.g

Caused by: java.lang.UnsatisfiedLinkError...问题的解决

Caused by: java.lang.UnsatisfiedLinkError: Couldn't load BaiduMapVOS_v2_1_3: findLibrary returned null 在使用百度地图的时候碰到了这问题 网上搜了下各种方法 都不顶用 我想死的心都有了..有没有碰到过这问 题的 求分享下经验啊. 后来看了百度地图sdk的demo以后,是因为有一个文件 liblocSDK.so,必须放在 libs/armeabi 目录下.将其对应的 liblocSDK.so拷到相

java.lang.NoSuchFieldError 和 NoSuchMethodError

java.lang.NoSuchFieldError java.lang.NoSuchMethodError 这个错偶尔会遇到,遇到会觉得很莫名其妙,使用Maven的过程中,可能更容易出现. 这个错出现只有一种情况. 你编译和运行使用的不是相同的jar包 运行时的jar包没有包含该字段或方法 所以你IDE中没有任何错误,但是运行就出错. 为什么会这样? 可能有下面两种情况: 你项目中有同一个jar包的不同版本,因此编译和运行时使用了不同的jar包. 你用的maven,项目中的依赖由于使用了不同版

Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError

SLF4J: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.Exception in thread "main" java.lang.Exception

maven war:Caused by: java.lang.Error: Unresolved compilation problems:

问题描述 maven war:Caused by: java.lang.Error: Unresolved compilation problems: 背景: 1 maven 构建 2 项目 A 3 web项目 web-B 依赖项目a 过程 1 web-B 在Eclipse 编译并在servers中可以启动并正常运行. 2 使用m2.插件对项目web-B clean 再 install ,无报错.A项目已经install成功. 3 生成web-b.war,ok. 问题 部署到tomcat下,运行

Caused by: java.lang.IllegalStateException: Please login first!

问题描述 我已经登录过了,为什么发起聊天闪退,报这个错误 解决方案 判断下是否登录成功,登录成功才可以收发消息解决方案二:把全部的trace贴出来看一下!解决方案三:登录成功了没有解决方案四:遇到同样的错误,崩溃日志是E/AndroidRuntime(12248): java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.com.nggirl.nguser/com.iuxstudio.pumpkincarriag

Caused by: java.lang.ClassNotFoundException: org.apache.oro.text.regex.Malformed

问题描述 215 UNIX Type: L8Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createUnixFTPEntryParser(DefaultFTPFileEnt

【报错】spring整合activeMQ,pom.xml文件缺架包,启动报错:Caused by: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2.XBeanNamespaceHandler

spring版本:4.3.13 ActiveMq版本:5.15 ======================================================== spring整合activeMQ,pom.xml文件缺架包,启动报错: [springDemo][INFO] [2017-12-11 14:54:57] org.springframework.web.context.ContextLoader.initWebApplicationContext(304) | Root

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method &amp;#39;void android.app.ActionBar.setDisplayShowHomeEnabled(boolean)&amp;#39; on

/********************************************************************************* * Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setDisplayShowHomeEnabled(boolean)' on a null object referenc