Re: Lately (2.14) NullPointerExceptions instead of TypeConversionExceptions

2014-12-15 Thread dermoritz
Probably the stacktrace will not help: the npe is thrown on the line where i use the object returned from getBody(Some.class); The problem ist that no exception is thrown by getBody(Some.class) but null is returned. So there must be a path that returns null. -- View this message in context:

Re: Lately (2.14) NullPointerExceptions instead of TypeConversionExceptions

2014-11-29 Thread Claus Ibsen
Hi Can you paste the stacktrace where you get the NPE ? On Fri, Nov 28, 2014 at 10:31 AM, dermoritz tantea...@hotmail.com wrote: Some day ago i switched to camel 2.14 (mainly because of RoutePolicyFactory - a great idea!). But i also noticed on creating new routes with new processors/

Lately (2.14) NullPointerExceptions instead of TypeConversionExceptions

2014-11-28 Thread dermoritz
Some day ago i switched to camel 2.14 (mainly because of RoutePolicyFactory - a great idea!). But i also noticed on creating new routes with new processors/ aggregators i see many NullPointerExceptions in lines that use object from exchange.getIn().getBody(Some.class). In those cases the body was