Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@www.apache.org Received: (qmail 35196 invoked from network); 18 Aug 2004 09:41:46 -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:46 -0000 Received: (qmail 23952 invoked by uid 500); 18 Aug 2004 09:41:45 -0000 Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@jakarta.apache.org Received: (qmail 23777 invoked by uid 500); 18 Aug 2004 09:41:43 -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 23758 invoked by uid 99); 18 Aug 2004 09:41:43 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [206.190.38.51] (HELO web50210.mail.yahoo.com) (206.190.38.51) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 18 Aug 2004 02:41:41 -0700 Message-ID: <20040818094139.38942.qmail@web50210.mail.yahoo.com> Received: from [61.11.88.187] by web50210.mail.yahoo.com via HTTP; Wed, 18 Aug 2004 02:41:39 PDT Date: Wed, 18 Aug 2004 02:41:39 -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-1771626503-1092822099=:37114" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-1771626503-1092822099=:37114 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!? Yahoo! Mail is new and improved - Check it out! --0-1771626503-1092822099=:37114--