Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 35082 invoked from network); 12 Feb 2009 17:42:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 17:42:24 -0000 Received: (qmail 52278 invoked by uid 500); 12 Feb 2009 17:42:23 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 52249 invoked by uid 500); 12 Feb 2009 17:42:23 -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 52240 invoked by uid 99); 12 Feb 2009 17:42:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 09:42:23 -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; Thu, 12 Feb 2009 17:42:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D0104234C48D for ; Thu, 12 Feb 2009 09:41:59 -0800 (PST) Message-ID: <1102144223.1234460519851.JavaMail.jira@brutus> Date: Thu, 12 Feb 2009 09:41:59 -0800 (PST) From: =?utf-8?Q?Gr=C3=A9gory_Joseph_=28JIRA=29?= 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=3D126730= 14#action_12673014 ]=20 Gr=C3=A9gory Joseph commented on JCR-1952: ------------------------------------- We encounter a similar issue when using JR 1.5 with JBoss - namespaces are = declared twice in the first node. > 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 > > 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.