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

NullPointerException building ClientResponseFailure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.5.0.CR1, 4.0.0.Beta2
    • 3.1.4.Final
    • jaxrs
    • None

      We are using OpenStack4j with resteasy-jaxrs. Today I debugged a NullPointerException that was thrown when processing a 404 response with http-headers "Content-Type: application/json" and "Content-Length: 238".

      I traced through the Resteasy code and found the root cause to be within resteasy. This is how the issue occurs:

      However,

      ReadFromStream.readFromStream(1024, is);
      

      does not handle is == null, hence the exception. The surrounding try block also only catches IOException .

              rhn-support-asoldano Alessio Soldano
              jrudolph_jira Johannes Rudolph (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: