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

Caused by: java.io.IOException: UT010029: Stream is closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • 3.5.1.Final, 4.0.0.Beta3
    • 3.1.4.Final
    • jaxrs
    • None
    • Hide

      To Reproduce :

      curl 'http://localhost:8080/api/pias' -H 'Origin: http://localhost:4200' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryfDLIArfCQoCAKctL' -H 'Accept: */*' -H 'Referer: http://localhost:4200/' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary $'------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[name]"\r\n\r\njgh vhbv\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[author_name]"\r\n\r\njhbhb\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[evaluator_name]"\r\n\r\nhjb\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[validator_name]"\r\n\r\nhjbjhb\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[dpo_status]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[dpo_opinion]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[concerned_people_opinion]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[concerned_people_status]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[rejected_reason]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[applied_adjustements]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[created_at]"\r\n\r\nWed Dec 13 2017 11:13:03 GMT+0100 (CET)\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[updated_at]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[status]"\r\n\r\n0\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[dpos_names]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[people_names]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL--\r\n' --compressed
      
      Show
      To Reproduce : curl 'http://localhost:8080/api/pias' -H 'Origin: http://localhost:4200' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryfDLIArfCQoCAKctL' -H 'Accept: */*' -H 'Referer: http://localhost:4200/' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary $'------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[name]"\r\n\r\njgh vhbv\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[author_name]"\r\n\r\njhbhb\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[evaluator_name]"\r\n\r\nhjb\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[validator_name]"\r\n\r\nhjbjhb\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[dpo_status]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[dpo_opinion]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[concerned_people_opinion]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[concerned_people_status]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[rejected_reason]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[applied_adjustements]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[created_at]"\r\n\r\nWed Dec 13 2017 11:13:03 GMT+0100 (CET)\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[updated_at]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[status]"\r\n\r\n0\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[dpos_names]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL\r\nContent-Disposition: form-data; name="pia[people_names]"\r\n\r\nundefined\r\n------WebKitFormBoundaryfDLIArfCQoCAKctL--\r\n' --compressed

      Hi,

      I have a error message (Caused by: java.io.IOException: UT010029: Stream is closed ) with a curl commande below :

      the error is in MultipartFormAnnotationReader class at 50 lines (input.parse(entityStream).

      My Rest service is below :

      @POST

      @Consumes(

      { "multipart/form-data" }

      )
      @Produces(

      { "application/json" }

      )
      @io.swagger.annotations.ApiOperation(value = "", notes = "Creates a new PIA", response = Pia.class, tags={ })
      @io.swagger.annotations.ApiResponses(value =

      { @io.swagger.annotations.ApiResponse(code = 200, message = "PIA response", response = Pia.class), @io.swagger.annotations.ApiResponse(code = 200, message = "unexpected error", response = Pia.class) }

      )
      public Response addPia(MultipartFormDataInput input, @ApiParam(value = "PIA to add" ,required=true) @MultipartForm SamplePia body, @Context SecurityContext securityContext)
      throws NotFoundException

      { return delegate.addPia(input,body,securityContext); }

        1. 3d4f537995013b1aebc0e007419c16b2.jpeg
          3d4f537995013b1aebc0e007419c16b2.jpeg
          394 kB
        2. 5de08721666a3d258b1a38f8e4cf9dc7.jpeg
          5de08721666a3d258b1a38f8e4cf9dc7.jpeg
          400 kB
        3. 8c36162a973ac69a61ca1fcf4a9d6c9e.jpeg
          8c36162a973ac69a61ca1fcf4a9d6c9e.jpeg
          416 kB
        4. IntelliJ IDEAScreenSnapz002.png
          IntelliJ IDEAScreenSnapz002.png
          132 kB
        5. IntelliJ IDEAScreenSnapz003.png
          IntelliJ IDEAScreenSnapz003.png
          21 kB
        6. IntelliJ IDEAScreenSnapz006.png
          IntelliJ IDEAScreenSnapz006.png
          569 kB
        7. IntelliJ IDEAScreenSnapz019.png
          IntelliJ IDEAScreenSnapz019.png
          290 kB
        8. iTerm2ScreenSnapz032.png
          iTerm2ScreenSnapz032.png
          250 kB
        9. iTerm2ScreenSnapz033.png
          iTerm2ScreenSnapz033.png
          186 kB
        10. pom.xml
          7 kB
        11. pom.xml
          7 kB
        12. swager-api.zip
          42 kB
        13. tomcat.txt
          6 kB
        14. undertow.txt
          7 kB
        15. WiresharkScreenSnapz001.png
          WiresharkScreenSnapz001.png
          630 kB
        16. WiresharkScreenSnapz001.png
          WiresharkScreenSnapz001.png
          606 kB
        17. WiresharkScreenSnapz002.png
          WiresharkScreenSnapz002.png
          311 kB
        18. WiresharkScreenSnapz002.png
          WiresharkScreenSnapz002.png
          1.25 MB
        19. WiresharkScreenSnapz002.png
          WiresharkScreenSnapz002.png
          849 kB
        20. WiresharkScreenSnapz003.png
          WiresharkScreenSnapz003.png
          1.32 MB

              weli@redhat.com Weinan Li
              malloum.laya malloum laya (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: