Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 60320 invoked from network); 4 Sep 2008 16:23:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2008 16:23:06 -0000 Received: (qmail 1890 invoked by uid 500); 4 Sep 2008 16:23:00 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 1815 invoked by uid 500); 4 Sep 2008 16:23:00 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 1804 invoked by uid 99); 4 Sep 2008 16:23:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 09:23:00 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 16:22:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KbHbL-0006PE-Dm for user@commons.apache.org; Thu, 04 Sep 2008 09:22:31 -0700 Message-ID: <19314341.post@talk.nabble.com> Date: Thu, 4 Sep 2008 09:22:31 -0700 (PDT) From: Peter Goetz To: user@commons.apache.org Subject: [betwixt] setting false object when parsing xml MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kingofbrain@web.de X-Virus-Checked: Checked by ClamAV on apache.org Hi list! I try to get betwixt 0.8 up and running and would like to map Java objects to RSS 2.0 XML. It works fine up to the Item class, but then I can not get the Category objects. Here is my Item.betwixt: And the Category.betwixt: As you can see, my Item class has a property of Category, which itself has a name and a domain member. When I run the serialisation I can see that my Items are constructed, that the Category objects are constructed, but then I get this in the log file: DEBUG [org.apache.commons.betwixt.expression.MethodUpdater] Calling setter method: setName on bean: [...].Item@143c8b3 with new value: [...].Category@1feca64 WARN [org.apache.commons.betwixt.expression.TypedUpdate] cannot evaluate: MethodUpdater [method=public void [...].Category.setName(java.lang.String)] on bean: [...].Item@143c8b3 of type: [...].Item with value: [...].Category@1feca64 of type: [...].Category It looks as if betwixt would try to call setName on the Item class instead of Category. Can anyone explain me why this is happening? Am I missing something in my mapping files? Thanks a lot for your help! Peter -- View this message in context: http://www.nabble.com/-betwixt--setting-false-object-when-parsing-xml-tp19314341p19314341.html Sent from the Commons - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org