PQ76738: NullPointerException using dynacache in a clustered environment | |||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||
![]() 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 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 #: PQ76738
IBM Group: Software Group
Modified date: Aug 25, 2003
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.