Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 7206 invoked from network); 24 Mar 2003 15:48:28 -0000 Received: from smtp.inphact.com (67.105.52.11) by daedalus.apache.org with SMTP; 24 Mar 2003 15:48:28 -0000 Received: from mail.inphact.com (inphna-mal2-dc.inphact.com [192.168.10.159]) by smtp.inphact.com (Postfix) with ESMTP id 72F5E134009 for ; Mon, 24 Mar 2003 09:30:24 -0600 (CST) Received: by inphna-mal2-dc.inphact.com with Internet Mail Service (5.5.2656.59) id ; Mon, 24 Mar 2003 09:45:29 -0600 Message-ID: From: tslusser@InPhact.com To: commons-user@jakarta.apache.org Subject: RE: Digester: Cannot get to parse? Date: Mon, 24 Mar 2003 09:45:21 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think you are wanting something like this... xml to parse: factory org.apache.commons.dbcp.BasicDataSourceFactory rules file: ResourceParams.java: ... public void setName(String name) { this.name = name; // this will hold the jdbc/db2 value } public void addParameter(String name, String value) { setValue(name + "=" + value); // this will hold the factory=... } ... Hope this helps! Ted- -----Original Message----- From: Lafredo, Stephen [mailto:stephen_lafredo@merck.com] Sent: Monday, March 24, 2003 8:53 AM To: 'Jakarta Commons Users List' Subject: RE: Digester: Cannot get to parse? Hi, I have the following configured w/in my rules file... ... ... This is the portion of the xml file I am parsing... factory org.apache.commons.dbcp.BasicDataSourceFactory When the rules file is configured as described above the "ResourceParams" ATTRIBUTES and not the contained "parameter" ELEMENTS are being parsed! This is the sample output... ResourceParams[name=jdbc/db2, parameters={jdbc/db2=foo}] What I am expecting is... ResourceParams[name=jdbc/db2, parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory}] Am I misunderstanding the functionality of call-method-rule? Thank you. Stephen Lafredo -----Original Message----- Hi, I have corrected the rules file as described below but I am still getting an error when I try to specify a method w/parameters? Mar 24, 2003 9:03:29 AM org.apache.commons.digester.Digester peekParams WARNING: Empty stack (returning null) Mar 24, 2003 9:03:29 AM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.NullPointerException at org.apache.commons.digester.CallParamRule.begin(CallParamRule.java:232) at org.apache.commons.digester.Rule.begin(Rule.java:200) ... java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:2383) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2409) at org.apache.commons.digester.Digester.startElement(Digester.java:1271) The release notes suggests that this functionality has been implemented but is it? Any suggestions? Thank you. Stephen Lafredo ---------------------------------------------------------------------------- -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ============================================================================ == --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org