Performing a JIRA restore from an xml backup is failing with java.lang.NullPointerException when there is a long string in the field : 'oldstring' for 'changeitem' table.
JIRA does not provide any helpful logging here to help determine why the restore failed. We need to have better logging for this failure.
- Restore a backup of JIRA from Administration > System > Restore System
Restore finishes successfully
Restore fails but without giving any reason why it failed
The below exception is thrown in the atlassian-jira.log file:
- Enable TRACE logging on the class 'com.atlassian.jira.bc.dataimport' and 'com.atlassian.jira.imports'
- Now start the restore
- When the restore fails, look through the atlassian-jira.log file to determine which record it was reading from entities.xml
- Open the entities.xml file to see that row. That should help to find where the restore is failing.
The issue was mitigated in versions 7.3.7 and 7.4.0. Jira will now report any unexpected failure during data import
that is from 20% to 90% of import progress. Problems that happen outside of this range can still be not printed in log. Example: out of memory during XML parsing.