commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Grey" <>
Subject [digester] Multiple Digester Instances
Date Tue, 14 Oct 2003 20:10:08 GMT
Currently I am using digester recursively,  I have an object that will 
create a new instance of digester when it is called from a rule in a 
previous digester instance. I continually get null pointers when I try to do 
this with this code:

public void parseMainConfigFile(InputStream stream) throws GeneralException 
    // now that plugins are configured, start the parsing process
    try {
        //return (ParseMainXml) digester.parse(stream);
        Digester newDigester = new Digester();
        newDigester.addObjectCreate(ROOTNODE, ParseMainXml.class);
     } catch (Exception e) {
        throw new XmlParseException(e);

This method is used to create the original parser and to parse documents 
called from that original parser. Is there any way to do this properly? 
Thanks for any advice...
-Robert Grey

Add MSN 8 Internet Software to your current Internet access and enjoy 
patented spam control and more.  Get two months FREE!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message