HttpExchange.getRequestBody().close() throws Exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6u10
    • Affects Version/s: 6
    • Component/s: core-libs
    • b02
    • generic
    • generic

        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: