Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 60756 invoked from network); 15 Feb 2009 20:03:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2009 20:03:22 -0000 Received: (qmail 87148 invoked by uid 500); 15 Feb 2009 20:03:21 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 87092 invoked by uid 500); 15 Feb 2009 20:03:21 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 87032 invoked by uid 99); 15 Feb 2009 20:03:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 12:03:21 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 20:03:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B6E8234C498 for ; Sun, 15 Feb 2009 12:03:00 -0800 (PST) Message-ID: <1485182919.1234728180111.JavaMail.jira@brutus> Date: Sun, 15 Feb 2009 12:03:00 -0800 (PST) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1952) DOMException: NAMESPACE_ERR thrown when exporting document view In-Reply-To: <1004779948.1232919779686.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1952?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D126737= 41#action_12673741 ]=20 Julian Reschke commented on JCR-1952: ------------------------------------- I think this was while resolving JCR-1767 (an issue that only surfaced when= a DOM was serialized). > DOMException: NAMESPACE_ERR thrown when exporting document view > --------------------------------------------------------------- > > Key: JCR-1952 > URL: https://issues.apache.org/jira/browse/JCR-1952 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: xml > Affects Versions: 1.5.2 > Reporter: L=C3=B3r=C3=A1nt Pint=C3=A9r > Attachments: MANIFEST.MF > > > When I try to export some nodes with ExportDocumentView I get a DOMExcept= ion with Jackrabbit 1.5.2. Version 1.4.6 works fine. Xerces version was 2.8= .1. > Code: > Document document =3D documentBuilder.newDocument(); > Element exportElement =3D (Element) document.appendChild(document.createE= lement("Export")); > Result result =3D new DOMResult(exportElement); > TransformerHandler transformerHandler =3D saxTransformerFactory.newTransf= ormerHandler(); > transformerHandler.setResult(result); > session.exportDocumentView(workflowNode.getPath(), transformerHandler, tr= ue, false); > Exception: > org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or = change an object in a way which is incorrect with regard to namespaces. > =09at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(Unknown Source= ) > =09at org.apache.xerces.dom.AttrNSImpl.setName(Unknown Source) > =09at org.apache.xerces.dom.AttrNSImpl.(Unknown Source) > =09at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(Unknown So= urce) > =09at org.apache.xerces.dom.ElementImpl.setAttributeNS(Unknown Source) > =09at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.startElement(S= AX2DOM.java:194) > =09at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeSta= rtTag(ToXMLSAXHandler.java:204) > =09at com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPendin= g(ToSAXHandler.java:277) > =09at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startEle= ment(ToXMLSAXHandler.java:646) > =09at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl= .startElement(TransformerHandlerImpl.java:263) > =09at org.apache.jackrabbit.commons.xml.Exporter.startElement(Exporter.ja= va:438) > =09at org.apache.jackrabbit.commons.xml.DocumentViewExporter.exportNode(D= ocumentViewExporter.java:76) > =09at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java= :298) > =09at org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.jav= a:214) > =09at org.apache.jackrabbit.commons.xml.DocumentViewExporter.exportNode(D= ocumentViewExporter.java:77) > =09at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java= :295) > =09at org.apache.jackrabbit.commons.xml.Exporter.export(Exporter.java:144= ) > =09at org.apache.jackrabbit.commons.AbstractSession.export(AbstractSessio= n.java:461) > =09at org.apache.jackrabbit.commons.AbstractSession.exportDocumentView(Ab= stractSession.java:241) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.