Re: axis2 and axiom DocumentBuilderFactory
Johan, Is there some stripped down sample you can show us? Please create a JIRA so that we can track this issue. You can upload the zip to JIRA. thanks, dims On 6/25/07, Johan Roch <[EMAIL PROTECTED]> wrote: We use axiom 1.2 and axis2 1.1. Any idea ? >From: "Davanum Srinivas" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: axis-user@ws.apache.org >Subject: Re: axis2 and axiom DocumentBuilderFactory >Date: Fri, 22 Jun 2007 14:39:16 -0400 > >Johan, > >Which version of Axis2? Axiom? > >thanks, >dims > >On 6/22/07, Johan Roch <[EMAIL PROTECTED]> wrote: >> >>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.(JRStyledTextParser.java:115) >> >>net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:157) >> >>net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92) >> >>net.sf.jasperreports.engine.fill.JRVerticalFiller.(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] >> >> > > >-- >Davanum Srinivas :: http://davanum.wordpress.com > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ A la recherche d'un ami d'enfance ? Peut-être est-il dans la liste d'amis de vos amis ! http://spaces.live.com/default.aspx?page=Ed01&ss=True - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 and axiom DocumentBuilderFactory
Hi, I use axis2 1.2 with axiom 1.2.4 http://ws.apache.org/axis2/1_0/OMTutorial.html HTH, Alexey On 6/25/07, Johan Roch <[EMAIL PROTECTED]> wrote: We use axiom 1.2 and axis2 1.1. Any idea ? >From: "Davanum Srinivas" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: axis-user@ws.apache.org >Subject: Re: axis2 and axiom DocumentBuilderFactory >Date: Fri, 22 Jun 2007 14:39:16 -0400 > >Johan, > >Which version of Axis2? Axiom? > >thanks, >dims > >On 6/22/07, Johan Roch <[EMAIL PROTECTED]> wrote: >> >>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.(JRStyledTextParser.java:115) >> >>net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:157) >> >>net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92) >> >>net.sf.jasperreports.engine.fill.JRVerticalFiller.(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] >> >> > > >-- >Davanum Srinivas :: http://davanum.wordpress.com > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ A la recherche d'un ami d'enfance ? Peut-être est-il dans la liste d'amis de vos amis ! http://spaces.live.com/default.aspx?page=Ed01&ss=True - 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]
Re: axis2 and axiom DocumentBuilderFactory
We use axiom 1.2 and axis2 1.1. Any idea ? From: "Davanum Srinivas" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: axis-user@ws.apache.org Subject: Re: axis2 and axiom DocumentBuilderFactory Date: Fri, 22 Jun 2007 14:39:16 -0400 Johan, Which version of Axis2? Axiom? thanks, dims On 6/22/07, Johan Roch <[EMAIL PROTECTED]> wrote: 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.(JRStyledTextParser.java:115) net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:157) net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92) net.sf.jasperreports.engine.fill.JRVerticalFiller.(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] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ A la recherche d'un ami d'enfance ? Peut-être est-il dans la liste d'amis de vos amis ! http://spaces.live.com/default.aspx?page=Ed01&ss=True - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 and axiom DocumentBuilderFactory
Johan, Which version of Axis2? Axiom? thanks, dims On 6/22/07, Johan Roch <[EMAIL PROTECTED]> wrote: 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.(JRStyledTextParser.java:115) net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:157) net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92) net.sf.jasperreports.engine.fill.JRVerticalFiller.(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] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis2 and axiom DocumentBuilderFactory
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.(JRStyledTextParser.java:115) net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:157) net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92) net.sf.jasperreports.engine.fill.JRVerticalFiller.(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]