Hi all,

We have a webapp with some Axis2 clients. Axis2 uses Axiom to handle xml. The problem is that other parts of the application must parse some XML documents. As long as the Xerces DocumentBuilderFactory is used, we have no problem. But from a given time, our webapp starts to use the Axiom DocumentBuilderFactory everywhere and we get some NullPointerException each time:

Example with JasperReport:

        StackTrace on java.lang.NullPointerException
                
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:73)
                
net.sf.jasperreports.engine.util.JRStyledTextParser.<init>(JRStyledTextParser.java:115)
                
net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:157)
                
net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:92)
                
net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74)

... another one:

        Caused by: java.lang.NullPointerException
at org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:73) at com.notary.util.signature.impl.AbstractVerifierImpl.getDocBuilder(AbstractVerifierImpl.java:116) at com.notary.util.signature.impl.iaik.XadesVerifierImpl.verifySignature(XadesVerifierImpl.java:119)
                ... 55 more



I had a look at the Javadoc about DocumentBuilderFactory http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#newInstance().

and Xerces has a META-INF/services/javax.xml.parsers.DocumentBuilderFactory file in the jar while Axiom not.

=> the question is: How does Axis2 get the Axiom's DocumentBuilderFactory ? Does it set the System property ?

About the NullPointerException itself, I guess I should post it in axiom's mailing list...

Thx,
Johan.

_________________________________________________________________
Grand passioné ? Rassemblez tout ce qui vous intéresse en un seul endroit ! http://get.live.com/live/features


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

Reply via email to