PQ91905: HttpConnection.run: java.lang.NullPointerException- Socket Closed java.io.IOException | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() 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 woorkaroundProblem 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=swg27004980Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
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
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.