Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.0.5
-
None
-
6
-
Description
Importing OnDemand backup to JIRA behind the firewall ran into the following error:
2013-07-30 20:21:33,760 JiraImportTaskExecutionThread-1 ERROR admin 1221x174x1 jmwgs9 127.0.0.1 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Error importing data: java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: PluginState java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: PluginState at org.ofbiz.core.entity.GenericDelegator.makeValue(GenericDelegator.java:430) at com.atlassian.jira.ofbiz.DefaultOfBizDelegator.makeValue(DefaultOfBizDelegator.java:385) at com.atlassian.jira.action.admin.OfbizImportHandler.startElement(OfbizImportHandler.java:205) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.parseXmlAndValidateBackupData(DefaultDataImportService.java:321) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport(DefaultDataImportService.java:249) at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:66) at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:29) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:146) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)
Suspected to be caused by there is new entity introduced on the on demand version which is yet to be available on the JIRA Self Hosted.
Tested using latest On Demand backup (as of current release: 30th July 2013) restoring to JIRA 6.0.5 according to the version matrix:
Workaround
- Extract the entities.xml from the backup's zip
- Open the entities.xml and remove all PluginState tags.
- Alternatively on Linux/Unix based machine, run the following command in the same folder where the entities.xml is located:
egrep -v "PluginState" entities.xml > entities-clean.xml
- Alternatively on Linux/Unix based machine, run the following command in the same folder where the entities.xml is located:
- Rename the entities-clean.xml to entities.xml and zip together again with the activeobject.xml (Remember to move the previous entities.xml to another location before rename so no naming conflict)
- Perform the restore again
- Acknowledge the error of the index path and attachment path
- Restore Complete