Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 22835 invoked from network); 11 Jun 2003 16:20:26 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Jun 2003 16:20:26 -0000 Received: (qmail 18649 invoked by uid 97); 11 Jun 2003 16:22:45 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 18642 invoked from network); 11 Jun 2003 16:22:45 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Jun 2003 16:22:45 -0000 Received: (qmail 22627 invoked by uid 500); 11 Jun 2003 16:20:24 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 22608 invoked from network); 11 Jun 2003 16:20:23 -0000 Received: from smtpsdx2.bankone.com (HELO smtpsdi2.bankone.com) (159.53.32.161) by daedalus.apache.org with SMTP; 11 Jun 2003 16:20:23 -0000 Received: from bankone.com (ismtpoh1.bankone.com [159.53.65.44]) by smtpsdi2.bankone.com (8.11.7/8.10.2) with ESMTP id h5BGKQp17326 for ; Wed, 11 Jun 2003 16:20:26 GMT Received: from cmhmsw14.bankone.com by bankone.com with ESMTP id h5BGKFA13638 for ; Wed, 11 Jun 2003 16:20:15 GMT Received: from cmhsmtp11.bankone.com (unverified) by cmhmsw14.bankone.com (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Wed, 11 Jun 2003 12:20:23 -0400 Importance: Normal Subject: ClassCast Exception when returning an object from the Digester.parse method To: commons-dev@jakarta.apache.org From: duncan_l_krebs@bankone.com Date: Wed, 11 Jun 2003 12:20:22 -0400 Message-ID: X-MIMETrack: Serialize by Router on CMHSMTP11/SMTP/SVR/ONE(Release 5.0.8 |June 18, 2001) at 06/11/2003 12:20:23 PM MIME-Version: 1.0 Content-type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, when I use the digester I am having an issue when I try to get the return object from the digester.parse method. I know what kind of object it is returning, but when I try to cast it as that object it throws a ClassCast Exception. What is strange is that when I cast it as an object, it works fine and when I get the className on the object it is the object type that I am expecting. But again when I try to cast that to the object type that I know it is, it throws the ClassCast Exception. This is how I am putting the class onto the digester stack. digester.addObjectCreate("site-config", "techone.groups.appcontainer.conf.SiteConfig", "className"); Any help would be greatly appreciated - dk This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org