I use apache commons Digester in mailet to unmarshall xml doc.
When I set Digester not to validating xml doc (below) before
unmarshalls it, it works well without any Exception.
===========mailet with set validating false on Digester=======
...
public class DbProcessor extends GenericMailet{
public void init(MailetConfig config)throws MessagingException{
super.init(config);
}
public void service(Mail mail) throws MessagingException{
Digester digester = new Digester();
digester.setValidating(false);
...
}
...
===============================================
But when I set Digester to validating xml doc first (below) result an
Exception :
===========mailet with set validating true on Digester========
...
public class DbProcessor extends GenericMailet{
public void init(MailetConfig config)throws MessagingException{
super.init(config);
}
public void service(Mail mail) throws MessagingException{
Digester digester = new Digester();
digester.setValidating(true);
digester.setSchema("file://localhost/c:/myschema.xsd");
...
}
...
===============================================
spoolmanager-2003-07-11-08-34.log
...
11/07/03 08:35:01 ERROR spoolmanager: Exception in
JamesSpoolManager.run null java.lang.StackOverflowError
at
org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSch
emaLoader.java:575)
at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.jav
a:489)
at
org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSch
emaLoader.java:588)
at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.jav
a:489)
at
org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSch
emaLoader.java:588)
at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.jav
a:489)
...
I thought it recurses to deeply, does anybody ever use Digester with
James ? I have been plugging at that Exception at Google.com
and still find no answer for that, pls help !