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

HttpExchange.getRequestBody().close() throws Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6u10
    • 6
    • 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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: