views:

20

answers:

2

This is an issue when I change the camel version from 1.6 to 2.4. I wanted to use a method userOriginaLmessage which was not supported in 1.6. Hence I starte using camel 2.4 version. The code is getting compiled. But when I deploy it in Fuse ESB environment I get below error.

Unexpected exception parsing XML document from class path resource [camel-route.xml]; nested exception is java.lang.VerifyError:

Can you please help me on this ? What can be the issue.

Thanks in advance for the help.

A: 

Is there any more error message showing up than what you posted? Seems a bit lacking in information :)

There were a ton of changes from 1.6 to 2.4. You should take a look at the Camel 1.x -> 2.x migration guide if you have not done so already:

http://fusesource.com/docs/router/2.2/migration/index.html

janstey
<loc-message>Unexpected exception parsing XML document from class path resource [camel-route.xml]; nested exception is java.lang.VerifyError: (class: com/cvs/rxdw/ePrescribing/datastore/camel/RxSureScriptStoreRouteBuilder, method: configure signature: ()V) Incompatible argument to function</loc-message><java.lang.VerifyError: (class: com/cvs/rxdw/ePrescribing/datastore/camel/RxSureScriptStoreRouteBuilder, method: configure signature: ()V) Incompatible argument to function
Ravi
stack-trace><![CDATA[org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [camel-route.xml]; nested exception is Above is the stack trace that I can see in the error log.
Ravi
A: 

Hi Janstey,

Below is the whole stack trace ...

13:54:38,944 | ERROR | Timer-2 | CamelJbiComponent | on.xbean.AbstractXBeanDeployer 108 | java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext 13:54:39,069 | ERROR | Timer-2 | AutoDeploymentService | ramework.AutoDeploymentService 363 | Failed to update Service Assembly: ePrescribing-data-store-sa java.lang.Exception: deploy FAILED ERROR servicemix-camel deploy FAILED ERROR Could not deploy xbean service unit 1 Unexpected exception parsing XML document from class path resource [camel-route.xml]; nested exception is java.lang.VerifyError: (class: com/cvs/rxdw/ePrescribing/datastore/camel/RxSureScriptStoreRouteBuilder, method: configure signature: ()V) Incompatible argument to function

Ravi