JDK-6744329 : Exception in light weight http server code
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-09-03
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u18Fixed 7 b37Fixed
Description
Get this exception in light weight http server. http.jar is compiled with JDK5

java.lang.ArrayIndexOutOfBoundsException: 4104
    at sun.net.httpserver.ChunkedOutputStream.write(ChunkedOutputStream.java:53)
    at sun.net.httpserver.PlaceholderOutputStream.write(ExchangeImpl.java:368)
    at java.io.FilterOutputStream.write(FilterOutputStream.java:60)
    at com.sun.xml.ws.encoding.MimeCodec.writeAsAscii(MimeCodec.java:207)
    at com.sun.xml.ws.encoding.MtomCodec.encode(MtomCodec.java:173)

Comments
EVALUATION I still see an exception with the provided jar. I am reopening this one.
11-09-2008

EVALUATION fix in ChunkedOutputStream
11-09-2008