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
          394 kB
          Weinan Li
        2. 5de08721666a3d258b1a38f8e4cf9dc7.jpeg
          400 kB
          Weinan Li
        3. 8c36162a973ac69a61ca1fcf4a9d6c9e.jpeg
          416 kB
          Weinan Li
        4. IntelliJ IDEAScreenSnapz002.png
          132 kB
          Weinan Li
        5. IntelliJ IDEAScreenSnapz003.png
          21 kB
          Weinan Li
        6. IntelliJ IDEAScreenSnapz006.png
          569 kB
          Weinan Li
        7. IntelliJ IDEAScreenSnapz019.png
          290 kB
          Weinan Li
        8. iTerm2ScreenSnapz032.png
          250 kB
          Weinan Li
        9. iTerm2ScreenSnapz033.png
          186 kB
          Weinan Li
        10. pom.xml
          7 kB
          malloum laya
        11. pom.xml
          7 kB
          malloum laya
        12. tomcat.txt
          6 kB
          Weinan Li
        13. undertow.txt
          7 kB
          Weinan Li
        14. WiresharkScreenSnapz001.png
          630 kB
          Weinan Li
        15. WiresharkScreenSnapz001.png
          606 kB
          Weinan Li
        16. WiresharkScreenSnapz002.png
          311 kB
          Weinan Li
        17. WiresharkScreenSnapz002.png
          1.25 MB
          Weinan Li
        18. WiresharkScreenSnapz002.png
          849 kB
          Weinan Li
        19. WiresharkScreenSnapz003.png
          1.32 MB
          Weinan Li

              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: