org.w3c.dom.DOMException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • NAMESPACE_ERR
    via opensearchserve by laurentdb
    ,
  • When I try to export some nodes with ExportDocumentView I get a DOMException with Jackrabbit 1.5.2. Version 1.4.6 works fine. Xerces version was 2.8.1. Code: Document document = documentBuilder.newDocument(); Element exportElement = (Element) document.appendChild(document.createElement("Export")); Result result = new DOMResult(exportElement); TransformerHandler transformerHandler = saxTransformerFactory.newTransformerHandler(); transformerHandler.setResult(result); session.exportDocumentView(workflowNode.getPath(), transformerHandler, true, 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. at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(Unknown Source) at org.apache.xerces.dom.AttrNSImpl.setName(Unknown Source) at org.apache.xerces.dom.AttrNSImpl.<init>(Unknown Source) at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(Unknown Source) at org.apache.xerces.dom.ElementImpl.setAttributeNS(Unknown Source) at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.startElement(SAX2DOM.java:194) at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204) at com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277) at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startElement(ToXMLSAXHandler.java:646) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.startElement(TransformerHandlerImpl.java:263) at org.apache.jackrabbit.commons.xml.Exporter.startElement(Exporter.java:438) at org.apache.jackrabbit.commons.xml.DocumentViewExporter.exportNode(DocumentViewExporter.java:76) at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:298) at org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.java:214) at org.apache.jackrabbit.commons.xml.DocumentViewExporter.exportNode(DocumentViewExporter.java:77) at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:295) at org.apache.jackrabbit.commons.xml.Exporter.export(Exporter.java:144) at org.apache.jackrabbit.commons.AbstractSession.export(AbstractSession.java:461) at org.apache.jackrabbit.commons.AbstractSession.exportDocumentView(AbstractSession.java:241)
    via by Lóránt Pintér,
  • j2ee installation
    via by 843804,
    • 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. at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(Unknown Source) at org.apache.xerces.dom.AttrNSImpl.setName(Unknown Source) at org.apache.xerces.dom.AttrNSImpl.<init>(Unknown Source) at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(Unknown Source) at org.apache.xerces.dom.ElementImpl.setAttributeNS(Unknown Source) at org.htmlcleaner.DomSerializer.setAttributes(DomSerializer.java:97) at org.htmlcleaner.DomSerializer.createDOM(DomSerializer.java:37) at com.jaeksoft.searchlib.parser.htmlParser.HtmlCleanerParser.getDocument(HtmlCleanerParser.java:53) at com.jaeksoft.searchlib.parser.htmlParser.HtmlDocumentProvider.getDocument(HtmlDocumentProvider.java:91) at com.jaeksoft.searchlib.parser.htmlParser.HtmlDocumentProvider.init(HtmlDocumentProvider.java:68) at com.jaeksoft.searchlib.parser.htmlParser.HtmlParserEnum.getHtmlParser(HtmlParserEnum.java:94) at com.jaeksoft.searchlib.parser.htmlParser.HtmlParserEnum.findBestProvider(HtmlParserEnum.java:83) at com.jaeksoft.searchlib.parser.htmlParser.HtmlParserEnum.getHtmlParser(HtmlParserEnum.java:92) at com.jaeksoft.searchlib.parser.HtmlParser.parseContent(HtmlParser.java:299) at com.jaeksoft.searchlib.parser.Parser.doParserContent(Parser.java:105) at com.jaeksoft.searchlib.parser.ParserSelector.parserLoop(ParserSelector.java:390) at com.jaeksoft.searchlib.parser.ParserSelector.parseStream(ParserSelector.java:417) at com.jaeksoft.searchlib.crawler.web.spider.Crawl.parseContent(Crawl.java:148) at com.jaeksoft.searchlib.crawler.web.spider.Crawl.download(Crawl.java:295) at com.jaeksoft.searchlib.crawler.web.process.WebCrawlThread.crawl(WebCrawlThread.java:174) at com.jaeksoft.searchlib.crawler.web.process.WebCrawlThread.runner(WebCrawlThread.java:117) at com.jaeksoft.searchlib.process.ThreadAbstract.run(ThreadAbstract.java:261) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
    No Bugmate found.