获取运行时错误java.lang.NoSuchMethodError:org.springframework.core.convert.support.PropertyTypeDescriptor

时间:2011-05-31 13:27:46

标签: spring spring-security primefaces ehcache

我集成了SWF 2.2.1,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0M1I和EhCache。

我能够获得我的应用程序的第一页,但是在提交页面时遇到了奇怪的错误。我用谷歌搜索,没有得到任何关于此的信息。

  

SEVERE:Servlet的Servlet.service()   Spring MVC Dispatcher Servlet抛出   异常java.lang.NoSuchMethodError:   。org.springframework.core.convert.support.PropertyTypeDescriptor(Ljava /豆类/的PropertyDescriptor; Lorg / springframework的/核心/ 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] ------------------------------------------------------------------------

1 个答案:

答案 0 :(得分:4)

我只是在这里猜测,但你依赖于org.springframework:spring-context:jar:3.1.0.M1org.springframework:spring-core:jar:3.0.4.RELEASE。我的猜测是那些版本号应该相等。

如果核心没有3.1里程碑,至少请尝试最新版本3.0.5。