获取运行时错误 java.lang.NoSuchMethodError: org.springframework.core.convert.support.PropertyTypeDescriptor
我集成了SWF 2.2.1、Primefaces 2.2.1、JSF 2、Spring Security 3、Spring 3.1.0M1I和EhCache。
我能够获取应用程序的第一页,但在提交页面时出现奇怪的错误。我用谷歌搜索了一下,没有得到任何这方面的信息。
严重:servlet 的 Servlet.service() Spring MVC Dispatcher Servlet 抛出 异常java.lang.NoSuchMethodError: org.springframework.core.convert.support.PropertyTypeDescriptor.(Ljava/beans/PropertyDescriptor;Lorg/springframework/core/MethodParameter;)V 在 org.springframework.expression.spel.support.ReflectivePropertyAccessor.canRead(ReflectivePropertyAccessor.java:88) 在 org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:189) 在 org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:71) 在 org.springframework.expression.spel.ast.CompoundExpression.setValue(CompoundExpression.java:76) 在 org.springframework.expression.spel.standard.SpelExpression.setValue(SpelExpression.java:169) 在 org.springframework.binding.expression.spel.SpringELExpression.setValue(SpringELExpression.java:109) 在 org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:80) 在 org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188) 在 org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145) 在 org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51) 在 org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101) 在 org.springframework.webflow.engine.State.enter(State.java:194) 在 org.springframework.webflow.engine.Transition.execute(Transition.java:227) 在 org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:391) 在 org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214) 在 org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119) 在 org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555) 在 org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:386) 在 org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210) 在 org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:254) 在 org.springframework.webflow.engine.ViewState.resume(ViewState.java:218) 在 org.springframework.webflow.engine.Flow.resume(Flow.java:545) 在 org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259) 在 org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169) 在 org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183) 在 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) 在 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) 在 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) 在 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 在 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 在 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 在 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 在 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 在 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) 在 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) 在 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) 在 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 在 java.lang.Thread.run(Thread.java:619)
这是我的 Maven 依赖树
D:\Tutorial\simpleWeb>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building simpleWeb Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.primefaces:primefaces:jar:2.2.RC2 is missing, no dependency information available
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ simpleWeb ---
[WARNING] Missing POM for org.primefaces:primefaces:jar:2.2.RC2
[INFO] com.mytutorial:simpleWeb:war:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] +- org.springframework:spring-context:jar:3.1.0.M1:compile
[INFO] +- org.springframework:spring-context-support:jar:3.1.0.M1:compile
[INFO] +- org.springframework:spring-oxm:jar:3.0.4.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:3.0.4.RELEASE:compile
[INFO] | \- org.springframework:spring-core:jar:3.0.4.RELEASE:compile
[INFO] | \- org.springframework:spring-asm:jar:3.0.4.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.binding:jar:2.2.1.RELEASE:compile
[INFO] | \- org.springframework:org.springframework.expression:jar:3.0.4.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.js:jar:2.2.1.RELEASE:compile
[INFO] | \- org.springframework.webflow:org.springframework.js.resources:jar:2.2.1.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.webflow:jar:2.2.1.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.faces:jar:2.2.1.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-web:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-web:jar:3.0.3.RELEASE:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework.security:spring-security-acl:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-jdbc:jar:3.0.3.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-core:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-expression:jar:3.0.3.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:3.0.3.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:3.0.3.RELEASE:compile
[INFO] | +- org.aspectj:aspectjrt:jar:1.6.8:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.6.8:compile
[INFO] +- org.springframework.security:spring-security-taglibs:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-aspects:jar:3.0.5.RELEASE:compile
[INFO] +- org.codehaus.castor:castor:jar:1.3.1:compile
[INFO] +- org.codehaus.castor:castor-xml-schema:jar:1.3.1:compile
[INFO] | \- org.codehaus.castor:castor-xml:jar:1.3.1:compile
[INFO] +- org.codehaus.castor:castor-core:jar:1.3.1:compile
[INFO] +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] +- commons-codec:commons-codec:jar:1.5:compile
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] +- commons-io:commons-io:jar:1.3.1:compile
[INFO] +- commons-logging:commons-logging:jar:1.1:compile
[INFO] +- com.sun.faces:jsf-api:jar:2.0.3-b05:compile
[INFO] +- com.sun.faces:jsf-impl:jar:2.0.3-b05:runtime
[INFO] +- javax.servlet:jstl:jar:1.2:runtime
[INFO] +- log4j:log4j:jar:1.2.16:compile
[INFO] +- org.slf4j:com.springsource.slf4j.log4j:jar:1.5.10:compile
[INFO] | \- org.apache.log4j:com.springsource.org.apache.log4j:jar:1.2.15:compile
[INFO] +- org.slf4j:com.springsource.slf4j.api:jar:1.5.10:compile
[INFO] +- org.primefaces:primefaces:jar:2.2.RC2:compile
[INFO] +- commons-lang:commons-lang:jar:2.4:compile
[INFO] +- net.sf.ehcache:ehcache-core:jar:2.4.2:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] \- net.sf.ehcache:ehcache-terracotta:jar:2.1.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.188s
[INFO] Finished at: Wed Jun 01 14:38:05 IST 2011
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
I have integrated SWF 2.2.1,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0M1I and EhCache.
I am able to get the first page of my application but on submitting the page getting following weird error. I googled it , did not get any information on this.
SEVERE: Servlet.service() for servlet
Spring MVC Dispatcher Servlet threw
exception java.lang.NoSuchMethodError:
org.springframework.core.convert.support.PropertyTypeDescriptor.(Ljava/beans/PropertyDescriptor;Lorg/springframework/core/MethodParameter;)V
at
org.springframework.expression.spel.support.ReflectivePropertyAccessor.canRead(ReflectivePropertyAccessor.java:88)
at
org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:189)
at
org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:71)
at
org.springframework.expression.spel.ast.CompoundExpression.setValue(CompoundExpression.java:76)
at
org.springframework.expression.spel.standard.SpelExpression.setValue(SpelExpression.java:169)
at
org.springframework.binding.expression.spel.SpringELExpression.setValue(SpringELExpression.java:109)
at
org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:80)
at
org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
at
org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
at
org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
at
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)
at
org.springframework.webflow.engine.State.enter(State.java:194)
at
org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at
org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:391)
at
org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at
org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
at
org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
at
org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:386)
at
org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at
org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:254)
at
org.springframework.webflow.engine.ViewState.resume(ViewState.java:218)
at
org.springframework.webflow.engine.Flow.resume(Flow.java:545)
at
org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
at
org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
at
org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at
java.lang.Thread.run(Thread.java:619)
Here is my maven dependency tree
D:\Tutorial\simpleWeb>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building simpleWeb Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.primefaces:primefaces:jar:2.2.RC2 is missing, no dependency information available
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ simpleWeb ---
[WARNING] Missing POM for org.primefaces:primefaces:jar:2.2.RC2
[INFO] com.mytutorial:simpleWeb:war:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] +- org.springframework:spring-context:jar:3.1.0.M1:compile
[INFO] +- org.springframework:spring-context-support:jar:3.1.0.M1:compile
[INFO] +- org.springframework:spring-oxm:jar:3.0.4.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:3.0.4.RELEASE:compile
[INFO] | \- org.springframework:spring-core:jar:3.0.4.RELEASE:compile
[INFO] | \- org.springframework:spring-asm:jar:3.0.4.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.binding:jar:2.2.1.RELEASE:compile
[INFO] | \- org.springframework:org.springframework.expression:jar:3.0.4.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.js:jar:2.2.1.RELEASE:compile
[INFO] | \- org.springframework.webflow:org.springframework.js.resources:jar:2.2.1.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.webflow:jar:2.2.1.RELEASE:compile
[INFO] +- org.springframework.webflow:org.springframework.faces:jar:2.2.1.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-web:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-web:jar:3.0.3.RELEASE:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework.security:spring-security-acl:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-jdbc:jar:3.0.3.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-core:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-expression:jar:3.0.3.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:3.0.3.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:3.0.3.RELEASE:compile
[INFO] | +- org.aspectj:aspectjrt:jar:1.6.8:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.6.8:compile
[INFO] +- org.springframework.security:spring-security-taglibs:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-aspects:jar:3.0.5.RELEASE:compile
[INFO] +- org.codehaus.castor:castor:jar:1.3.1:compile
[INFO] +- org.codehaus.castor:castor-xml-schema:jar:1.3.1:compile
[INFO] | \- org.codehaus.castor:castor-xml:jar:1.3.1:compile
[INFO] +- org.codehaus.castor:castor-core:jar:1.3.1:compile
[INFO] +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] +- commons-codec:commons-codec:jar:1.5:compile
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] +- commons-io:commons-io:jar:1.3.1:compile
[INFO] +- commons-logging:commons-logging:jar:1.1:compile
[INFO] +- com.sun.faces:jsf-api:jar:2.0.3-b05:compile
[INFO] +- com.sun.faces:jsf-impl:jar:2.0.3-b05:runtime
[INFO] +- javax.servlet:jstl:jar:1.2:runtime
[INFO] +- log4j:log4j:jar:1.2.16:compile
[INFO] +- org.slf4j:com.springsource.slf4j.log4j:jar:1.5.10:compile
[INFO] | \- org.apache.log4j:com.springsource.org.apache.log4j:jar:1.2.15:compile
[INFO] +- org.slf4j:com.springsource.slf4j.api:jar:1.5.10:compile
[INFO] +- org.primefaces:primefaces:jar:2.2.RC2:compile
[INFO] +- commons-lang:commons-lang:jar:2.4:compile
[INFO] +- net.sf.ehcache:ehcache-core:jar:2.4.2:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] \- net.sf.ehcache:ehcache-terracotta:jar:2.1.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.188s
[INFO] Finished at: Wed Jun 01 14:38:05 IST 2011
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只是在这里猜测,但您依赖于 org.springframework:spring-context:jar:3.1.0.M1 和 org.springframework:spring-core:jar:3.0.4。发布。我的猜测是这些版本号应该相同。
如果核心没有 3.1 里程碑,至少尝试最新版本 3.0.5。
I'm just guessing here but you depend on
org.springframework:spring-context:jar:3.1.0.M1
andorg.springframework:spring-core:jar:3.0.4.RELEASE
. My guess is that those version numbers should be equal.If there is no 3.1 milestone for core, at least try the latest release 3.0.5.