Hi Here is some pointers how to debug Camel routes http://camel.apache.org/debugger.html
But in your case there must be more information in that stacktrace that can tell you what the problem is. As you use XML and XPath its 99% a problem with your xpath expression not working. There is XML / XPath tooling you can use to try and test your expressions to make sure its valid. And mind that if your XML uses namespaces, then the xpath expression must use that as well. This is a common issue with the xpath api in Java and you can google about this to find out how to do it. As well we got some pointers here: http://camel.apache.org/xpath On Sun, May 5, 2013 at 12:07 PM, ihullu <idehu...@online.nl> wrote: > Hello, > > I have the attached project. > > The problem is I get an exception. I cannot catch this exception in the > Eclipse debugger to see what is wrong. > > When I comment out the line: .setHeader("id", > xpath("/Product/id/text()")).log("id = ${in.header.id}") > > it works. > > When I leave it in it does not work I get the exception: > > [el-1) thread #4 - ShutdownTask] DefaultShutdownStrategy INFO > Waiting as there are still 3 inflight and pending exchanges to complete, > timeout in 298 seconds. > [mel-1) thread #0 - file://data] DefaultErrorHandler ERROR Failed > delivery for (MessageId: ID-ID02405-65164-1367748163096-0-1 on ExchangeId: > ID-ID02405-65164-1367748163096-0-2). Exhausted after delivery attempt: 1 > caught: org.apache.camel.CamelExecutionException: Exception occurred during > execution on the exchange: Exchange[soundwear_five4u.txt] > org.apache.camel.CamelExecutionException: Exception occurred during > execution on the exchange: Exchange[soundwear_five4u.txt] > at > org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1354)[camel-core-2.11.0.jar:2.11.0] > at > org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:272)[camel-core-2.11.0.jar:2.11.0] > > I looked at the line of the incoming file to see if I see something weird > but I cannot find anything. > > I also cannot 'debug' my code to see where it goes wrong. > > My question is to any Camel expert: > > 1. What is wrong here? > 2. How can I easily debug a Camel project. Do I need to add additional > logging. > 3. I saw something like Fuse that can debug/trace stuff. This is not > opensource anymore, is there an alternative to debug in Fuse terms instead > of low level Java. > > Regards > Izaak > > > > csv-route.zip > <http://camel.465427.n5.nabble.com/file/n5732036/csv-route.zip> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Problem-debugging-Exception-tp5732036.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen