[jdom-interest] BUG in DOMOutputter

Jason Hunter jhunter at collab.net
Tue Feb 20 02:56:00 PST 2001


Alessandro Marcellini wrote:
> 
> Hi,
> I founded the same problem with DOMOutputter in jdom-b6 (with jdom-b5 is all OK!).
> I tried to pass the adapter to the DOMOutputter constructor but then I catched 2
> errors: see the attached file.

The bug Mayank reported I fixed before beta6.  Your two stack traces
below don't look like they involve JDOM at all, or at least there's no
JDOM classes in the stack trace.

-jh-

> 
> Jason Hunter wrote:
> 
> > "Shah, Mayank" wrote:
> > >
> > > if so then please check the method:
> > >
> > >     public org.w3c.dom.Element output(Element element) throws JDOMException
> > >
> > > and what is the value of adapterClass when 0 arg constructor is used.
> >
> > Yep, didn't add JAXP support there.  Good catch.  Will fix.
> >
> > -jh-
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> 
>   ------------------------------------------------------------------------
> DOM006 Hierarchy request error
> javax.xml.transform.TransformerException: DOM006 Hierarchy request error
>         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1212)
>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:479)
>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
>         at it.teamsw.XFile.TransformXFile.transform(TransformXFile.java:190)
>         at it.teamsw.XFile.TransformXFile.printTransformedDoc(TransformXFile.java:163)
>         at crea_listino.main(crea_listino.java:149)
> ---------
> org.w3c.dom.DOMException: DOM006 Hierarchy request error
>         at org.apache.xerces.dom.ParentNode.internalInsertBefore(ParentNode.java:389)
>         at org.apache.xerces.dom.ParentNode.insertBefore(ParentNode.java:306)
>         at org.apache.xerces.dom.DocumentImpl.insertBefore(DocumentImpl.java:347)
>         at org.apache.xerces.dom.NodeImpl.appendChild(NodeImpl.java:212)
>         at org.apache.xml.utils.DOMBuilder.append(DOMBuilder.java:172)
>         at org.apache.xml.utils.DOMBuilder.characters(DOMBuilder.java:432)
>         at org.apache.xalan.transformer.ResultTreeHandler.characters(ResultTreeHandler.java:446)
>         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:454)
>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
>         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
>         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
>         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
>         at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
>         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:479)
>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
>         at it.teamsw.XFile.TransformXFile.transform(TransformXFile.java:190)
>         at it.teamsw.XFile.TransformXFile.printTransformedDoc(TransformXFile.java:163)
>         at crea_listino.main(crea_listino.java:149)




More information about the jdom-interest mailing list