JIRA Throws NullPointerException When Navigate To Project's Issue Types Tab
症状
- Multiple Issue Types Scheme are set as the default instead of only Default Issue Type Scheme.
atlassian-jira.log
に次のエラーが返される。
jadmin 922x258x1 ws5lk 127.0.0.1 /plugins/servlet/project-config/ATL/summary [jira.projectconfig.contextproviders.SummaryContextProvider] Unable to load project summary panel
java.lang.NullPointerException
at com.atlassian.jira.issue.fields.config.manager.IssueTypeSchemeManagerImpl.getIssueTypesForConfigScheme(IssueTypeSchemeManagerImpl.java:276)
at com.atlassian.jira.issue.fields.config.manager.IssueTypeSchemeManagerImpl.getIssueTypesForProject(IssueTypeSchemeManagerImpl.java:247)
at com.atlassian.jira.issue.fields.config.manager.IssueTypeSchemeManagerImpl.getIssueTypesForProject(IssueTypeSchemeManagerImpl.java:252)
診断
Check if there any entry that is associated to non-existing project by running the following SQL on JIRA's database:
select * from configurationcontext where project not in (select id from project);
Check if there is a default configuration on the database:
select * from configurationcontext where id = 10000 and fieldconfigscheme = 10000 and customfield = 'issuetype' and projectcategory is null and project is null;
原因
There is Issue Types Scheme(s) that is associated with project(s) that no longer exist. This is tracked in - JRA-29446Getting issue details... STATUS .
ソリューション
データベースの変更を行う場合は 必ず事前にバックアップを取得してください。可能な場合はテスト サーバーで変更を試すことをおすすめします。
If any records are found with the first SQL query in the Diagnosis section, remove the record with the following:
delete from configurationcontext where project not in (select id from project);
If no records are found with the second SQL query of the Diagnosis section, please add the following:
insert into configurationcontext values (10000, null, null, 'issuetype', 10000);
- Jira を再起動します。