org.xml.sax.SAXException: The XML document does not contain the <entity-engine-xml> root element or it was closed too early.

Atlassian JIRA | Nicolas Wildner [Atlassian] | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    While executing a Studio Import, this error occurs: {noformat} Error importing data: org.xml.sax.SAXException: The XML document does not contain the <entity-engine-xml> root element or it was closed too early. {noformat} Reproduced on my test studio instance. On the Jira Log files: {noformat} @400000004eb19b913189156c 2011-11-02 17:35:35,830 JiraImportTaskExecutionThread-1 INFO nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Running JIRA Data Import... @400000004eb19b9133b68c5c 2011-11-02 17:35:35,867 JiraImportTaskExecutionThread-1 INFO nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 1% complete... @400000004eb19b9133de7334 2011-11-02 17:35:35,870 JiraImportTaskExecutionThread-1 INFO nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Importing XML data... @400000004eb19b9133df982c 2011-11-02 17:35:35,870 JiraImportTaskExecutionThread-1 INFO nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Start parsing XML with SAX Parser. @400000004eb19b9133e5e18c 2011-11-02 17:35:35,870 JiraImportTaskExecutionThread-1 INFO nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 17% complete... @400000004eb19b913400c074 2011-11-02 17:35:35,871 JiraImportTaskExecutionThread-1 ERROR nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Error importing data: org.xml.sax.SAXException: The XML document does not contain the <entity-engine-xml> root element or it was closed too early. @400000004eb19b913400d014 org.xml.sax.SAXException: The XML document does not contain the <entity-engine-xml> root element or it was closed too early. @400000004eb19b913400f33c at com.atlassian.jira.action.admin.OfbizImportHandler.startElement(OfbizImportHandler.java:216) @400000004eb19b913400f724 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) @400000004eb19b913400fb0c at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) @400000004eb19b913400fb0c at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) @400000004eb19b91340102dc at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source) @400000004eb19b9134010aac at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) @400000004eb19b9134011a4c at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) @400000004eb19b9134011e34 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) @400000004eb19b913401221c at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) @400000004eb19b913401221c at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) @400000004eb19b91340129ec at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) @400000004eb19b9134012dd4 at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) @400000004eb19b91340131bc at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) @400000004eb19b91340135a4 at com.atlassian.jira.bc.dataimport.DefaultDataImportService.parseXmlAndValidateBackupData(DefaultDataImportService.java:247) @400000004eb19b9134013d74 at com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport(DefaultDataImportService.java:195) @400000004eb19b913401415c at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:96) @400000004eb19b9134014544 at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:37) @400000004eb19b913401974c at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:147) @400000004eb19b913401aebc at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) @400000004eb19b913401b2a4 at java.util.concurrent.FutureTask.run(FutureTask.java:138) @400000004eb19b913401b2a4 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) @400000004eb19b913401b68c at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) @400000004eb19b913401be5c at java.util.concurrent.FutureTask.run(FutureTask.java:138) @400000004eb19b913401c244 at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForTenant(DefaultMultiTenantManager.java:61) @400000004eb19b913401c62c at com.atlassian.multitenant.juc.MultiTenantExecutors$WrappedRunnable.run(MultiTenantExecutors.java:160) @400000004eb19b913401ca14 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) @400000004eb19b913401d1e4 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) @400000004eb19b913401d5cc at java.lang.Thread.run(Thread.java:662) @400000004eb19b9134076f64 2011-11-02 17:35:35,872 JiraImportTaskExecutionThread-1 INFO nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 95% complete... @400000004eb19b913425a1dc 2011-11-02 17:35:35,874 JiraImportTaskExecutionThread-1 INFO nwildner 1055x554x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!import.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 100% complete... @400000004eb19b9721d08c2c 2011-11-02 17:35:41,566 TP-Processor8 ERROR nwildner 1055x557x1 83ixsi 201.22.212.136,59.167.133.70 /secure/admin/StudioImport!finished.jspa [jira.studio.importer.StudioImport] Import Finished with failures: Errors: {} @400000004eb19b9721d09bcc Error Messages: [Error importing data: org.xml.sax.SAXException: The XML document does not contain the c root element or it was closed too early.] {noformat} The <entity-engine-xml> XML element seems to be fine(closing), and the version of the Standalone Export file is 4.4.1#660-r161644. The progress bar reaches the end, and After that the message is displayed.

    Atlassian JIRA | 5 years ago | Nicolas Wildner [Atlassian]
    org.xml.sax.SAXException: The XML document does not contain the <entity-engine-xml> root element or it was closed too early.

    Root Cause Analysis

    1. org.xml.sax.SAXException

      The XML document does not contain the <entity-engine-xml> root element or it was closed too early.

      at com.atlassian.jira.action.admin.OfbizImportHandler.startElement()
    2. com.atlassian.jira
      OfbizImportHandler.startElement
      1. com.atlassian.jira.action.admin.OfbizImportHandler.startElement(OfbizImportHandler.java:216)
      1 frame
    3. Xerces2-j
      SAXParserImpl.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      2. org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
      5. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      6. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      7. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      8. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      9. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      10. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      11. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      12. org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
      12 frames
    4. com.atlassian.jira
      ImportTaskManagerImpl$TaskCallableDecorator.call
      1. com.atlassian.jira.bc.dataimport.DefaultDataImportService.parseXmlAndValidateBackupData(DefaultDataImportService.java:247)
      2. com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport(DefaultDataImportService.java:195)
      3. com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:96)
      4. com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:37)
      5. com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:147)
      5 frames
    5. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      4. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      5. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      5 frames
    6. com.atlassian.multitenant
      MultiTenantExecutors$WrappedRunnable.run
      1. com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForTenant(DefaultMultiTenantManager.java:61)
      2. com.atlassian.multitenant.juc.MultiTenantExecutors$WrappedRunnable.run(MultiTenantExecutors.java:160)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames