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

Atlassian JIRA | Mauro Fernandez Badii [Atlassian] | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h3. Summary For JIRA Cloud Import to succeed, the "JIRA Export:" option in the Import Wizard must be a .zip file in the following format: JIRA-backup.zip ├── activeobjects.xml └── entities.xml *Problem:* The JIRA Cloud Wizard is also accepting an .xml file, continues through the process and runs and import that fails because it is missing the other .xml The following guide explains the process that an administrator has to go through to achieve the migration: [How to restore a JIRA Cloud application backup into another JIRA Cloud application|https://confluence.atlassian.com/display/JIRAKB/How+to+restore+a+JIRA+Cloud+application+backup+into+another+JIRA+Cloud+application] (improvements for this was suggested under: [JRA-59604|https://jira.atlassian.com/browse/JRA-59604] ) h3. Environment * JIRA Cloud Imports h3. Steps to Reproduce # Generate a Cloud Export # Unzip the export in webdav # Go to "JIRA Import" section and select any of the XML files h3. Expected Results JIRA warns that this is not the correct format and prevents the import. h3. Actual Results JIRA parses the xml file for previous JIRA URLs and continues with the next section. No message on screens warns the administrator that the import will fail. After starting the restore process, the following error is shown on screen: {quote} (!) JIRA access problem: There is a problem with your JIRA access. Failed to successfully import JIRA. {quote} JIRA is locked. JIRA logs show: {noformat} 2016-02-18 01:43:25,224 JiraImportTaskExecutionThread-1 INFO username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.studio.importer.StudioImport] Starting FULL JIRA Import as user: username 2016-02-18 01:43:25,224 JiraImportTaskExecutionThread-1 INFO username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Running JIRA Data Import... 2016-02-18 01:43:25,230 JiraImportTaskExecutionThread-1 INFO username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Importing XML data... 2016-02-18 01:43:25,231 JiraImportTaskExecutionThread-1 ERROR username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.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. 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.bc.dataimport.OfbizImportHandler.startElement(OfbizImportHandler.java:241) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) .... {noformat} h3.Workaround * Zip both .xml files to match the format required by JIRA.

    Atlassian JIRA | 1 year ago | Mauro Fernandez Badii [Atlassian]
    org.xml.sax.SAXException: The XML document does not contain the <entity-engine-xml> root element or it was closed too early.
  2. 0

    h3. Summary For JIRA Cloud Import to succeed, the "JIRA Export:" option in the Import Wizard must be a .zip file in the following format: JIRA-backup.zip ├── activeobjects.xml └── entities.xml *Problem:* The JIRA Cloud Wizard is also accepting an .xml file, continues through the process and runs and import that fails because it is missing the other .xml The following guide explains the process that an administrator has to go through to achieve the migration: [How to restore a JIRA Cloud application backup into another JIRA Cloud application|https://confluence.atlassian.com/display/JIRAKB/How+to+restore+a+JIRA+Cloud+application+backup+into+another+JIRA+Cloud+application] (improvements for this was suggested under: [JRA-59604|https://jira.atlassian.com/browse/JRA-59604] ) h3. Environment * JIRA Cloud Imports h3. Steps to Reproduce # Generate a Cloud Export # Unzip the export in webdav # Go to "JIRA Import" section and select any of the XML files h3. Expected Results JIRA warns that this is not the correct format and prevents the import. h3. Actual Results JIRA parses the xml file for previous JIRA URLs and continues with the next section. No message on screens warns the administrator that the import will fail. After starting the restore process, the following error is shown on screen: {quote} (!) JIRA access problem: There is a problem with your JIRA access. Failed to successfully import JIRA. {quote} JIRA is locked. JIRA logs show: {noformat} 2016-02-18 01:43:25,224 JiraImportTaskExecutionThread-1 INFO username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.studio.importer.StudioImport] Starting FULL JIRA Import as user: username 2016-02-18 01:43:25,224 JiraImportTaskExecutionThread-1 INFO username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Running JIRA Data Import... 2016-02-18 01:43:25,230 JiraImportTaskExecutionThread-1 INFO username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Importing XML data... 2016-02-18 01:43:25,231 JiraImportTaskExecutionThread-1 ERROR username 763x2958x1 14ji4ox 202.10.85.134,165.254.226.18,127.0.0.1 /secure/admin/StudioImport!import.jspa [c.a.j.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. 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.bc.dataimport.OfbizImportHandler.startElement(OfbizImportHandler.java:241) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) .... {noformat} h3.Workaround * Zip both .xml files to match the format required by JIRA.

    Atlassian JIRA | 1 year ago | Mauro Fernandez Badii [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.bc.dataimport.OfbizImportHandler.startElement()
    2. com.atlassian.jira
      OfbizImportHandler.startElement
      1. com.atlassian.jira.bc.dataimport.OfbizImportHandler.startElement(OfbizImportHandler.java:241)
      1 frame
    3. Xerces2-j
      XMLDocumentFragmentScannerImpl.scanDocument
      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)
      6 frames