Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-652

ClientErrorInterceptor: IOException Stream closed when trying to get the error message from response

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.2.Final
    • 2.3.1, 2.3.0.GA
    • jaxrs
    • None

      I'm getting an java.io.IOException: Stream closed when trying to read the response entity inside an ClientErrorInterceptor.handle.

      My ClientErrorInterceptor.handle was extracted from the instructions in the documentation: http://docs.jboss.org/resteasy/docs/2.3.1.GA/userguide/html_single/index.html#Client_error_handling

      I created a project to reproduce the problem at: https://github.com/matheustardivo/resteasy-web

      Run mvn verify to run the tests and see the problem.

      If you change the resteasy.version to 2.0.1.GA in pom.xml and run the tests again, then all will pass.

              rsigal@redhat.com Ronald Sigal
              matheustardivo Matheus Tardivo (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: