struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "emmanuel.boudrant" <b...@yahoo.fr>
Subject problem with digester 1.1.1
Date Thu, 28 Feb 2002 11:19:15 GMT

I've got a problem with digester 1.1.1, I've got this Exception:

Exception occurred during event dispatching:
java.lang.NoSuchMethodError
        at org.apache.commons.digester.Digester.getReader(Digester.java:527)
        at org.apache.commons.digester.Digester.parse(Digester.java:1206)
        at com.cross.spider.gen.XmlDigester.<init>(XmlDigester.java:34)
        at com.cross.spider.gen.SqlDigester.init(SqlDigester.java:87)

What is my problème ?

The code in org.apache...Digester.java :

    /**
     * By setting the reader in the constructor, you can bypass JAXP and be able
     * to use digester in Weblogic 6.0.
     */
    public synchronized XMLReader getReader() {

        if (reader == null) {
            try {
L527>          reader = getParser().getXMLReader();
            } catch (SAXException se) {
                return null;
            }
        }

        
        reader.setContentHandler(this);
        reader.setDTDHandler(this);
        reader.setEntityResolver(this);
        reader.setErrorHandler(this);
        return reader;
    }

    public SAXParser getParser() {

 // Return the parser we already created (if any)
 if (parser != null)
     return (parser);

 // Create and return a new parser
        synchronized (this) {
            try {
                if (factory == null)
                    factory = SAXParserFactory.newInstance();
                factory.setNamespaceAware(namespaceAware);
                factory.setValidating(validating);
                parser = factory.newSAXParser();
                return (parser);
            } catch (Exception e) {
                log("Digester.getParser: ", e);
                return (null);
            }
        }

    }



---------------------------------
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !

Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message