jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K.Anand Kumar" <post2an...@yahoo.com>
Subject Error in jcsCache.put(.......
Date Wed, 18 Aug 2004 09:41:39 GMT
Hi,
    When i try to put the cache values as like
.
.
jcsCache.put("App" + id, new TestCache());
.
.
where,
jcsCache - the region which i defined,
id - some numerical identifier
new TestCache() - User defined object (instance of a user defined class)
 
   When i run this, i am getting an error as
java.lang.ClassCastException
        at org.apache.jcs.access.CacheAccess.put(CacheAccess.java:279)
 
whereas if i execute the same code by
jcsCache.put("App" + id, new Vector());
 
   its working fine.
 
   My Question is, if i use available java objects, its holding it in the cache, but not the
user defined class objects.
   How to resolve this.
 
Regards
K.Anand Kumar
 


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message