2010-05-13 2 views
3
Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Method must not be null:java.lang.IllegalArgumentException: Method must not be null 

Je reçois cette erreur de déploiement lors du déploiement de mon application.java.lang.IllegalArgumentException: La méthode ne doit pas être nulle

java -version 
java version "1.6.0_20" 
Java(TM) SE Runtime Environment (build 1.6.0_20-b02) 
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode) 

alors que la même version est déployée avec succès dans la même version du serveur 6.1.3 avec conf suivante.

java version "1.6.0_17" 

version ressort utilisé est 2.5.6.SEC01

comment surmonter, googler travail na pas?

2010-05-13 15:53:20.903::WARN: Failed startup of context [email protected]{/caw,jar:file:/home/jigar/jetty-6.1.3/webapps/caw.war!/} 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Method must not be null 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) 
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:515) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362) 
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) 
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) 
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) 
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) 
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) 
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) 
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) 
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) 
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) 
    at org.mortbay.jetty.Server.doStart(Server.java:210) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929) 
    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.mortbay.start.Main.invokeMain(Main.java:183) 
    at org.mortbay.start.Main.start(Main.java:497) 
    at org.mortbay.start.Main.main(Main.java:115) 
Caused by: java.lang.IllegalArgumentException: Method must not be null 
    at org.springframework.util.Assert.notNull(Assert.java:112) 
    at org.springframework.core.BridgeMethodResolver.findBridgedMethod(BridgeMethodResolver.java:63) 
    at org.springframework.beans.GenericTypeAwarePropertyDescriptor.<init>(GenericTypeAwarePropertyDescriptor.java:58) 
    at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:250) 
    at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144) 
    at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252) 
    at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282) 
    at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) 
    ... 35 more 
2010-05-13 15:53:20.906::WARN: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Method must not be null: 
java.lang.IllegalArgumentException: Method must not be null 
    at org.springframework.util.Assert.notNull(Assert.java:112) 
    at org.springframework.core.BridgeMethodResolver.findBridgedMethod(BridgeMethodResolver.java:63) 
    at org.springframework.beans.GenericTypeAwarePropertyDescriptor.<init>(GenericTypeAwarePropertyDescriptor.java:58) 
    at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:250) 
    at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144) 
    at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252) 
    at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282) 
    at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247) 
    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 java.security.AccessController.doPrivileged(Native Method) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) 
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:515) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362) 
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) 
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) 
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) 
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) 
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) 
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) 
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) 
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) 
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) 
    at org.mortbay.jetty.Server.doStart(Server.java:210) 
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) 
    at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929) 
    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.mortbay.start.Main.invokeMain(Main.java:183) 
    at org.mortbay.start.Main.start(Main.java:497) 
    at org.mortbay.start.Main.main(Main.java:115) 
2010-05-13 15:53:20.964::INFO: Started SelectChannelConnector @ 0.0.0.0:8090 
+1

Pouvez-vous montrer plus de la pile de pile? Y compris la cause première. – Espen

+1

La trace de pile complète aiderait, c'est-à-dire quelle ligne dans 'PropertyPlaceholderConfigurer' est-ce? –

+2

@abc: vous pouvez éditer votre question et y mettre la pile. –

Répondre

6

Ceci peut être causé par un chemin de classe sale avec différentes versions de bibliothèques Spring partout. Nettoyez-le et alignez-le sur la même version Spring avec les bonnes dépendances versionnées.

+0

Si c'est le cas alors comment la même build peut être déployée sur une autre JVM? –

+0

Gardez simplement les bibliothèques dans '/ WEB-INF/lib' de votre webapp de la manière habituelle. La bibliothèque de la JVM ou la lib du serveur – BalusC

+0

ouais BalusC j'ai fait la même chose, toutes les bibliothèques requises sont sous/WEB-INF/lib seulement. Dans la version java "1.6.0_20" c'est erreur de lancement et fonctionne très bien dans une machine ayant la version java "1.6.0_17" toutes les configurations de repos sont telles qu'elles sont (c.-à-d. même serveur, même version du serveur, même conf. –

Questions connexes