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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.