民间,
我们在运行服务器时出现了奇怪的情况。连续观察下面提到的例外(快照)。重新启动服务器解决了问题并且不再发现问题。所以我不确定为什么正在运行的服务器会遇到NoSuchMethodError,这在我的应用程序中在过去1年中只观察过一次。我尝试寻找一些信息,但无法找到原因背后的相关信息。所以张贴这个以获得一些指示。
谢谢你, Pathik
1)--------------------------
Caused by: java.lang.NoSuchMethodError: com/ibm/wsdl/extensions/soap/SOAPHeaderImpl.getPart()Ljava/lang/String;
at sun.reflect.GeneratedMethodAccessor29518.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.cxf.tools.common.ExtensionInvocationHandler.invoke(ExtensionInvocationHandler.java:42)
at $Proxy114.getPart(Unknown Source)
2)---------------------------
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean5' defined in ServletContext resource [/WEB-INF/v2_0/myApplicationContext.xml]: Cannot resolve reference to bean 'myBean1' while setting bean property 'myProperty3' with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean1' defined in ServletContext resource [/WEB-INF/myApplicationContext.xml]: Cannot resolve reference to bean 'myBean2' while setting bean property 'myProperty4' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean2' defined in ServletContext resource [/WEB-INF/myApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: java/lang/Object.toString()Ljava/lang/String;
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at com.opensymphony.xwork.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:134)
3)--------------------------------
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean2' defined in ServletContext resource [/WEB-INF/myApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: java/lang/Object.toString()Ljava/lang/String;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
... 36 more
Caused by: java.lang.NoSuchMethodError: java/lang/Object.toString()Ljava/lang/String;