Re: Intermittent error: No content to map due to end-of-input

2015-01-14 Thread Willem Jiang
When you convert the message into String, the message can be read more than once. When you reset the stream cache, you can read the message again. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter:

Re: Intermittent error: No content to map due to end-of-input

2015-01-13 Thread shanaloh
I read this thread and added convertBodyTo(String.class) after the wiretap and before unmarshal(). the error is gone. http://t166678.apache-camel-user.apacheforum.info/wiretap-problem-t166678.html any idea why a convert to string will resolve the issue? -- View this message in context:

Re: Intermittent error: No content to map due to end-of-input

2014-12-17 Thread shanaloh
Hi Willem, The only thing before the unmarshal is the wiretap. I am almost certain the issue is with the wiretap. RouteDefinition rdRouteDefinition = from( createListeningService() ).routeId( getRouteId() );

Re: Intermittent error: No content to map due to end-of-input

2014-12-16 Thread Willem Jiang
Did you try to reset the StreamCache before try to read something from it? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On December 16, 2014 at 3:04:45 PM,

Intermittent error: No content to map due to end-of-input

2014-12-15 Thread shanaloh
hi guys, I am quite new to Camel. We are using Camel 2.14. I got this intermittent error which is quite annoying. It happens very rarely and randomly. If I send the same request again, it will process just fine. 2014-12-15 17:24:56.700 ERROR 1852673485@qtp-1010937526-2