jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Duddupudi" <duddupudi.raj...@gmail.com>
Subject Null Pointer Exception : Unable to load cache manager
Date Thu, 05 Jul 2007 14:56:09 GMT
I am trying to use JCS caching. I did try this out a while ago and it worked
well. but when i tried it today it just gives me Null Pointer Exception.
my cache.ccf is attached. My code of constructor is also attached.
Exception Details :

[#|2007-07-05T09:36:
37.456-0500|INFO|IS5.1.2|javax.enterprise.system.stream.out|_ThreadID=30;
ThreadName=JMS Async S173;
Context=Samples_u002F_prjCaching881541719/Queue1_CMap1_Collaboration_11_ejb;|
*****************In Get Instance|#]

[#|2007-07-05T09:36:
37.456-0500|INFO|IS5.1.2|javax.enterprise.system.stream.out|_ThreadID=30;
ThreadName=JMS Async S173;
Context=Samples_u002F_prjCaching881541719/Queue1_CMap1_Collaboration_11_ejb;|
In Constructor|#]

[#|2007-07-05T09:36:
37.456-0500|INFO|IS5.1.2|javax.enterprise.system.stream.out|_ThreadID=30;
ThreadName=JMS Async S173;
Context=Samples_u002F_prjCaching881541719/Queue1_CMap1_Collaboration_11_ejb;|
****************************************************************************|#]

[#|2007-07-05T09:36:
37.456-0500|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=30;
ThreadName=JMS Async S173;
Context=Samples_u002F_prjCaching881541719/Queue1_CMap1_Collaboration_11_ejb;|
java.lang.NullPointerException
 at org.apache.jcs.config.OptionConverter.findAndSubst(OptionConverter.java
:289)
 at org.apache.jcs.config.OptionConverter.instantiateByKey(
OptionConverter.java:167)
 at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseElementAttributes
(CompositeCacheConfigurator.java:438)
 at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(
CompositeCacheConfigurator.java:304)
 at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(
CompositeCacheConfigurator.java:280)
 at org.apache.jcs.engine.control.CompositeCacheManager.getCache(
CompositeCacheManager.java:445)
 at org.apache.jcs.engine.control.CompositeCacheManager.getCache(
CompositeCacheManager.java:384)
 at org.apache.jcs.engine.control.CompositeCacheManager.getCache(
CompositeCacheManager.java:371)
 at org.apache.jcs.JCS.getInstance(JCS.java:66)
 at org.aurora.acl.wshelper.WSHelper.<init>(WSHelper.java:78)
 at org.aurora.acl.wshelper.WSHelper.getInstance(WSHelper.java:93)
 at SamplesprjCachingTest.Collaboration_1.receive(Collaboration_1.java:47)
 at
prjCachingTest.CMap1_Collaboration_11.Collaboration_1_Runtime_Handler.handleRequest
(Collaboration_1_Runtime_Handler.java:375)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
 at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(
EJBLocalObjectInvocationHandler.java:135)
 at $Proxy47.handleRequest(Unknown Source)
 at com.stc.codegen.JMSImpl.runtime.ejb.JMSEndPointListener.sendMessage(
JMSEndPointListener.java:311)
 at com.stc.codegen.JMSImpl.runtime.ejb.JMSEndPointListener.onContents(
JMSEndPointListener.java:110)
 at com.stc.codegen.JMSImpl.runtime.ejb.JMSEndPointListener.onMessage(
JMSEndPointListener.java:157)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
 at java.security.AccessController.doPrivileged(Native Method)
 at
com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(
EJBSecurityManager.java:940)
 at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
 at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(
MessageBeanContainer.java:948)
 at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(
MessageBeanListenerImpl.java:42)
 at
com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke
(MessageEndpointInvocationHandler.java:136)
 at $Proxy48.onMessage(Unknown Source)
 at com.stc.jmsjca.core.Delivery.deliver(Delivery.java:981)
 at com.stc.jmsjca.core.SerialDelivery.onMessage(SerialDelivery.java:217)
 at com.stc.jms.client.SessionImpl.processAsyncDataAvailable(
SessionImpl.java:1659)
 at com.stc.jms.client.SessionImpl.processAsync(SessionImpl.java:1748)
 at com.stc.jms.client.SessionImpl.asyncEnter(SessionImpl.java:1776)
 at com.stc.jms.client.SessionImpl.access$500(SessionImpl.java:56)
 at com.stc.jms.client.SessionImpl$1.run(SessionImpl.java:1554)
 at com.stc.jms.client.SessionImpl$2.run(SessionImpl.java:1807)
 at java.lang.Thread.run(Thread.java:595)
|#]



Here is the constructor code
*

private* WSHelper() *throws* Exception{

System.*out*.println("In Constructor");

*clientIdToAclClientIdCache* = JCS.*getInstance*(
"clientIdToAclClientIdCache");

*aclClientIdToClientIdCache* = JCS.*getInstance*(
"aclClientIdToClientIdCache");

*aclClientSettingsCache* = JCS.*getInstance*("aclClientSettingsCache");

*aclTestCodeCache* = JCS.*getInstance*("aclTestCodeCache");

*aclToClientTestCodeCache* = JCS.*getInstance*("aclToClientTestCodeCache");

*clientToAclPhysicianCache* = JCS.*getInstance*("clientToAclPhysicianCache"
);

*aclToClientPhysicianCache* = JCS.*getInstance*("aclToClientPhysicianCache"
);

*financialCache* = JCS.*getInstance*("financialCache");

}

*public* *static* WSHelper getInstance() *throws* Exception{

System.*out*.println("*****************In Get Instance");

*synchronized* (WSHelper.*class*)

{

*if*(*instance* == *null*)

*instance* = *new* WSHelper();

}

*return* *instance*;

}

Cache.ccf :

# DEFAULT CACHE REGION
jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=2000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=true
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=21600
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true

# PRE-DEFINED CACHE REGIONS FOR clientIdToAclClientIdCache
jcs.region.clientIdToAclClientIdCache=
jcs.region.clientIdToAclClientIdCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.clientIdToAclClientIdCache.cacheattributes.MaxObjects=2000
jcs.region.clientIdToAclClientIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.clientIdToAclClientIdCache.elementattributes.IsEternal=false
jcs.region.clientIdToAclClientIdCache.elementattributes.MaxLifeSeconds=21600
jcs.region.clientIdToAclClientIdCache.elementattributes.UseMemoryShrinker =
true
jcs.region.clientIdToAclClientIdCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.clientIdToAclClientIdCache.elementattributes.ShrinkerIntervalSeconds=
60
jcs.region.clientIdToAclClientIdCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.clientIdToAclClientIdCache.elementattributes.IsSpool=true
jcs.region.clientIdToAclClientIdCache.elementattributes.IsRemote=true
jcs.region.clientIdToAclClientIdCache.elementattributes.IsLateral=true

# PRE-DEFINED CACHE REGIONS FOR aclClientIdToClientIdCache
jcs.region.aclClientIdToClientIdCache=
jcs.region.aclClientIdToClientIdCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.aclClientIdToClientIdCache.cacheattributes.MaxObjects=2000
jcs.region.aclClientIdToClientIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.aclClientIdToClientIdCache.elementattributes.IsEternal=false
jcs.region.aclClientIdToClientIdCache.elementattributes.MaxLifeSeconds=21600
jcs.region.aclClientIdToClientIdCache.elementattributes.UseMemoryShrinker =
true
jcs.region.aclClientIdToClientIdCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.aclClientIdToClientIdCache.elementattributes.ShrinkerIntervalSeconds=
60
jcs.region.aclClientIdToClientIdCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.aclClientIdToClientIdCache.elementattributes.IsSpool=true
jcs.region.aclClientIdToClientIdCache.elementattributes.IsRemote=true
jcs.region.aclClientIdToClientIdCache.elementattributes.IsLateral=true

# PRE-DEFINED CACHE REGIONS FOR aclClientSettingsCache
jcs.region.aclClientSettingsCache=
jcs.region.aclClientSettingsCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.aclClientSettingsCache.cacheattributes.MaxObjects=2000
jcs.region.aclClientSettingsCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.aclClientSettingsCache.elementattributes.IsEternal=false
jcs.region.aclClientSettingsCache.elementattributes.MaxLifeSeconds=21600
jcs.region.aclClientSettingsCache.elementattributes.UseMemoryShrinker = true
jcs.region.aclClientSettingsCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.aclClientSettingsCache.elementattributes.ShrinkerIntervalSeconds= 60
jcs.region.aclClientSettingsCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.aclClientSettingsCache.elementattributes.IsSpool=true
jcs.region.aclClientSettingsCache.elementattributes.IsRemote=true
jcs.region.aclClientSettingsCache.elementattributes.IsLateral=true

# PRE-DEFINED CACHE REGIONS FOR aclToClientTestCodeCache
jcs.region.aclToClientTestCodeCache=
jcs.region.aclToClientTestCodeCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.aclToClientTestCodeCache.cacheattributes.MaxObjects=10000
jcs.region.aclToClientTestCodeCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.aclToClientTestCodeCache.elementattributes.IsEternal=false
jcs.region.aclToClientTestCodeCache.elementattributes.MaxLifeSeconds=21600
jcs.region.aclToClientTestCodeCache.elementattributes.UseMemoryShrinker =
true
jcs.region.aclToClientTestCodeCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.aclToClientTestCodeCache.elementattributes.ShrinkerIntervalSeconds=
60
jcs.region.aclToClientTestCodeCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.aclToClientTestCodeCache.elementattributes.IsSpool=true
jcs.region.aclToClientTestCodeCache.elementattributes.IsRemote=true
jcs.region.aclToClientTestCodeCache.elementattributes.IsLateral=true

# PRE-DEFINED CACHE REGIONS FOR aclTestCodeCache
jcs.region.aclTestCodeCache=
jcs.region.aclTestCodeCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.aclTestCodeCache.cacheattributes.MaxObjects=20000
jcs.region.aclTestCodeCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.aclTestCodeCache.elementattributes.IsEternal=false
jcs.region.aclTestCodeCache.elementattributes.MaxLifeSeconds=21600
jcs.region.aclTestCodeCache.elementattributes.UseMemoryShrinker = true
jcs.region.aclTestCodeCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.aclTestCodeCache.elementattributes.ShrinkerIntervalSeconds = 60
jcs.region.aclTestCodeCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.aclTestCodeCache.elementattributes.IsSpool=true
jcs.region.aclTestCodeCache.elementattributes.IsRemote=true
jcs.region.aclTestCodeCache.elementattributes.IsLateral=true

# PRE-DEFINED CACHE REGIONS FOR clientToAclPhysicianCache
jcs.region.clientToAclPhysicianCache=
jcs.region.clientToAclPhysicianCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.clientToAclPhysicianCache.cacheattributes.MaxObjects=20000
jcs.region.clientToAclPhysicianCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.clientToAclPhysicianCache.elementattributes.IsEternal=false
jcs.region.clientToAclPhysicianCache.elementattributes.MaxLifeSeconds=21600
jcs.region.clientToAclPhysicianCache.elementattributes.UseMemoryShrinker =
true
jcs.region.clientToAclPhysicianCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.clientToAclPhysicianCache.elementattributes.ShrinkerIntervalSeconds=
60
jcs.region.clientToAclPhysicianCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.clientToAclPhysicianCache.elementattributes.IsSpool=true
jcs.region.clientToAclPhysicianCache.elementattributes.IsRemote=true
jcs.region.clientToAclPhysicianCache.elementattributes.IsLateral=true


# PRE-DEFINED CACHE REGIONS FOR aclToClientPhysicianCache
jcs.region.aclToClientPhysicianCache=
jcs.region.aclToClientPhysicianCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.aclToClientPhysicianCache.cacheattributes.MaxObjects=20000
jcs.region.aclToClientPhysicianCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.aclToClientPhysicianCache.elementattributes.IsEternal=false
jcs.region.aclToClientPhysicianCache.elementattributes.MaxLifeSeconds=21600
jcs.region.aclToClientPhysicianCache.elementattributes.UseMemoryShrinker =
true
jcs.region.aclToClientPhysicianCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.aclToClientPhysicianCache.elementattributes.ShrinkerIntervalSeconds=
60
jcs.region.aclToClientPhysicianCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.aclToClientPhysicianCache.elementattributes.IsSpool=true
jcs.region.aclToClientPhysicianCache.elementattributes.IsRemote=true
jcs.region.aclToClientPhysicianCache.elementattributes.IsLateral=true

# PRE-DEFINED CACHE REGIONS FOR financialCache
jcs.region.financialCache=
jcs.region.financialCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.financialCache.cacheattributes.MaxObjects=20000
jcs.region.financialCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.financialCache.elementattributes.IsEternal=false
jcs.region.financialCache.elementattributes.MaxLifeSeconds=21600
jcs.region.financialCache.elementattributes.UseMemoryShrinker = true
jcs.region.financialCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.financialCache.elementattributes.ShrinkerIntervalSeconds = 60
jcs.region.financialCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.financialCache.elementattributes.IsSpool=true
jcs.region.financialCache.elementattributes.IsRemote=true
jcs.region.financialCache.elementattributes.IsLateral=true

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message