Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 40898 invoked from network); 25 May 2006 21:29:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2006 21:29:37 -0000 Received: (qmail 51228 invoked by uid 500); 25 May 2006 21:29:32 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 50975 invoked by uid 500); 25 May 2006 21:29:32 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 50957 invoked by uid 99); 25 May 2006 21:29:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 14:29:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.244.207.114] (HELO cnf008.huskyenergy.ca) (66.244.207.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 14:29:30 -0700 Received: from MAILDOM-MTA by cnf008.huskyenergy.ca with Novell_GroupWise; Thu, 25 May 2006 15:29:06 -0600 Message-Id: <4475CD3C0200007E00002A7B@cnf008.huskyenergy.ca> X-Mailer: Novell GroupWise Internet Agent 7.0 Date: Thu, 25 May 2006 15:29:00 -0600 From: "Ken Miller" To: Subject: betwixt: No updater for ... Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__PartF7D2C88C.0__=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=__PartF7D2C88C.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I have an object that contains a Collection of some simple beans, as well as a couple of attributes. The XML generated by Betwixt looks like this: The class def for FolderList looks like this: public class FolderList { private Collection folderList = null; private int nextFolderId = 0; public FolderList(); public void addFolder(Folder folder); public Collection getFolderList(); public int getNextFolderId(); public void setNextFolderId(int i); } Likewise, Folder looks like this: public class Folder { String folderName; int folderId; public int getFolderId(); public String getFolderName(); public void setFolderId(int i); public void setFolderName(String string); } However, when I try to read the XML back in using a BeanReader, I get this message in the trace file: [TRACE] MyLog - Created bean 0:One [DEBUG] MyLog - match='FolderList/folder' [DEBUG] MyLog - bodyText='' [DEBUG] MyLog - Fire body() for org.apache.commons.betwixt.io.BeanRuleSet$ActionMappingRule@3cc262 [DEBUG] MyLog - Fire body() for org.apache.commons.betwixt.io.BeanRuleSet$ActionMappingRule@fdb00d [DEBUG] MyLog - Popping body text ' ' [DEBUG] MyLog - Fire end() for org.apache.commons.betwixt.io.BeanRuleSet$ActionMappingRule@fdb00d [TRACE] MyLog - No updater for folder [DEBUG] MyLog - Cannot pop options off empty stack [DEBUG] MyLog - Cannot pop options off empty stack The Folder object is instantiated, and the attrributes for it are set to the correct value, but FolderList.addFolder() is never invoked to insert the Folder object back into it's parent. The end result is that the FolderList object is returned with no Folders. Not good. Am I missing a mapping rule somewhere? I'm using the current dev build of Betwixt (as of yesterday). Cheers! -klm. ----------------------------------------------------------------------------- Kenneth (Ken) L. Miller Technical Specialist, Enterprise Web Portals Cell: 403.680.3785 Office: 403.750.1790 --=__PartF7D2C88C.0__=--