APAR status
Closed as program error.
Error description
With connection error events, when the wrapper gets reused, the
symptom is the connection will not be closed.
.
The message logged when this problem occurs is
■03/11/04 20:29:59:525 GMT 50d2cc MCWrapper E J2CA0021E:
An exception occurred while trying to get a Connection from the
Managed Connection resource No longer available :
java.lang.NullPointerException
.
The stack trace will have a parkHandle call in it such as
■03/11/04 20:29:59:525 GMT 50d2cc MCWrapper E J2CA0021E:
An exception occurred while trying to get a Connection from the
Managed Connection resource No longer available :
java.lang.NullPointerException
at
com.ibm.ws.rsadapter.spi.WSConnectionRequestInfoImpl.hasSameUser
AndPassword(WSConnectionRequestInfoImpl.java:257)
at
com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.replaceCRI(W
SRdbManagedConnectionImpl.java:1363)
at
com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.associateCon
nection(WSRdbManagedConnectionImpl.java:2405)
at
com.ibm.ejs.j2c.MCWrapper.associateConnection(MCWrapper.java:161
8)
at
com.ibm.ejs.j2c.ConnectionManager.parkHandle(ConnectionManager.j
ava:1239)
at com.ibm.ejs.j2c.HandleList.parkHandle(HandleList.java:378)
.
One may also receive the following error too
J2CA0058E: The ConnectionManager was unable to associate
Connection
.
Local fix
Reset parkedConnection flag before reusing MCWrapper objects.
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of JCA *
* Resoure Adapters. *
****************************************************************
* PROBLEM DESCRIPTION: This only effects users of JCA *
* Resource Adapters that do not support *
* inactive handles. *
* *
* The problem occurs when a connection *
* error occurs and the purgePolicy for *
* the connection pool is set to *
* EntirePool. When the connections are *
* purged it's possible for the *
* ParkedMCWrapper to be reused which *
* can cause undesired side effects. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
This only effects users of JCA Resource Adapters that do not
support inactive handles, after a ConnectionError has occurred.
The ParkedMCWrapper is only created for ResourceAdapters that
do not support "smart"/inactive handles. If that MCWrapper is
reused it will behave differently than a normal MCWrapper.
For example, if a ConnectionHandle is associated with the
ParkedMCWrapper the runtime will not process the
ConnectionClosedEvent properly. The connection will never be
closed, and will remain in use until the Application Server is
restarted.
Problem conclusion
The isParkedMCWrapper flag will be reset after a connection
error occurs.
Temporary fix Comments
APAR information |
APAR number |
PQ87331 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00A |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-04-08 |
Closed date |
2004-04-28 |
Last modified date |
2004-11-03 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
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 |
|