jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanson Char" <hanson_c...@yahoo.com>
Subject RE: Error in jcsCache.put(.......
Date Wed, 18 Aug 2004 10:52:13 GMT
Probably if u make TestCache implement Serializable, the problem may go


-----Original Message-----
From: K.Anand Kumar [mailto:post2anand@yahoo.com]
Sent: Wednesday, 18 August 2004 7:42 PM
To: turbine-jcs-dev@jakarta.apache.org;
Subject: Error in jcsCache.put(.......

    When i try to put the cache values as like
jcsCache.put("App" + id, new TestCache());
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
        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.

K.Anand Kumar

Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org

View raw message