Basic Rest Call gets 'Internal server error'

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

 

Problem

Basic Rest Call to JIRA such as view issue fails with 'Internal Server error' thrown in the REST response

 

{
"errorMessages": [1]
0: "Internal server error"
-
"errors": {}
}

 

The following appears in the atlassian-jira.log

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

Cause

From the stacktrace, 

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

Resolution

Remove this plugin and contact the developer of Risk Management Plugin accordingly as this is a third party plugin:

 

Last modified on May 2, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.