camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Genadii Ganebnyi (JIRA)" <>
Subject [jira] Created: (CAMEL-782) Tracer incorrectly treats messages with InputStream as body
Date Tue, 05 Aug 2008 11:42:52 GMT
Tracer incorrectly treats messages with InputStream as body

                 Key: CAMEL-782
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
            Reporter: Genadii Ganebnyi

Suppose we have the following flow:


In this flow cxf:bean:serviceEndpoint returns ByteArrayInputStream as body. Under normal conditions
everything works fine: WS output gets to the queue.
But if we add:
getContext().addInterceptStrategy(new Tracer());
Queue starts receiving empty messages. After digging in the code I found out that tracer reads
input stream in order to display body, but not resets it. Thus when message reaches unmarshaller,
nothing could be read from the stream.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message