当前位置:   article > 正文

org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver: method ()V_at org.springframework.web.method.annotation.abstr

at org.springframework.web.method.annotation.abstractnamedvaluemethodargumen

org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver: method ()V

本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:

2016-08-15 10:37:58,122 [localhost-startStop-1] ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0’: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver: method ()V not found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory1.getObject(AbstractBeanFactory.java:304)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4751)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5175)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)atorg.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)atorg.apache.catalina.startup.HostConfigDeployWar.run(HostConfig.java:1704)
at java.util.concurrent.ExecutorsRunnableAdapter.call(UnknownSource)atjava.util.concurrent.FutureTask.run(UnknownSource)atjava.util.concurrent.ThreadPoolExecutor.runWorker(UnknownSource)atjava.util.concurrent.ThreadPoolExecutorWorker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver: method ()V not found
at org.springframework.web.servlet.mvc.method.annotation.PathVariableMethodArgumentResolver.(PathVariableMethodArgumentResolver.java:72)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.getDefaultArgumentResolvers(RequestMappingHandlerAdapter.java:510)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.afterPropertiesSet(RequestMappingHandlerAdapter.java:486)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)
… 25 more
15-Aug-2016 10:37:58.123 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Error listenerStart
15-Aug-2016 10:37:58.130 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/SijiWorld] startup failed due to previous errors
15-Aug-2016 10:37:58.134 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesJdbc The web application [/SijiWorld] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
15-Aug-2016 10:37:58.134 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/SijiWorld] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Unknown Source)
java.util.TimerThread.run(Unknown Source)
15-Aug-2016 10:37:58.135 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/SijiWorld] appears to have started a thread named [shirocache] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
java.net.AbstractPlainSocketImpl.connect(Unknown Source)
java.net.SocksSocketImpl.connect(Unknown Source)
java.net.Socket.connect(Unknown Source)
sun.net.NetworkClient.doConnect(Unknown Source)
sun.net.www.http.HttpClient.openServer(Unknown Source)
sun.net.www.http.HttpClient.openServer(Unknown Source)
sun.net.www.http.HttpClient.(Unknown Source)
sun.net.www.http.HttpClient.New(Unknown Source)
sun.net.www.http.HttpClient.New(Unknown Source)
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
net.sf.ehcache.util.UpdateChecker.getUpdateProperties(UpdateChecker.java:106)
net.sf.ehcache.util.UpdateChecker.doCheck(UpdateChecker.java:70)
net.sf.ehcache.util.UpdateChecker.checkForUpdate(UpdateChecker.java:60)
net.sf.ehcache.util.UpdateChecker.run(UpdateChecker.java:51)
java.util.TimerThread.mainLoop(Unknown Source)
java.util.TimerThread.run(Unknown Source)
15-Aug-2016 10:37:58.135 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/SijiWorld] appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)15Aug201610:37:58.136WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoader.clearReferencesThreadsThewebapplication[/SijiWorld]appearstohavestartedathreadnamed[DefaultQuartzSchedulerWorker2]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:java.lang.Object.wait(NativeMethod)org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)
15-Aug-2016 10:37:58.136 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/SijiWorld] appears to have started a thread named [DefaultQuartzScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)15Aug201610:37:58.136WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoader.clearReferencesThreadsThewebapplication[/SijiWorld]appearstohavestartedathreadnamed[DefaultQuartzSchedulerWorker4]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:java.lang.Object.wait(NativeMethod)org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)
15-Aug-2016 10:37:58.137 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/SijiWorld] appears to have started a thread named [DefaultQuartzScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)15Aug201610:37:58.137WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoader.clearReferencesThreadsThewebapplication[/SijiWorld]appearstohavestartedathreadnamed[DefaultQuartzSchedulerWorker6]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:java.lang.Object.wait(NativeMethod)org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)
15-Aug-2016 10:37:58.137 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/SijiWorld] appears to have started a thread named [DefaultQuartzScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)15Aug201610:37:58.138WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoader.clearReferencesThreadsThewebapplication[/SijiWorld]appearstohavestartedathreadnamed[DefaultQuartzSchedulerWorker8]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:java.lang.Object.wait(NativeMethod)org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)
15-Aug-2016 10:37:58.138 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/SijiWorld] appears to have started a thread named [DefaultQuartzScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)15Aug201610:37:58.138WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoader.clearReferencesThreadsThewebapplication[/SijiWorld]appearstohavestartedathreadnamed[DefaultQuartzSchedulerWorker10]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:java.lang.Object.wait(NativeMethod)org.quartz.simpl.SimpleThreadPoolWorkerThread.run(SimpleThreadPool.java:519)
15-Aug-2016 10:37:58.142 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/tomcat-sjtd/webapps/SijiWorld.war has finished in 6,319 ms
15-Aug-2016 10:37:58.143 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat-sjtd/webapps/host-manager
15-Aug-2016 10:37:58.170 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat-sjtd/webapps/host-manager has finished in 27 ms
15-Aug-2016 10:37:58.170 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat-sjtd/webapps/manager
15-Aug-2016 10:37:58.183 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat-sjtd/webapps/manager has finished in 13 ms
15-Aug-2016 10:37:58.184 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat-sjtd/webapps/ROOT
15-Aug-2016 10:37:58.194 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat-sjtd/webapps/ROOT has finished in 10 ms
15-Aug-2016 10:37:58.194 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat-sjtd/webapps/examples
15-Aug-2016 10:37:58.322 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat-sjtd/webapps/examples has finished in 128 ms
15-Aug-2016 10:37:58.322 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat-sjtd/webapps/docs
15-Aug-2016 10:37:58.330 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat-sjtd/webapps/docs has finished in 8 ms
15-Aug-2016 10:37:58.335 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-2050”]
15-Aug-2016 10:37:58.341 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-nio-2564”]
15-Aug-2016 10:37:58.342 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 6551 ms
2016-08-15 10:37:58,601 [DefaultQuartzScheduler_Worker-3] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,602 [DefaultQuartzScheduler_Worker-6] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,602 [DefaultQuartzScheduler_Worker-5] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,601 [DefaultQuartzScheduler_Worker-1] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,601 [DefaultQuartzScheduler_Worker-2] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,603 [DefaultQuartzScheduler_Worker-9] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,603 [DefaultQuartzScheduler_Worker-8] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,603 [DefaultQuartzScheduler_Worker-7] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,602 [DefaultQuartzScheduler_Worker-10] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
2016-08-15 10:37:58,602 [DefaultQuartzScheduler_Worker-4] DEBUG [org.quartz.simpl.SimpleThreadPool] - WorkerThread is shutting down
15-Aug-2016 10:37:58.847 INFO [shirocache] org.apache.catalina.loader.WebappClassLoader.findResourceInternal Illegal access: this web application instance has been stopped already. Could not load ehcache-version.properties. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
2016-08-15 10:37:58,848 [shirocache] DEBUG [net.sf.ehcache.util.UpdateChecker] - Update check failed: java.lang.RuntimeException: Can’t find resource: /ehcache-version.properties


先说一下报错环境,在本地eclipse跑的时候没有问题。本地有两个jar包,spring-webmvc-4.0.2.RELEASE和spring-webmvc-4.0.0.RELEASE两个不同版本的jar包。在测试环境的时候就会出现上述错误,找了好久没有找到解决办法。后来怀疑是自己多引了jar包,删了4.0.0的jar包并且移出环境,还是报错,启动都不能。找回4.0.0并删除了4.0.2的jar包运行正常。可能是英文jar版本太高不能兼容的问题,最后问题是解决了。原因的话还不是特别清楚,后续再问问大神探讨一下。


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/229803
推荐阅读
相关标签
  

闽ICP备14008679号