import data from online 6.1 to 6.0.5

Hi all,

Restoring a 6.1 backup fails with the following exception, this was working 96h ago.

/secure/admin/XmlRestore.jspa [ofbiz.core.entity.GenericDelegator] Error getting entity definition from model

org.ofbiz.core.entity.GenericModelException: Could not find definition for entity name PluginState

at org.ofbiz.core.entity.model.ModelReader.getModelEntity(

at org.ofbiz.core.entity.GenericDelegator.getModelEntity(

at org.ofbiz.core.entity.GenericDelegator.makeValue(

at com.atlassian.jira.ofbiz.DefaultOfBizDelegator.makeValue(

at com.atlassian.jira.action.admin.OfbizImportHandler.startElement(

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(

at com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport(



at com.atlassian.jira.task.ImportTaskManagerImpl$

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at Source)

at java.util.concurrent.Executors$ Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$ Source)

at Source)


5 answers

0 votes

The question that springs to mind is that if it was working 96 hours ago, what have you changed since then?

I'm also pretty sure you can't downgrade Jira data, but I don't know about the exports from OnDemand.

The question is what *you* guys have changed. The locally-installed version did not change.

However from the ondemand version, it changed the 28th and broke the import process:

Target Version Target Build Number Time Performed
6.1-OD-04-1 6134 28/Jul/13 6:50 PM
6.1-OD-03 6132 14/Jul/13 6:49 PM

Er, we're not Atlassian, many of use don't know (or care) about the point releases in OnDemand, and I had to ask to clarify where *any* changes might have occurred, because we've no way of knowing.

Digging out the data change is really helpful, as it's pretty much proof that change in OnDemand are the problem.

You probably want to raise this as a support call with OnDemand.

0 votes
Richie Gee Atlassian Team Jul 29, 2013

Hi there,

This seems to be caused by the bug tracked below:

Follow the steps on the bug ticket as a temporary workaround and hopefully it works for you :)

  1. Extract the entities.xml from the backup's zip
  2. 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
  3. Perform the restore again
  4. Acknowledge the error of the index path and attachment path
  5. Restore Complete

Hope this helps and have a great day ahead.

I've followed the instructions here and in the JIRA issue but I am now seeing an error when attempting to run the import:

2013-08-08 10:17:10,316 StreamsCompletionService::thread-5854 WARN anonymous com.atlassian.streams.internal.ActivityProviderConnectionMonitorImpl:activityProviderMonitor [atlassian.streams.internal.AppLinksActivityProvider] Unable to retrieve filters from /rest/activity-stream/1.0/config?local=true
org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: org.apache.commons.httpclient.AutoCloseInputStream@5f748fcb; line: 1, column: 2]

Has any one run into this?

Following the steps outlined above and also in the JIRA bug resolution, I get the following error:

Error importing from zip file: "C:\Program Files\Atlassian\Application Data\JIRA\import\". Error: Unable to find JIRA backup (entities.xml) inside of zip file: C:\Program Files\Atlassian\Application Data\JIRA\import\

When I open up the zip file, I can see that the file entities.xml is present in the folder.

I will greatly appreciate any insights / thoughts / suggestions.

Never mind - edited that XML file on a Windows server using Notepad++, and the error went away - had used cygwin and egrep earlier. Thanks.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot