Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6526158

HttpExchange.getRequestBody().close() throws Exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6u10
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        HttpExchange.getRequestBody().close() throws the following excpetion when the data is not read from the InputStream. In Many cases, he application may not need anything from InputStream.

        java.io.IOException: Stream is closed
                at sun.net.httpserver.FixedLengthInputStream.readImpl(FixedLengthInputStream.java:31)
                at sun.net.httpserver.LeftOverInputStream.drain(LeftOverInputStream.java:91)
                at sun.net.httpserver.LeftOverInputStream.close(LeftOverInputStream.java:48)

        Attaching the program to produce it. Alos need the port of http.jar for JDK 1.5

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michaelm Michael McMahon
                  Reporter:
                  jkotamra Jitendra Kotamraju (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: