org.xml.sax.SAXParseException: The root element is required in a well-formed document.

Apache's JIRA Issue Tracker | Praveen Kumar | 1 decade ago
  1. 0

    I am applying xsl transformation to a big xml file (100K nodes with 30 child nodes for each). I am using xalan-j 2.2.D13. I am getting No more DTM IDs. Any clue? Exception stack : org.apache.xml.dtm.DTMException: No more DTM IDs are available javax.xml.transform.TransformerException: org.apache.xml.dtm.DTMException: No more DTM IDs are available at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:690) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:1092) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:1070) at com.citigroup.issexp.xml.XSLTransformer.transform (XSLTransformer.java:146) at com.citigroup.issexp.feed.XMLFeedLoader.load(XMLFeedLoader.java:155) at com.citigroup.issexp.control.FeedLoadController.run (FeedLoadController.java:82) at java.lang.Thread.run(Thread.java:479) --------- org.apache.xml.dtm.DTMException: No more DTM IDs are available at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094) at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM (DTMManagerDefault.java:357) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:634) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:1092) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:1070) at com.citigroup.issexp.xml.XSLTransformer.transform (XSLTransformer.java:146) at com.citigroup.issexp.feed.XMLFeedLoader.load(XMLFeedLoader.java:155) at com.citigroup.issexp.control.FeedLoadController.run (FeedLoadController.java:82) at java.lang.Thread.run(Thread.java:479) --------- org.apache.xml.dtm.DTMException: No more DTM IDs are available at org.apache.xml.dtm.ref.DTMDefaultBase.error(DTMDefaultBase.java:1962) at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.addNode(SAX2DTM.java:821) at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.startElement(SAX2DTM.java:1646) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement (XMLValidator.java:1214) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch (XMLDocumentScanner.java:1171) at org.apache.xerces.framework.XMLDocumentScanner.parseSome (XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM (DTMManagerDefault.java:357) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:634) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:1092) at org.apache.xalan.transformer.TransformerImpl.transform (TransformerImpl.java:1070) at com.citigroup.issexp.xml.XSLTransformer.transform (XSLTransformer.java:146) at com.citigroup.issexp.feed.XMLFeedLoader.load(XMLFeedLoader.java:155) at com.citigroup.issexp.control.FeedLoadController.run (FeedLoadController.java:82) at java.lang.Thread.run(Thread.java:479) [Tue Jun 11 10:27:07 EDT 2002] [DefaultEventHandler::characters=1] The root element is required in a well-formed document. org.xml.sax.SAXParseException: The root element is required in a well-formed document. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196) at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError (XMLDocumentScanner.java:570) at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput (XMLDocumentScanner.java:790) at org.apache.xerces.framework.XMLDocumentScanner.endOfInput (XMLDocumentScanner.java:418) at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications (XMLValidator.java:694) at org.apache.xerces.readers.DefaultEntityHandler.changeReaders (DefaultEntityHandler.java:1026) at org.apache.xerces.readers.XMLEntityReader.changeReaders (XMLEntityReader.java:168) at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:182) at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:197) at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch (XMLDocumentScanner.java:686) at org.apache.xerces.framework.XMLDocumentScanner.parseSome (XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at com.citigroup.issexp.feed.DefaultXMLFeedReader.unmarshall (DefaultXMLFeedReader.java:69) at com.citigroup.issexp.feed.XMLFeedLoader.load(XMLFeedLoader.java:166) at com.citigroup.issexp.control.FeedLoadController.run (FeedLoadController.java:82)

    Apache's JIRA Issue Tracker | 1 decade ago | Praveen Kumar
    org.xml.sax.SAXParseException: The root element is required in a well-formed document.
  2. 0

    can anyone please help me with this issue...... CRITICAL

    Google Groups | 1 decade ago | pak...@gmail.com
    org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xded4) was found in the element content of the document.
  3. 0

    SAXParseException when reading launch configs

    Eclipse Bugzilla | 1 decade ago | daniel_megert
    org.xml.sax.SAXParseException: The root element is required in a well-formed document.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SAXParserException reading Welcome page

    Eclipse Bugzilla | 1 decade ago | daniel_megert
    org.xml.sax.SAXParseException: The element type "item" must be terminated by the matching end-tag "</item>".
  6. 0

    Parsing exception browsing site

    Eclipse Bugzilla | 1 decade ago | celek
    org.xml.sax.SAXParseException: White space is required between the public identifier and the system identifier.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXParseException

      The root element is required in a well-formed document.

      at org.apache.xerces.framework.XMLParser.reportError()
    2. org.apache.xerces
      XMLParser.reportError
      1. org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
      1 frame