JIRA Throw 'GenericValue cannot be null' Error after accessing the Browse Project page
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.
*Except Fisheye and Crucible
Symptoms
When accessing the Browse Project page, in the JIRA logs, trace like below can be found:
1 2 3 4 5 6 7 8 9 10
2012-03-22 15:55:44,635 http-8080-28 ERROR [500ErrorPage.jsp] Exception caught in 500 page GenericValue cannot be null. java.lang.IllegalArgumentException: GenericValue cannot be null. at com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper.<init>(AbstractOfBizValueWrapper.java:25) at com.atlassian.jira.issue.link.IssueLinkType.<init>(IssueLinkType.java:32) at com.atlassian.jira.issue.link.DefaultIssueLinkTypeManager.buildIssueLinkType(DefaultIssueLinkTypeManager.java:205) at com.atlassian.jira.issue.link.DefaultIssueLinkTypeManager.getIssueLinkType(DefaultIssueLinkTypeManager.java:77) at com.atlassian.jira.issue.link.DefaultIssueLinkTypeManager.getIssueLinkType(DefaultIssueLinkTypeManager.java:66) at com.atlassian.jira.issue.link.IssueLink.getIssueLinkType(IssueLink.java:81) at com.atlassian.jira.issue.index.indexers.impl.SubTaskIndexer.addIndex(SubTaskIndexer.java:54) at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:40)
Re-indexing JIRA does not helps fixing the issue and might throw another error like:
1 2 3 4
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: GenericValue cannot be null. at com.atlassian.jira.index.FutureResult.await(FutureResult.java:35) at com.atlassian.jira.index.CompositeResultBuilder$CompositeResult.await(CompositeResultBuilder.java:82) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:243)
The following appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
2012-03-22 16:09:36,434 http-8080-19 WARN infpcor 969x31123x1 18knlws 172.16.197.187 /browse/TESTPROJECT [polscheit.jira.plugins.GanttProjectTabPanel] You have not configured an issue link type to be used as Gantt-Dependency!
2012-03-22 16:09:37,455 http-8080-19 ERROR [500ErrorPage.jsp] Exception caught in 500 page GenericValue cannot be null.
java.lang.IllegalArgumentException: GenericValue cannot be null.
at com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper.<init>(AbstractOfBizValueWrapper.java:25)
at com.atlassian.jira.issue.link.IssueLinkType.<init>(IssueLinkType.java:32)
at com.atlassian.jira.issue.link.DefaultIssueLinkTypeManager.buildIssueLinkType(DefaultIssueLinkTypeManager.java:205)
at com.atlassian.jira.issue.link.DefaultIssueLinkTypeManager.getIssueLinkType(DefaultIssueLinkTypeManager.java:77)
at com.atlassian.jira.issue.link.DefaultIssueLinkTypeManager.getIssueLinkType(DefaultIssueLinkTypeManager.java:66)
at com.atlassian.jira.issue.link.IssueLink.getIssueLinkType(IssueLink.java:81)
at com.atlassian.jira.issue.index.indexers.impl.SubTaskIndexer.addIndex(SubTaskIndexer.java:54)
at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:40)
Cause
Invalid issue link exist in the database
Resolution
Always back up your data before making any database modifications. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
Stop JIRA.
Verify if there are any invalid links in the database with the below SQL:
1
SELECT * FROM issuelink where LINKTYPE not in (select ID from issuelinktype);
ℹ️ If there any results returned, there are invalid links in the database.
Remove all invalid links with the following SQL:
1
DELETE FROM issuelink where LINKTYPE not in (select ID from issuelinktype);
Start JIRA.
Reindex JIRA.
Was this helpful?