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.
 
URL LANGUAGE SIZE(Bytes)
UpdateInstaller US English 7000000
 
 
Installation instructions
Please review the readme.txt for detailed installation instructions.
 
URL LANGUAGE SIZE(Bytes)
Readme US English 2049
 
Download package
What is DD?
DOWNLOAD RELEASE DATE LANGUAGE SIZE(Bytes) Download Options
PQ78849 - 5.0.1 12/2/2003 US English 10395 FTP DD
PQ78849 - 5.0.2 12/2/2003 US English 11211 FTP DD
 
Technical support
1-800-IBM-SERV (U.S. Only)
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers WebSphere Application Server - Express General Linux, Windows, UNIX 5.0.1, 5.0.2 Edition Independent
Application Servers WebSphere Application Server Enterprise General AIX, HP-UX, Linux, Multi-Platform, Solaris, Windows 5.0.1, 5.0.2 Edition Independent
Application Servers Runtimes for Java Technology Java SDK
Problems (APARs) fixed
PQ78849
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > HTTP Transport
Operating system(s): Windows
Software version: 5.0.2.2
Software edition:
Reference #: 4005945
IBM Group: Software Group
Modified date: Dec 2, 2003