camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Newsham <jnews...@referentia.com>
Subject Re: Cannot handle Exception thrown from Splitter Expression
Date Thu, 10 Feb 2011 20:04:40 GMT
On 2/10/2011 9:41 AM, rmorris wrote:
> I think I've found a similar case when the exception occurs within a
> split().method()
>
> In this case, the exception is thrown inside the method() and doesn't make
> it to the onException() handler.
> Adding a .onException() into the direct://testsplitter route doesn't seem to
> make any difference.
>
> Is this indeed a bug?
>
> http://camel.465427.n5.nabble.com/file/n3379965/SplitterTest2.java
> SplitterTest2.java
>
> Rick Morris
>

I've had this same issue, just haven't had the time to look into it or 
reproduce it in isolation.  split().method(...).  I ended up putting a 
try/catch/log in my splitter method code, which was sufficient for my 
purposes.

Jim

Mime
View raw message