Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@www.apache.org Received: (qmail 34936 invoked from network); 18 Aug 2004 09:41:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Aug 2004 09:41:04 -0000 Received: (qmail 23164 invoked by uid 500); 18 Aug 2004 09:41:03 -0000 Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@jakarta.apache.org Received: (qmail 23008 invoked by uid 500); 18 Aug 2004 09:41:02 -0000 Mailing-List: contact turbine-jcs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Developers List" Reply-To: "Turbine JCS Developers List" Delivered-To: mailing list turbine-jcs-dev@jakarta.apache.org Received: (qmail 22972 invoked by uid 99); 18 Aug 2004 09:41:02 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [206.190.38.42] (HELO web50201.mail.yahoo.com) (206.190.38.42) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 18 Aug 2004 02:40:59 -0700 Message-ID: <20040818094057.6110.qmail@web50201.mail.yahoo.com> Received: from [61.11.88.187] by web50201.mail.yahoo.com via HTTP; Wed, 18 Aug 2004 02:40:57 PDT Date: Wed, 18 Aug 2004 02:40:57 -0700 (PDT) From: "K.Anand Kumar" Reply-To: post2anand@yahoo.com Subject: Error in jcsCache.put(....... To: turbine-jcs-dev@jakarta.apache.org, turbine-jcs-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1792096003-1092822057=:4090" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-1792096003-1092822057=:4090 Content-Type: text/plain; charset=us-ascii 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!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-1792096003-1092822057=:4090--