Can you send me the xml rules file, the xml file you are trying to parse and
possibly the class files corresponding to the xml file?

Thanks,

Ted

-----Original Message-----
From: Lafredo, Stephen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 8:10 AM
To: 'Jakarta Commons Users List'
Subject: RE: Digester: Cannot get <call-param-rule> to parse?


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

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 21, 2003 5:23 PM
To: [EMAIL PROTECTED]
Subject: RE: Digester: Cannot get <call-param-rule> to parse?


Hi,

I struggled with this too for a while.  What works for me is to not enclose
the call-param-rules inside the call-method-rule.  So your rules file should
look like this... 

<call-method-rule pattern="parameter"
                   methodname="addParameter"
                   paramcount="2"/>
<call-param-rule paramnumber="0" attrname="name" />               
<call-param-rule paramnumber="1" attrname="value" />               
                 ^^^^^^^^^^^     ^^^^^^^^
You might also look at the dtd in the digester jar file.  This may give you
some hints.


----------------------------------------------------------------------------
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to