Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
AHASSAN1
Contributor
Contributor

Error : Caused by: java.lang.NoClassDefFoundError: org/apache/camel/Exchange;

Hello,

Having developed a simple route calling a job via cTalendJob component, I get this error when I try to deploy it on the Runtime:

| ERROR | Camel (xxx.xxx_0_1.xxx) thread #22 - timer://abo | rg.apache.camel.util.CamelLogger 204 | 236 - org.apache.camel.camel-core - 2.24.2 | Failed delivery for (MessageId: ID-rt-rec-2-v7-1603979594440-6-6 on ExchangeId: ID-rt-rec-2-v7-1603979594440-6-5). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-rt-rec-2-v7-1603979594440-6-5]

Caused by: java.lang.NoClassDefFoundError: Lorg/apache/camel/Exchange;

Caused by: java.lang.ClassNotFoundException: org.apache.camel.Exchange cannot be found by xxx.xxx_2_0.1.0.SNAPSHOT

Any suggestion please ?

Thanks,

Ahmad 

Labels (6)
2 Replies
Anonymous
Not applicable

Hello,

Does your route run as expected in Studio, but fails when deployed and run from Runtime?

It seems that the external library JAR was not packaged when the route was built/published. Could you please open the route, select the Dependencies tab, then select the check box next to the external JAR file. And that rebuild or republish the route to see if it works?

0693p00000AGXVQAA5.jpgBest regards

Sabrina

joseng_62
Contributor II
Contributor II

Also getting this problem and the suggested link provided in the previous comment does not resolve the problem.

That is another issue when additional external bundles are required and specific bundle for the underlying job is required.

In our case we had to do the following on the route job:

> Dependencies tab

> Import Packages

Add

package name to be added "org.talend.camel".

That is all to be added.

Rebuild and redeploy.