Re: Handling Exception from marshal/unmarshal

2009-05-17 Thread Claus Ibsen
On Sat, May 16, 2009 at 10:59 PM, Joe Gottman wrote: > > Here is a small project.  I hope it is understandable.  I don't know JIRA > well enough to create a ticket. > http://www.nabble.com/file/p23577706/uncompressTest.7z uncompressTest.7z > >   Here's the relevant part of the route: > >        .d

Re: Handling Exception from marshal/unmarshal

2009-05-17 Thread Willem Jiang
Hi, .bean(Class, String) is a expression , it will not affect the message body. And this DSL should work for you. .transform().bean(JaxbExceptionHandler.class, "handleError") Willem Joe Gottman wrote: > Here is a small project. I hope it is understandable. I don't know JIRA > well enough to

Re: Handling Exception from marshal/unmarshal

2009-05-16 Thread Joe Gottman
Here is a small project. I hope it is understandable. I don't know JIRA well enough to create a ticket. http://www.nabble.com/file/p23577706/uncompressTest.7z uncompressTest.7z Here's the relevant part of the route: .doTry() .unmarshal(new JaxbDataFormat("camel.unma

Re: Handling Exception from marshal/unmarshal

2009-05-12 Thread Claus Ibsen
Hi Can you create a small project or unit test demonstrating this? And if so please create a JIRA ticket and attach the sample project. Then we have a good head start to investigate, and see what the problem is. In the mean time you are welcome to try with 2.0-SNAPSHOT to see if the problem stil

Re: Handling Exception from marshal/unmarshal

2009-05-12 Thread Joe Gottman
Claus Ibsen-2 wrote: > > On Tue, May 12, 2009 at 2:13 AM, Joe Gottman > wrote: > > Can you show the route DSL how you do this? You should generally use > handled(true) to clear the exception. > Or use doTry() .. doCatch() just as you would use try .. catch in normal > Java > http://camel.apac

Re: Handling Exception from marshal/unmarshal

2009-05-11 Thread Claus Ibsen
On Tue, May 12, 2009 at 2:13 AM, Joe Gottman wrote: > >   I am using Camel version 2.0M1.  When I call unmarshal() using the Jaxb > format I want to handle any exceptions thrown by the unmarshal() call.  I > use an onException() statement and the Exception is being caught.  However, > when I later