You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by Sambasiva Reddy <sa...@gmail.com> on 2006/11/05 12:31:15 UTC
JCS giving problem plz. solve
1)this is my client code:
List l =
(ArrayList)this.loadCacheObject(key, defaultCacheRegion);
System.out.println(l);
manager.putCacheObject(key,l);
CacheElementInfo info=new CacheElementInfo();
info.loadCacheStats(defaultCacheRegion);
System.out.println(info.toString());
List p = (ArrayList)manager.getCacheObject(key,this );
System.out.println(p);
when i write code like this it's working propely like loading,putting
and getting and also
when i saw hitCountRam is 1. i'm using JDeveloper 10g
following is the o/p:
log4j:WARN No appenders could be found for logger
(org.apache.jcs.engine.control.CompositeCacheManager).
log4j:WARN Please initialize the log4j system properly.
into if :
in load object"Philippines"
in putcache object method.
getting after put:["61.14.134.0", "61.14.135.255", "PH",
"Philippines"] End of put object method
key : 61.14.134.0
createTime : Saturday, November 4, 2006 3:40:02 PM GMT+05:30
maxLifeSeconds : 60000
expiresInSeconds : 59999
hitCountAux : 0
hitCountRam : 1
missCountExpired : 0
missCountNotFound : 0
versionNumber : 0
totalMemory : 2031616.0 bytes
freeMemory : 1292208.0 bytes
usedMemory : 739408.0 bytes
percentFree : 63.604933215725815 %
in get cache object 1
in get cache object 2
Found the object in cache for cacheKey 61.14.134.0
Time taken to get cached object is : 0 milli-seconds.
getting cache:null
["61.14.134.0", "61.14.135.255", "PH", "Philippines"]
2)when i write only get method:
client code,i/p is:
List p = (ArrayList)manager.getCacheObject(key,this );
System.out.println(p);
o/p is:
log4j:WARN No appenders could be found for logger
(org.apache.jcs.engine.control.CompositeCacheManager).
log4j:WARN Please initialize the log4j system properly.
key : null
createTime : null
maxLifeSeconds : -1
expiresInSeconds : -1
hitCountAux : 0
hitCountRam : 0
missCountExpired : 0
missCountNotFound : 0
versionNumber : 0
totalMemory : 0.0 bytes
freeMemory : 0.0 bytes
usedMemory : 0.0 bytes
percentFree : 0.0 %
and my cache.ccf excel and files are attached.. PFA and also:
i'm taking data from excel file that's also attached...PFA:
cau anyone plz. help me from big problem
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org