PQ70564: NULLPOINTEREXCEPTION WHEN CLEARING THE DYNACACHE CACHE. | |||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() 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 is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
SRLS
|
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
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.