PQ85249: Null Pointer Exception in the ConnectionEventListener.

 A fix is available

5.1.0.5: WebSphere Application Server V5.1.0 Cumulative Fix 5



APAR status
Closed as program error.

Error description
Null Pointer Exception in
com.ibm.ejs.j2c.ConnectionEventListener can occur in this case :

In an application created thread the application
1. gets a connection
2. starts a user transaction (at this point, per the J2EE spec
   the behavior is "undefined").
3. uses the connection.
4. . . .
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of        *
*                 JDBC, JCA, and JMS Connections.              *
****************************************************************
* PROBLEM DESCRIPTION: NullPointerException in                 *
*                      com.ibm.ejs.j2c.LocalTransactionWrapper *
*                      or                                      *
*                      com.ibm.ejs.j2c.XATransactionWrapper.   *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
A NullPointerException can be thrown if an application
acquires a connection outside of a transaction context, then
is used within a transaction.

The only way this can happen is if an application creates a
thread, gets a connection and then starts a usertransaction.
In which case, per the J2EE specification the behavior is
undefined, however this code fix will allow applications to
proceed at least a little farther
Problem conclusion
The NullPointerException is prevented by moving the connection
from the UnsharedPool to the SharedPool when we detect it has
been used within a transaction.
Temporary fix Comments
APAR information
APAR number PQ85249
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 10W
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2004-02-26
Closed date 2004-04-07
Last modified date 2004-04-07

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
J2C          

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: 10W
Software edition:
Reference #: PQ85249
IBM Group: Software Group
Modified date: Apr 7, 2004