Does TestCache (and all it's fields) implement java.io.Serializable?

Vector does...

-Travis Savo <[EMAIL PROTECTED]>

-----Original Message-----
From: K.Anand Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 2:42 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Error in jcsCache.put(.......


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!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to