PQ76738: NullPointerException using dynacache in a clustered environment

 A fix is available

WAS_Dynacache_07-25-2003_4.0.4_cumulative_Fix



APAR status
Closed as program error.

Error description
During appserver start, messages appears in stderr :
javax.naming.NamingException: The JNDI operation "lookup"on the
context "domainRoots/UnspecifiedDomainName/legacyRoot" with the
name "/dynacache" failed.  Please get the root cause Throwable
contained in this NamingException for more information.  Root
exception
 is java.lang.NullPointerException
        at com.ibm.ejs.ns.jndi.CNContextImpl.init
(CNContextImpl.java:440)
        at com.ibm.ejs.ns.jndi.CNContextImpl.<init>
(CNContextImpl.java:425)
        at
com.ibm.ejs.ns.jndi.CNContextImpl.processResolveResults
(CNContextImpl.java:1553)
        at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup
(CNContextImpl.java:1475)
        at com.ibm.ejs.ns.jndi.CNContextImpl.lookup
(CNContextImpl.java:1092)
        at com.ibm.ejs.ns.jndi.CNContextImpl.resolveContext
(CNContextImpl.java:1663)
        at com.ibm.ejs.ns.jndi.CNContextImpl.doUnbind
(CNContextImpl.java:1958)
        at com.ibm.ejs.ns.jndi.CNContextImpl.unbind
(CNContextImpl.java:657)
        at com.ibm.ws.naming.util.WsnInitCtx.unbind
(WsnInitCtx.java:188)
        at
com.ibm.servlet.dynacache.CacheUnitImpl.getRemoteCacheUnit
(CacheUnitImpl.java(Compiled Code))
        at
com.ibm.servlet.dynacache.CacheUnitImpl.getRemoteCacheUnit
(CacheUnitImpl.java(Compiled Code))
        at
com.ibm.servlet.dynacache.CacheUnitImpl.registerCacheUnit
(CacheUnitImpl.java:287)
        at com.ibm.servlet.dynacache._CacheUnitImpl_Tie._invoke
(_CacheUnitImpl_Tie.java:134)
        at com.ibm.CORBA.iiop.ServerDelegate.dispatch
(ServerDelegate.java:366)
        at com.ibm.CORBA.iiop.ORB.process(ORB.java:2377)
        at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
        at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run
(ThreadPool.java:104)
        at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server 4.0 users of a  *
*                 dynamic caching function.                    *
****************************************************************
* PROBLEM DESCRIPTION: A NullPointerException is thrown at     *
*                      the startup of WebSphere when running   *
*                      in a clustered environment.             *
****************************************************************
* RECOMMENDATION: When initializing dynamic cache in a         *
*                 clustered environment, a                     *
*                 NullPointerException is thrown and           *
*                 dynacache cannot be                          *
*                 initialized.                                 *
****************************************************************
When calling a DynaCache function and running in a clustered
environment the following exception is thrown:
java.lang.NullPointerException
at com.ibm.ejs.ns.jndi.CNContextImpl.init(CNContextImpl.java:
440)
at com.ibm.ejs.ns.jndi.CNContextImpl.<init>(CNContextImpl.java:
425)
at com.ibm.ejs.ns.jndi.CNContextImpl.processResolveResults
(CNContextImpl.java:1553)
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup
(CNContextImpl.java:1475)
Problem conclusion
Updated the CacheUnitImpl.java file and replaced a global
InitialContext used by different methods with local ones, so
that the NullPointerException is not thrown anymore and
DynaCache is initialized without any errors in a clustered
environment.
Temporary fix Comments
APAR information
APAR number PQ76738
Reported component name WEBSPHERE AE AI
Reported component ID 5630A2200
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-07-24
Closed date 2003-08-25
Last modified date 2003-08-25

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

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 #: PQ76738
IBM Group: Software Group
Modified date: Aug 25, 2003