-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b02
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2147319 | 7 | Michael McMahon | P4 | Closed | Fixed | b12 |
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
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
- backported by
-
JDK-2147319 HttpExchange.getRequestBody().close() throws Exception
-
- Closed
-