PQ78849; 5.0.2.2: IllegalState exception when HEAD
request is issued.
Downloadable files
Abstract
When a HEAD request is sent the following exception
occurs: HttpConnectio E HttpConnection.run:
java.lang.IllegalStateException: 0 response bytes written, but
Content-Length header
Download Description
User is using Java Web Start to get a file from server. Server is
running Embedded Websphere Application Server Express v5.0. The server is
set to use SSL.JWS sends in a GET request to retrieve a file. As part of
the GET request, WebSphere Application Server does an HTTP HEAD request. A
Head request returns the headers of a get request but no BODY was written.
This causes the socket to close and get the fail even though the file was
available.
USERS AFFECTED: Any user whose client sends a HEAD request to a static
file.
This is the result of a bug in the code. The exception is thrown because 0
response bytes are written when the file has a Content-Length, however
this is working as designed since no bytes are supposed to be written for
a HEAD request.
Prerequisites
Please download the UpdateInstaller below to install this fix.