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: willemjiang Weibo: 姜宁willem On January 14, 2015 at 10:21:47 AM, shanaloh ([email protected]) wrote: > 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: > http://camel.465427.n5.nabble.com/Intermittent-error-No-content-to-map-due-to-end-of-input-tp5760725p5761661.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >
