Project import fails with ParseException error for missing fields in Jira server
症状
Project import fails complaining about some customfieldvalues not mapped to any issue
atlassian-jira.log
に次のエラーが返される。
2012-06-20 21:36:32,487 JiraTaskExectionThread-3 WARN admin 1296x491x1 1dqndhd 10.60.1.160 /secure/admin/ProjectImportSelectProject.jspa [imports.project.handler.ChainedSaxHandler] Encountered a parsing exception.
com.atlassian.jira.exception.ParseException: No 'issue' field for CustomFieldValue '474431'.
at com.atlassian.jira.imports.project.parser.CustomFieldValueParserImpl.parse(CustomFieldValueParserImpl.java:46)
at com.atlassian.jira.imports.project.handler.CustomFieldMapperHandler.handleEntity(CustomFieldMapperHandler.java:34)
at com.atlassian.jira.imports.project.handler.ChainedSaxHandler.endTopLevelElement(ChainedSaxHandler.java:239)
at com.atlassian.jira.imports.project.handler.ChainedSaxHandler.endElement(ChainedSaxHandler.java:184)
at com.atlassian.jira.imports.project.handler.ChainedSaxHandler.endElement(ChainedSaxHandler.java:139)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at com.atlassian.jira.imports.xml.DefaultBackupXmlParser.parseBackupXml(DefaultBackupXmlParser.java:51)
at com.atlassian.jira.imports.project.DefaultProjectImportManager.getProjectImportData(DefaultProjectImportManager.java:292)
at com.atlassian.jira.bc.imports.project.DefaultProjectImportService.getProjectImportData(DefaultProjectImportService.java:610)
at com.atlassian.jira.web.action.admin.importer.project.ProjectImportSelectProject$MappingResultCallable.call(ProjectImportSelectProject.java:244)
診断
Run the below SQL query to retrieve those customfield values:
SELECT * FROM customfieldvalue WHERE issue IS NULL;
原因
One or more custom fields has a null value in a field where an issue ID is expected.
ソリューション
- Complete a full restore to a temporary JIRA instance.
Run this SQL in the temporary JIRA instance to delete the rows with null issue references:
DELETE FROM customfieldvalue WHERE issue IS NULL;
- Create a new XML backup from the temporary instance and use it to complete your project import.
Alternate method (on source instance):
- Jira を停止します。
- Make a clone of the Jira database.
- Modify the dbconfig.xml file to point to the cloned database.
- Remove the null values from the cloned database.
- Jira を起動します。
- Create a new backup.
- Jira を停止します。
- Point it back to the original database in the dbconfig.xml file.
- Jira を起動します。
関連リンク
JRASERVER-34373 - 課題詳細を取得中... ステータス
最終更新日: 2021 年 2 月 25 日
Powered by Confluence and Scroll Viewport.