Java: Exception in light weight http server code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The sun.net.httpserver randomly fails with java.lang.
In essence a combination of writes to the class can end up leaving the ChunkedOutputStream with exactly CHUNK_SIZE bytes in, and a further write will under various circumstances overfill the buffer. This will then cause an exception with the chunk is written.
This bug is documented at Sun/Oracle with bug number #6744329:
http://
The patch to fix it is here:
http://
The bug at Sun marks this fixed as follows:
Release Fixed 7(b37), 6u18(b03) (Bug ID:2183328)
However, despite the 6u18(b03) tag above, the Ubuntu source the current Lucide openjdk build (openjdk-
As the effects are serious (random failure of http server), and the patch is upstream, has been around since Sep 2008, and is obviously correct, I am asking for an SRU.
I have verified this problem on Lucid. I have not verified on Maverick, Natty, or Oneiric, but I expect it is the same. I have not verified it on Precise, though I think that might have openjdk 7 on.
Full stack trace:
May 3 16:01:19 extility-qav-2kvm jade: java.lang.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at com.sun.
May 3 16:01:19 extility-qav-2kvm jade: at com.sun.
May 3 16:01:19 extility-qav-2kvm jade: at com.sun.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at com.sun.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at com.sun.
May 3 16:01:19 extility-qav-2kvm jade: at sun.net.
May 3 16:01:19 extility-qav-2kvm jade: at java.util.
May 3 16:01:19 extility-qav-2kvm jade: at java.util.
May 3 16:01:19 extility-qav-2kvm jade: at java.lang.