Errors in ESB Runtime

Highlighted
One Star

Errors in ESB Runtime

Hi,
I am using TOS ESB v5.2.2. I have a route which calls an existing talend job using cTalengjob. The route works fine within Studio but when I deploy the file to the ESB Runtime i get the following error:
++++++++++++++++++++++++++++
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange
at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1286)
at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:282)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:64)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)
at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)
at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:336)
at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:189)
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155)
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/axiom/util/stax/wrapper/XMLStreamReaderWrapper, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for interface javax/xml/stream/XMLStreamReader have different Class objects for the type javax/xml/namespace/QName used in the signature
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tFileInputDelimited_2Process(WurzelDataPump.java:1178)
at mbnl.wurzeldatapump_0_1.WurzelDataPump.runJobInTOS(WurzelDataPump.java:4783)
at org.talend.camel.TalendProducer.invokeTalendJob(TalendProducer.java:87)
at org.talend.camel.TalendProducer.process(TalendProducer.java:62)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
... 45 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/axiom/util/stax/wrapper/XMLStreamReaderWrapper, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for interface javax/xml/stream/XMLStreamReader have different Class objects for the type javax/xml/namespace/QName used in the signature
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tContextDump_1Process(WurzelDataPump.java:1502)
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tFileInputDelimited_2Process(WurzelDataPump.java:1170)
... 49 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/axiom/util/stax/wrapper/XMLStreamReaderWrapper, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for interface javax/xml/stream/XMLStreamReader have different Class objects for the type javax/xml/namespace/QName used in the signature
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tFileExist_1Process(WurzelDataPump.java:1596)
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tContextDump_1Process(WurzelDataPump.java:1494)
++++++++++++++++++++++++++
Does anyone know whats causing the error and how to resolve it?
TIA
One Star

Re: Errors in ESB Runtime

Hi,
I am using TOS ESB v5.2.2. I have a route which calls an existing talend job using cTalengjob. The route works fine within Studio but when I deploy the file to the ESB Runtime i get the following error:

org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange
at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1286)
at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:282)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:64)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)
at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)
at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:336)
at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:189)
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155)
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/axiom/util/stax/wrapper/XMLStreamReaderWrapper, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for interface javax/xml/stream/XMLStreamReader have different Class objects for the type javax/xml/namespace/QName used in the signature
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tFileInputDelimited_2Process(WurzelDataPump.java:1178)
at mbnl.wurzeldatapump_0_1.WurzelDataPump.runJobInTOS(WurzelDataPump.java:4783)
at org.talend.camel.TalendProducer.invokeTalendJob(TalendProducer.java:87)
at org.talend.camel.TalendProducer.process(TalendProducer.java:62)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
... 45 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/axiom/util/stax/wrapper/XMLStreamReaderWrapper, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for interface javax/xml/stream/XMLStreamReader have different Class objects for the type javax/xml/namespace/QName used in the signature
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tContextDump_1Process(WurzelDataPump.java:1502)
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tFileInputDelimited_2Process(WurzelDataPump.java:1170)
... 49 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/apache/axiom/util/stax/wrapper/XMLStreamReaderWrapper, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for interface javax/xml/stream/XMLStreamReader have different Class objects for the type javax/xml/namespace/QName used in the signature
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tFileExist_1Process(WurzelDataPump.java:1596)
at mbnl.wurzeldatapump_0_1.WurzelDataPump.tContextDump_1Process(WurzelDataPump.java:1494)

Does anyone know whats causing the error and how to resolve it?
TIA

It seems its a library clash between esb runtime jars and my route's bundle according to this article.
https://community.talend.com/t5/Design-and-Development-Internal/java-lang-LinkageError-Talend-job-ex...
Does anyone know how to edit the bundle-classpath in Studio? When i choose the option 'Edit Route Manifest, the Bundle-Classpath block is blank!
TIA
Employee

Re: Errors in ESB Runtime

Please check with this command:
karaf@trun> exports |grep javax.xml.stream
and post the result.
if you see there are multi bundles which exports the javax.xml.stream pakage, then keep only one of them installed/started in the container.
One Star

Re: Errors in ESB Runtime

Please check with this command:
karaf@trun> exports |grep javax.xml.stream
and post the result.
if you see there are multi bundles which exports the javax.xml.stream pakage, then keep only one of them installed/started in the container.

Hi xldai,
this is the result:
karaf@trun> exports |grep javax.xml.stream
0 # javax.xml.stream; version="0.0.0"
0 # javax.xml.stream.events; version="0.0.0"
0 # javax.xml.stream.util; version="0.0.0"
97 javax.xml.stream; version="1.0.1"
97 javax.xml.stream.util; version="1.0.1"
97 javax.xml.stream.events; version="1.0.1"
Looks like it is commented out in bundle 0.
Is it safe to stop bundle 97?
TIA
Employee

Re: Errors in ESB Runtime

Well, since javax.xml.stream only exported by 97 bundle, you can't stop it anymore.
did you open the Manifest of the route bundle in a text editor? could you post the content of Bundle-Classpath?
One Star

Re: Errors in ESB Runtime

Well, since javax.xml.stream only exported by 97 bundle, you can't stop it anymore.
did you open the Manifest of the route bundle in a text editor? could you post the content of Bundle-Classpath?

Hi xldai,
here is the content of the Bundle-Classpath:
Bundle-ClassPath: .,lib/axis.jar,lib/axiom-api-1.2.13.jar,lib/commons-
httpclient-3.1.jar,lib/xmlbeans-2.3.0.jar,lib/mail.jar,lib/axis2-kern
el-1.6.2.jar,lib/axis2-xmlbeans-1.6.2.jar,lib/saaj.jar,lib/axiom-impl
-1.2.13.jar,lib/XmlSchema-1.4.7.jar,lib/apache-mime4j-core-0.7.2.jar,
lib/XBeans-packaged.jar,lib/commons-codec-1.3.jar,lib/activation.jar,
lib/EDSGen.jar,lib/axis2-adb-1.6.2.jar,lib/systemRoutines.jar,lib/use
rRoutines.jar,lib/talend_file_enhanced_20070724.jar,lib/jaxrpc.jar,li
b/WebServiceInput.jar,lib/axis2-transport-local-1.6.2.jar,lib/axis2-t
ransport-http-1.6.2.jar,lib/commons-lang3-3.1.jar,lib/httpcore-4.0.ja
r,lib/neethi-3.0.2.jar,lib/commons-discovery-0.2.jar,lib/talendcsv.ja
r,lib/commons-logging-1.1.jar
Employee

Re: Errors in ESB Runtime

could you please try to remove "lib/jaxrpc.jar," from Bundle-Classpath and deploy the route kar again?
One Star

Re: Errors in ESB Runtime

could you please try to remove "lib/jaxrpc.jar," from Bundle-Classpath and deploy the route kar again?

That has resolved the problem. Many thanks xldai. I edited the Bundle-Classpath in the Manifest file of the kar file using Winrar.
Is this meant to be editable in Studio? It's showing as blank field when I choose 'Edit Route Manifest'
Employee

Re: Errors in ESB Runtime

Yes, but seems no for now, that's what need to be improved/fixed.
One Star

Re: Errors in ESB Runtime

Yes, but seems no for now, that's what need to be improved/fixed.

Thanks for your help xldai.
One Star

Re: Errors in ESB Runtime

hi xldai,
Can you give me the proper path of this code....?

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read