получение ошибки времени выполнения 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.

Я могу получить первую страницу своего приложения, но при отправке страницы появляется следующая странная ошибка. Гуглил, никакой информации по этому поводу не нашел.

Вот мое дерево зависимостей 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] ------------------------------------------------------------------------
и _2_. Я предполагаю, что эти номера версий должны быть равны.

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] ------------------------------------------------------------------------

person C4CodeE4Exe    schedule 31.05.2011    source источник
comment
Он закрыт? Не могли бы вы сказать мне причину, чтобы я не мог повторить это в будущем. Спасибо   -  person abalogh    schedule 31.05.2011
comment
что вы имеете в виду, если он закрыт? вопрос не закрыт, если вы об этом спрашивали. я не знаю, почему вы получили отрицательный голос, не я, хотя мне все еще нужен вывод зависимости: дерево, чтобы помочь, у вас, вероятно, есть некоторые конфликтующие версии ваших банок, но я не могу сказать, какие из них.   -  person C4CodeE4Exe    schedule 31.05.2011
comment
Я отредактировал вопрос и опубликовал его.   -  person abalogh    schedule 31.05.2011
comment
Спасибо абалог. Я решал только это. Удалил конфликтующие зависимости. Заработало!!! yipeee :-) Это типичный сценарий, когда мне нужны все зависимости выпуска Spring 3.0.4 и только поддержка spring-context и spring-context-support 3.1.0.M1 (поскольку я использую возможности кэширования этого нового выпуска).   -  person C4CodeE4Exe    schedule 01.06.2011
comment
СЕРЬЕЗНЫЙ: 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.Evaluat eAction.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 .двигатель.импл. 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)   -  person C4CodeE4Exe    schedule 01.06.2011


Ответы (1)


Если для ядра нет версии 3.1, попробуйте хотя бы последнюю версию 3.0.5.

Вы можете опубликовать вывод «mvn dependency:tree»?

person Aaron Digulla    schedule 01.06.2011