PQ70564: NULLPOINTEREXCEPTION WHEN CLEARING THE DYNACACHE CACHE.

 A fix is available

4.0.6: WebSphere Application Server Version 4.0 Fix Pack 6



APAR status
Closed as program error.

Error description
Customer gets a NullPointerException when he attempts to clear
the dynacache.
The context of the exception is that it is doing a Batch update
for the dynacache.  It is trying to update one cache entry and
the call it makes to get the ID for that entry returns a null
pointer.  The code then uses this pointer to access the cached
entry and gets the NullPointerException.
.
You may also see the following stack trace, with jit disabled:
java.lang.NullPointerException
at com.ibm.servlet.dynacache.Cache.remove(Cache.java:802)
at com.ibm.servlet.dynacache.Cache.internalInvalidateById(Cache.
at com.ibm.servlet.dynacache.Cache.batchUpdate(Cache.java:658)
at com.ibm.servlet.dynacache.BatchUpdateDaemon.wakeUp(BatchUpdat
at com.ibm.servlet.dynacache.BatchUpdateDaemon.invalidateById(Ba
at com.ibm.servlet.dynacache.Cache.clear(Cache.java:972)
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server 4.0.4 and 4.0.5 *
*                 Dynamic Caching (Dynacache) users.           *
****************************************************************
* PROBLEM DESCRIPTION: NullPointerException when attempting to *
*                      clear the cache using Dyncache APIs     *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
A NullPointerException is being received when attempting to
clear the dynacache. The context of the exception is that it
is doing a Batch update for the dynacache.  It is trying to
update one cache entry and the call it makes to get the ID for
that entry returns a null pointer.  The code then uses this
pointer to access the cached entry and gets the
NullPointerException.
.
The following stack trace may been seen with JIT disabled:
java.lang.NullPointerException
at com.ibm.servlet.dynacache.Cache.remove(Cache.java:802)
at com.ibm.servlet.dynacache.Cache.internalInvalidateById(Cache.
at com.ibm.servlet.dynacache.Cache.batchUpdate(Cache.java:658)
at com.ibm.servlet.dynacache.BatchUpdateDaemon.wakeUp(BatchUpdat
at com.ibm.servlet.dynacache.BatchUpdateDaemon.invalidateById(Ba
at com.ibm.servlet.dynacache.Cache.clear(Cache.java:972)
Problem conclusion
Caching code was reworked to improve multithreaded access
and avoid the nullpointerexception possibility.
Temporary fix Comments
APAR information
APAR number PQ70564
Reported component name WEBSPHERE AE AI
Reported component ID 5630A2200
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-02-03
Closed date 2003-02-12
Last modified date 2003-02-12

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
CACHEMGT          

SRLS

Fix information
Fixed component name WEBSPHERE AE AI
Fixed component ID 5630A2200

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ70564
IBM Group: Software Group
Modified date: Feb 12, 2003