PQ92384: JAVA.LANG.NULLPOINTEREXCEPTION IN COM/IBM/WS/EJBPERSISTENCE/ CACHE/CACHEMANAGERIMPL.CACHEFOREIGNKEYS

 A fix is available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
Problem #1:
java.lang.NullPointerException in com.ibm.ws.ejbpersistence.
CacheManagerImpl.cacheForeignKeys
                                                             .
This apar also addresses exception
java.util.ConcurrentModificationException occuring from
com.ibm.ws.ejbpersistence.cache.AssociationsCacheImpl.
removeKeyAndSiblingsFromAssociationSets
along with message CNTR0020E.  The top of the callback stack
as it appears in the error log is:
BossLog: { 0355} 2004/07/27 14:16:47.055 01 SYSTEM=D102 ...
./bborjtr.cpp+820 ... BBOO0220E CNTR0020E: Non-application
    exception occurred while processing method "remove" on bean
    "BeanId(xxx, yyy)".
    Exception data: java.util.ConcurrentModificationException
.at java.util.HashMap$HashIterator.next(HashMap.java
.at com.ibm.ws.ejbpersistence.cache.AssociationsCacheImpl.
                removeKeyAndSiblingsFromAssociationSets
.at com.ibm.ws.ejbpersistence.cache.TransactionScopedCache.
                           removeAssociationAndSiblings
...
Problem #2:
In addition to the above issue, this apar will addrress a
problem with no messsage text associated with PMGR6022, PMGR000,
PMGR6041, and similar message ids. Example of the error being
printed:

Trace: 2004/09/01 13:11:43.612 01 t=7BD5C0 c=394.1 key=P8
   FunctionName: com.ibm.ejs.ras.TraceNLS
   SourceId: com.ibm.ejs.ras.TraceNLS
   Category: UNCOND
   ExtendedMessage: No message text associated with key PMGR6041
in bundle com.ibm.ws.ejbpersistence.utilpm.ejbpersistence_NLS
java.util.MissingResourceException: Can't find resource for
 bundle com.ibm.ws.ejbpersistence.utilpm.ejbpersistence_NLS, key
 PMGR6041
 at java.util.ResourceBundle.getObject(ResourceBundle.java
 (CompiledCode))
 at java.util.ResourceBundle.getObject(ResourceBundle.java
 (CompiledCode))

The real error that the text is not being formatted for is
PMGR6022E, PMGR6041E and etc.  This fix is to just return a
correct error message.  The problem that cause the error would
still need to be investigated.
MD20073-5.1
Local fix
Problem #1:
For the java.lang.NullPointerException in
com.ibm.ws.ejbpersistence.cache.CacheManagerImpl.
cacheForeignKeys , the local fix is to turn off datacache.
Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 V5.0 for z/OS                                *
****************************************************************
* PROBLEM DESCRIPTION: Applications employing multiple entity  *
*                      beans with Container Managed            *
*                      Relationships (CMRs) which have the     *
*                      LifeTimeInCache setting enabled may     *
*                      encounter a NullPointerException        *
*                      or a ConcurrentModificationException    *
*                      under high stress loads.                *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When CMR LifeTimeInCache setting is specified, under
periods of heavy stress, the Persistence Manager throws a
NullPointer Exception and/or a ConcurrentModificationException.
The following stack trace may be seen:

Exception data: java.util.ConcurrentModificationException
 at java.util.HashMap$HashIterator.next(HashMap.java
 at com.ibm.ws.ejbpersistence.cache.AssociationsCacheImpl.
   removeKeyAndSiblingsFromAssociationSets
 at com.ibm.ws.ejbpersistence.cache.TransactionScopedCache.
  removeAssociationAndSiblings
 ...
Problem conclusion
Code updated to avoid the NullPointerException and/or
ConcurrentModificationException.

APAR PQ92384 is associated with SERVICE LEVEL W502017 of
WebSphere Application Server V5.0 for z/OS.
Temporary fix Comments
APAR information
APAR number PQ92384
Reported component name WEBSPHERE FOR Z
Reported component ID 5655I3500
Reported release 500
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2004-08-04
Closed date 2004-10-28
Last modified date 2004-12-02

APAR is sysrouted FROM one or more of the following:
PQ90273

APAR is sysrouted TO one or more of the following:
PQ92386

Modules/Macros
BBOUBINF          

Publications Referenced

Fix information
Fixed component name WEBSPHERE FOR Z
Fixed component ID 5655I3500

Applicable component levels
R500 PSY UQ94534    UP04/11/03 P F411

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


Document Information


Current web document: swg1PQ92384.html
Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS
Operating system(s):
Software version: 500
Software edition:
Reference #: PQ92384
IBM Group: Software Group
Modified date: Dec 2, 2004