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