Restoration fails due to Structure plugin
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
プラットフォームについて: Cloud のみ - この記事は、 クラウド プラットフォームのアトラシアン製品にのみ適用されます。
問題
Restoration fails with the following error thrown in the logs
- The following appears in the atlassian-jira
.log
/secure/admin/StructureRestore.jspa [structure.web.actions.StructureRestore] structure restore operation problem
java.lang.NullPointerException: null value
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:139)
at com.google.common.collect.ImmutableMap.of(ImmutableMap.java:85)
at com.almworks.jira.structure.services.backup.BackupXMLReader2x.resolveIssue(BackupXMLReader2x.java:126)
at com.almworks.jira.structure.services.backup.BackupXMLReader2x.access$400(BackupXMLReader2x.java:23)
at com.almworks.jira.structure.services.backup.BackupXMLReader2x$1.endElement(BackupXMLReader2x.java:90)
at com.almworks.jira.structure.services.backup.SectionReader.read(SectionReader.java:31)
at com.almworks.jira.structure.services.backup.BackupXMLReader2x.readItemForest(BackupXMLReader2x.java:111)
at com.almworks.jira.structure.services.backup.BackupXMLReader2x$2.element(BackupXMLReader2x.java:167)
at com.almworks.jira.structure.services.backup.SectionReader.read(SectionReader.java:24)
at com.almworks.jira.structure.services.backup.BackupXMLReader2x.readHistoryEntry(BackupXMLReader2x.java:220)
at com.almworks.jira.structure.services.backup.BackupXMLReader$10.element(BackupXMLReader.java:668)
at com.almworks.jira.structure.services.backup.SectionReader.read(SectionReader.java:24)
診断
環境
- Structure - The Issue Organizer plugin (v2.11.x - v3.3.0) installed in JIRA
原因
There's a known problem in Structure 3.3.0 that sometimes causes a NullPointerException during restore.
回避策
Install version 3.2.1 (appropriate for your JIRA – 3.2.1.jira6), then perform the restore / migration from Structure 2.11, then upgrade to Structure 3.3.0 (which will not involve doing the Restore)
ソリューション
Upgrade to Structure - The Issue Organizer plugin (v3.3.1)