SV: SV: [jdom-interest] Issue converting JDOM to DOM
Per Norrman
pernorrman at telia.com
Wed Sep 24 03:47:21 PDT 2003
Hi,
but [#document, null] means that you're not
getting a null reference. #document is the node
name, and null is the node value. I think you're
OK.
/pmn
> -----Ursprungligt meddelande-----
> Från: Matt Rowen [mailto:mar51 at cam.ac.uk]
> Skickat: den 24 september 2003 11:50
> Till: Per Norrman
> Kopia: jdom-interest at jdom.org
> Ämne: Re: SV: [jdom-interest] Issue converting JDOM to DOM
>
>
> Hi,
>
> The log file spews out the following debug info.
>
> JAXP: found META-INF/services/javax.xml.parsers.DocumentBuilderFactory
> JAXP: loaded from services:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
>
> I'm still getting [#document: null] as the
> org.w3c.dom.Document that it returns though :'(
>
> Thanks,
> Matt
>
> On Fri, 2003-09-19 at 11:42, Per Norrman wrote:
> > Hi,
> >
> > 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
> > source:
> >
> >
> ---------------------------------------------
> > /** 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 ....
> >
> > /pmn
> >
> >
> > > -----Ursprungligt meddelande-----
> > > Från: jdom-interest-admin at jdom.org
> > > [mailto:jdom-interest-admin at jdom.org] För Matt Rowen
> > > Skickat: den 18 september 2003 12:52
> > > Till: jdom-interest at jdom.org
> > > Ä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
>
>
More information about the jdom-interest
mailing list