Project: talendesb
Issue TESB-4209: Problems Loading Camel Xquery Component with ESB Studio
I am using cMessagingEndpoint with the URI, "xquery:orderRecord.xquery". I have set the Camel Component Dependencies on the Advanced Setting tab to include saxon, which I assume is camel-saxon jar per the dependencies for the component. But I still get the stack trace shown attached. The problem is repeatable, but the error is intermittent. I can get the route to run by adding arbitrary other camel-xxx dependencies in the advanced tab and then running the route. It will work, once. But then if I stop the route and try to run again it will fail. I suspect it is a problem with how the Studio runtime is (re)loading the dependencies. I don't think this happened in M04, when I first created the demo route. It may have happened in RC1, because I remember encountering an intermittent "surprise" failure at a rather innopportune time, but I am not sure. I have attached the following files: exercise3-0.1.jar log4j-properties.jar The zip of the project export. demo.zip The zip of data files used by the project. tdemo.zip unzip the tdemo.zip file to the c:\ directory. It contains the tdemo directory with a bunch of directories underneath. The example uses \tdemo\04. Start by testing the web service. Set the cConfig element of the ComponentSamples->CXF Server route to include the exercise3-0.1.jar file. Start the ComponentSamples->CXF Server route. Do the same for the cConfig element of the ComponentSamples->CXF Client route. Start the client route. It should send the same messages every 1/2 second. Start the TransportMediation route. The cConfig dependencies are not handled by export/import so reset the config of the fields to include exercise3-0.1.jar. Check that the Advanced Settings dependencies for the Transform processor in the TransportMediation route is set to include saxon. Run the route in Studio. It should startup and wait for some files to process. In order to run the sample import drop the \tdemo\04\data\orders.xml file into the \tdemo\04\in directory using explorer. It may or may not work the first time. If it works, stop the route route and try and rerun it to get the error. If it fails, try adding some other arbitrary libraries to the Transform element (e.g. atom, or amqp). Then retry. It works - once. And then it stops working again.
Story points: 2