PQ85249: Null Pointer Exception in the ConnectionEventListener. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() 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 fartherProblem 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 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: 10W
Software edition:
Reference #: PQ85249
IBM Group: Software Group
Modified date: Apr 7, 2004
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.