SV: [jdom-interest] Issue converting JDOM to DOM

Per Norrman pernorrman at
Fri Sep 19 03:42:20 PDT 2003


can you determine the implementation of the 
abstract DocumentBuilderFactory class?

You can set the system property jaxp.debug=true, and
the jaxp code willl spit out the implementation class.

On a side note, here is an excerpt from the jaxp FactoryFinder

    /** Temp debug code - this will be removed after we test everything
    private static boolean debug = false;
    static {
        // Use try/catch block to support applets
        try {
            debug = System.getProperty("jaxp.debug") != null;
        } catch (Exception x) {

Either it isn't completely tested, or they just forgot ....


> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at 
> [mailto:jdom-interest-admin at] För Matt Rowen
> Skickat: den 18 september 2003 12:52
> Till: jdom-interest at
> Ämne: [jdom-interest] Issue converting JDOM to DOM
> Hi,
> I'm having problems with the DOMOutputter, when I call 
> output(doc) on my JDOM I get a null reference instead of an 
> instance of org.w3c.dom.Document. Attempting to trace the 
> propagation of the null in the JDOM code (beta 9 and the 
> latest CVS snapshot) I find that the reflection code in 
> JAXPDOMAdapter which attempts to get a new Document seems to 
> get a null at the line "(org.w3c.dom.Document) 
> newDoc.invoke(jaxpParser, null);" in the createDocument 
> method of JAXPDOMAdapter.
> Any help in tracking this problem down would be most appreciated.
> Thanks,
> Matt
> _______________________________________________
> To control your jdom-interest membership: 
uraddr at

More information about the jdom-interest mailing list