Thank you for responding back. My understanding is that Camel should automatically convert and pass the correct object type to my custom splitter method. Is this correct ?
Claus Ibsen-2 wrote > > Hi > > Are you sure there is no more stacktrace details? > > > Yes. This is the only stacktrace that I see on tomcat logs. Claus Ibsen-2 wrote > > > The caused exception is caught by Camel and recorded on the exchange at > org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:151)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT] > > Which is then logged by Tomcat later on. A bit odd it dont log the > caused exception. > > As you use SNAPSHOT code, then feel free to modify BeanProcessor.java > around line 151, and do a printStackTrace() etc on the caused > exception to see the cause. > > Its related to Camel introspecting the bean, and some error occurs. > > I thought of doing that but for some reason I cannot make maven to download the SNAPSHOT code along with the build jar. I'm assuming I need to manually download it and then build it locally and tell maven to pick it up the local version instead of the SNAPSHOT version. Or is there an easier way ? Claus Ibsen-2 wrote > > > Also maybe you need a try .. catch when you use the Camel producer > template to log the caused exception. > I added the following to my producer template but it still doesn't log any exceptions. try { ProducerTemplate template = ctxAware.getCamelContext().createProducerTemplate(); template.request("direct:start", new MyCustomProcessor()); }catch(Exception e) { e.printStackTrace(); } -- View this message in context: http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336p5683052.html Sent from the Camel - Users mailing list archive at Nabble.com.