You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by liulei <18...@qq.com> on 2016/10/27 08:17:58 UTC

Exception--java.lang.NoSuchMethodError: org.springframework.beans.annotation.AnnotationBeanUtils.copyPropertiesToBean

I am a new camel developer,today i try my first program with camel ,however i
encounter a problem,and i really appreciate if someone can help me to solve
this problem.


Exception in thread "main" java.lang.NoSuchMethodError:
org.springframework.beans.annotation.AnnotationBeanUtils.copyPropertiesToBean(Ljava/lang/annotation/Annotation;Ljava/lang/Object;Lorg/springframework/util/StringValueResolver;[Ljava/lang/String;)V
	at
org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource.getManagedResource(AnnotationJmxAttributeSource.java:75)
	at
org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler.getDescription(MetadataMBeanInfoAssembler.java:189)
	at
org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getMBeanInfo(AbstractMBeanInfoAssembler.java:64)
	at
org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:220)
	at
org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:211)
	at
org.apache.camel.management.ManagedManagementStrategy.manageNamedObject(ManagedManagementStrategy.java:75)
	at
org.apache.camel.management.ManagedManagementStrategy.manageObject(ManagedManagementStrategy.java:68)
	at
org.apache.camel.management.DefaultManagementLifecycleStrategy.onContextStart(DefaultManagementLifecycleStrategy.java:165)
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1270)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1213)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1191)
	at
com.ll.maven.EsWeb.Servlet.TestCamelAndHdfs.main(TestCamelAndHdfs.java:20)




--
View this message in context: http://camel.465427.n5.nabble.com/Exception-java-lang-NoSuchMethodError-org-springframework-beans-annotation-AnnotationBeanUtils-copyPn-tp5789325.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Exception--java.lang.NoSuchMethodError: org.springframework.beans.annotation.AnnotationBeanUtils.copyPropertiesToBean

Posted by liulei <18...@qq.com>.
after hard efforts,i solve this problem by my self by adding  a  depency.
                 <dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring</artifactId>
			<version>2.5.6</version>
		</dependency>



--
View this message in context: http://camel.465427.n5.nabble.com/Exception-java-lang-NoSuchMethodError-org-springframework-beans-annotation-AnnotationBeanUtils-copyPn-tp5789325p5789330.html
Sent from the Camel Development mailing list archive at Nabble.com.