java.io.IOException: Attempted read from closed stream.

MuleSoft JIRA | Evangelina Martinez Ruiz Moreno | 5 years ago
  1. 0

    Mule School: Getting started with JMS | MuleSoft Blog

    mulesoft.com | 1 year ago
    java.io.IOException: Attempted read from closed stream.
  2. 0

    Mule School: Getting started with JMS | MuleSoft Blog

    mulesoft.com | 5 months ago
    java.io.IOException: Attempted read from closed stream.
  3. 0

    The HTTP Message receiver is not working properly when there are two HTTP inbound endpoints that have the same host and port. Giving the following configuration, the message created for the second inbound endpoint is considered request-response by the HttpMuleMessageFactory and it fails afterwards because the Stream has been closed. <flow name="testA"> <http:inbound-endpoint address="http://localhost:${port1}/test" exchange-pattern="request-response"/> <http:outbound-endpoint address="http://localhost:${port1}/testB" exchange-pattern="one-way"/> <echo-component/> </flow> <flow name="testB"> <http:inbound-endpoint address="http://localhost:${port1}/testB" exchange-pattern="one-way"/> <echo-component/> </flow> Error: ******************************************************************************** Message : Could not read InputStream. Code : MULE_ERROR-65238 -------------------------------------------------------------------------------- Exception stack is: 1. Attempted read from closed stream. (java.io.IOException) org.apache.commons.httpclient.ContentLengthInputStream:160 (null) 2. Could not read InputStream. (org.mule.api.transformer.TransformerException) org.mule.transformer.simple.ObjectToString:87 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.io.IOException: Attempted read from closed stream. at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:160) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:184) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************

    MuleSoft JIRA | 5 years ago | Evangelina Martinez Ruiz Moreno
    java.io.IOException: Attempted read from closed stream.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The HTTP Message receiver is not working properly when there are two HTTP inbound endpoints that have the same host and port. Giving the following configuration, the message created for the second inbound endpoint is considered request-response by the HttpMuleMessageFactory and it fails afterwards because the Stream has been closed. <flow name="testA"> <http:inbound-endpoint address="http://localhost:${port1}/test" exchange-pattern="request-response"/> <http:outbound-endpoint address="http://localhost:${port1}/testB" exchange-pattern="one-way"/> <echo-component/> </flow> <flow name="testB"> <http:inbound-endpoint address="http://localhost:${port1}/testB" exchange-pattern="one-way"/> <echo-component/> </flow> Error: ******************************************************************************** Message : Could not read InputStream. Code : MULE_ERROR-65238 -------------------------------------------------------------------------------- Exception stack is: 1. Attempted read from closed stream. (java.io.IOException) org.apache.commons.httpclient.ContentLengthInputStream:160 (null) 2. Could not read InputStream. (org.mule.api.transformer.TransformerException) org.mule.transformer.simple.ObjectToString:87 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.io.IOException: Attempted read from closed stream. at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:160) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:184) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************

    MuleSoft JIRA | 5 years ago | Evangelina Martinez Ruiz Moreno
    java.io.IOException: Attempted read from closed stream.
  6. 0

    How to use is-xml-filter to validate SOAP request in Mule

    Stack Overflow | 2 years ago | Anirban Sen Chowdhary
    java.lang.RuntimeException: Couldn't parse stream.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Attempted read from closed stream.

      at org.apache.commons.httpclient.ContentLengthInputStream.read()
    2. HttpClient
      ContentLengthInputStream.read
      1. org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:160)
      2. org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:184)
      2 frames
    3. Commons IO
      IOUtils.copyLarge
      1. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025)
      1 frame