Basic Rest Call gets 'Internal server error'
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
Summary
Problem
Basic Rest Call to JIRA such as view issue fails with 'Internal Server error' thrown in the REST response
1
2
3
4
5
6
{
"errorMessages": [1]
0: "Internal server error"
-
"errors": {}
}
The following appears in the atlassian-jira.log
1
2
3
4
5
6
7
8
2016-04-07 11:57:38,314 ajp-nio-8009-exec-1 ERROR rdem 717x23x3 2gh1ij 192.168.3.178 /rest/api/2/issue/ITSUPPORT-2113 [c.a.j.rest.exception.ExceptionInterceptor] Returning internal server error in response
java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoSuchMethodError: com.atlassian.jira.ComponentManager.getCustomFieldManager()Lcom/atlassian/jira/issue/CustomFieldManager;
at com.ja.jira.plugin.report.riskmanagement.RiskCalculatedCustomField.getCustomFieldManager(RiskCalculatedCustomField.java:142)
at com.ja.jira.plugin.report.riskmanagement.RiskCalculatedCustomField.getValue(RiskCalculatedCustomField.java:100)
at com.ja.jira.plugin.report.riskmanagement.RiskCalculatedCustomField.getValueFromIssue(RiskCalculatedCustomField.java:85)
at com.atlassian.jira.issue.fields.CustomFieldImpl.getJsonFromIssue(CustomFieldImpl.java:1927)
Diagnosis
Environment
Recently upgraded from JIRA v6.x to JIRA v7
Diagnostic Steps
Have Risk Management Plugin installed
Cause
From the stacktrace,
1
com.ja.jira.plugin.report.riskmanagement.RiskCalculatedCustomField.getCustomFieldManager(RiskCalculatedCustomField.java:142)
This shown that the Risk Management Plugin is the one that causing the NoSuchMethodError. This is due to compatibility issue on the new JIRA
Solution
Resolution
Remove this plugin and contact the developer of Risk Management Plugin accordingly as this is a third party plugin:
Was this helpful?