java.io.IOException: Stream closed while reading the exchange body in camel

Solution Verified - Updated -

Issue

  • We were getting java.io.IOException: Stream closed after logging the message using <log> spring dsl method
    Description. It should smoothly convert the StringReader message to String , and should have close the stream. Sample route:-
<route>
    <from uri="switchyard://HttpService" />
    <recipientList>
        <method bean="ResolutionBean" method="someEndpoint"></method>
    </recipientList>
    <log message="Print body ${body}"/> 
</route>

Environment

  • Red Hat JBoss Fuse Service Works
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content