PQ91905: HttpConnection.run: java.lang.NullPointerException- Socket Closed java.io.IOException

 Fixes are available

6.0.2: WebSphere Application Server V6.0 Refresh Pack 2 for AIX platforms
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for AIX
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Windows
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for HP-UX
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Solaris
6.0.2: WebSphere Application Server V6.0 Refresh Pack 2 for HP-UX platforms
6.0.2: WebSphere Application Server V6.0 Refresh Pack 2 for OS/400 platforms
5.1.1.6: WebSphere Application Server Version 5.1.1 Cumulative Fix 6
5.1.1.7: WebSphere Application Server Version 5.1.1 Cumulative Fix 7
5.1.1.4: WebSphere Application Server Version 5.1.1 Cumulative Fix 4
6.0.2: WebSphere Application Server V6.0 Refresh Pack 2 for Solaris platforms
6.0.0.3: WebSphere Application Server V6.0.0 Fix Pack 3
PQ96915; 5.1.1.3: PLGN007 ERROR. HTTP TRANSPORT HAS A PROBLEM OF NOT IMMEDIATELY
6.0.2: WebSphere Application Server V6.0 Refresh Pack 2 for Windows platforms
6.0.2: WebSphere Application Server V6.0 Refresh Pack 2 for Linux platforms
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Linux
6.0.1.2: WebSphere Application Server Version 6.0.1 Fix Pack 2
6.0.1: WebSphere Application Server Version 6.0 Refresh Pack 1



APAR status
Closed as program error.

Error description
E SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException
is the result of a failure to read the request data.
I found some "HttpConnectio d Socket Closed
java.io.IOException: Socket Closed" messages.
These occurred while we were setting up to read the request from
the socket The socket accept succeeds but does NOT process
immediately (may ne due lack of worker threads)
Exception:
1)com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled
Code)) [7/15/04 14:49:28:938 CDT] 109067d4 SystemOut     O  at
com.ibm.ws.http.ResponseStream.finish(ResponseStream.java:185)
com.ibm.ws.http.HttpResponse.finish(HttpResponse.java:90)
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnecti
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled

2)
2)HttpConnection.run:.java.lang.IllegalStateException:.no.Conten
[7/15/04 14:54:31:487 CDT] 1dd2e783 HttpConnectio E
HttpConnection.run:
java.lang.IllegalStateException: no Content-Type was specified
com.ibm.ws.http.HttpResponse.writeHeaders(HttpResponse.java(Comp
com.ibm.ws.http.ResponseStream.writeHeaders(ResponseStream.java(
com.ibm.ws.http.ResponseStream.flushBuffer(ResponseStream.java(C
com.ibm.ws.http.ResponseStream.finish(ResponseStream.java:171)
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnecti
---------------------------------------------
Local fix
No woorkaround
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of Http   *
*                 Transport                                    *
****************************************************************
* PROBLEM DESCRIPTION: When an exception occurs while          *
*                      handling a new connection, the Http     *
*                      Transport closes the socket. In some    *
*                      cases, another process may have begun   *
*                      to work with the new connection and     *
*                      when the socket is closed during the    *
*                      exception handling, it will cause this  *
*                      second process to encounter various     *
*                      errors when using the socket and        *
*                      related objects.                        *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
After HttpTransport.run() accepts a new socket it then tries
to hand the HttpConnection object, allocated for the new
connection, to a worker thread to handle the request. If an
exception occurs during this process, HttpTransport.run() will
then close the socket and free the HttpConnection object. If
the HttpConnection object was successfully queued for a worker
thread it will be run at a later time. HttpConnection.run()
will eventually encounter an error trying to use the closed
socket or accessing a related resource which has been cleaned
up. The errors that are seen vary depending on the timing
between the HttpTransport.run() thread and the worker thread.
Problem conclusion
Access to the HttpConnection object is now serialized so that
if an exception occurs while queuing the HttpConnection object
for a worker thread, HttpTransport.run() knows the worker
thread has not started to run HttpConnection.run(). A new flag
has been added to HttpConnection to indicate that an error has
occurred and processing should be aborted. This flag is turned
on by HttpTransport.run() if an exception occurs, and is
checked by HttpConnection.run() before attempting to read the
request. If it is on, HttpConnection.run() will immediately
exit.

The fix for this APAR is currently targetted for inclusion in
fixpack 5.0.2.9 and 5.1.1.3.
Please refer to the Recommended Updates page for delivery
dates:

http://www-1.ibm.com/support/docview.wss?rs=180&context=
SSEQTP&uid=swg27004980
Temporary fix Comments
APAR information
APAR number PQ91905
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00I
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2004-07-23
Closed date 2004-11-22
Last modified date 2004-11-22

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
TRANSPOR          

Publications Referenced

Fix information

Applicable component levels
R003 PSY    UP
R00A PSY    UP
R00H PSY    UP
R00I PSY    UP
R00P PSY    UP
R00S PSY    UP
R00W PSY    UP
R103 PSY    UP
R10A PSY    UP
R10H PSY    UP
R10I PSY    UP
R10P PSY    UP
R10S PSY    UP
R10W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00I
Software edition:
Reference #: PQ91905
IBM Group: Software Group
Modified date: Nov 22, 2004