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

Response entity cannot be read with getEntity() after readEntity() is used (IllegalStateException is thrown)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 3.0.13.Final
    • jaxrs
    • None
      • unzip reproducer
      • execute "mvn clean verify -Djboss.home=/path/to/eap"
    • Rejected, with Katerina's agreement.

      Response entity cannot be read with getEntity() after readEntity() is used (IllegalStateException is thrown).

      The javadoc for readEntity() says:

      A non-null message instance returned from this method will be cached for subsequent retrievals via getEntity().
      

      Instead IllegalStateException is thrown

              rsigal@redhat.com Ronald Sigal
              kanovotn Katerina Odabasi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: