Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 4016 invoked from network); 13 Feb 2009 11:12:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2009 11:12:24 -0000 Received: (qmail 27562 invoked by uid 500); 13 Feb 2009 11:12:23 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 27530 invoked by uid 500); 13 Feb 2009 11:12: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 27521 invoked by uid 99); 13 Feb 2009 11:12:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 03:12: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; Fri, 13 Feb 2009 11:12:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A4A45234C48D for ; Fri, 13 Feb 2009 03:11:59 -0800 (PST) Message-ID: <616818013.1234523519673.JavaMail.jira@brutus> Date: Fri, 13 Feb 2009 03:11:59 -0800 (PST) From: "Jukka Zitting (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=3D126732= 13#action_12673213 ]=20 Jukka Zitting commented on JCR-1952: ------------------------------------ Can you find out what version of Xalan the xalan.jar library you had was? > 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.