com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: Internal server error

Atlassian JIRA | Stephan Vierkant | 2 years ago
  1. 0

    It should rather throw checked exception so the API http call returns a meaningful error instead of HTTP 500. Stacktrace: {code} @4000000054f463b42f022824 2015-03-02 14:20:42,755 TP-Processor31 ERROR stephan 860x630x1 s8ex5x 188.201.208.138,131.103.26.130 /rest/api/latest/issue/15702 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response @4000000054f463b42f022ff4 java.lang.reflect.InvocationTargetException @4000000054f463b42f06622c Caused by: java.lang.NullPointerException @4000000054f463b42f06622c at com.atlassian.jira.issue.fields.rest.PriorityRestFieldOperationsHandler.getInitialValue(PriorityRestFieldOperationsHandler.java:45) @4000000054f463b42f066614 at com.atlassian.jira.issue.fields.rest.PriorityRestFieldOperationsHandler.getInitialValue(PriorityRestFieldOperationsHandler.java:20) @4000000054f463b42f0669fc at com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler.updateIssueInputParameters(AbstractFieldOperationsHandler.java:48) @4000000054f463b42f066de4 at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.finalizeIssueInputParams(IssueInputParametersAssembler.java:470) @4000000054f463b42f06799c at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.buildForEdit(IssueInputParametersAssembler.java:221) @4000000054f463b42f067d84 at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeUpdateAssembler(IssueInputParametersAssembler.java:108) @4000000054f463b42f06816c at com.atlassian.jira.rest.v2.issue.UpdateIssueResource.editIssue(UpdateIssueResource.java:36) @4000000054f463b42f068554 at com.atlassian.jira.rest.v2.issue.IssueResource.editIssue(IssueResource.java:883) {code} Original description (raised as a bug in Atlassian Connector for Eclipse): {quote} !ENTRY com.atlassian.connector.eclipse.internal.jira.core 4 1 2015-03-02 14:28:47.687 !MESSAGE Internal server error !STACK 0 com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: Internal server error at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:770) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.updateIssue(JiraRestClientAdapter.java:722) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.updateIssue(JiraClient.java:775) at com.atlassian.connector.eclipse.internal.jira.core.JiraTaskDataHandler.postTaskData(JiraTaskDataHandler.java:1092) at org.eclipse.mylyn.internal.tasks.core.sync.SubmitTaskJob.run(SubmitTaskJob.java:101) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: com.atlassian.jira.rest.client.RestClientException: Internal server error at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:74) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.update(JerseyIssueRestClient.java:223) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$9.call(JiraRestClientAdapter.java:725) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$9.call(JiraRestClientAdapter.java:1) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:735) ... 5 more Caused by: com.sun.jersey.api.client.UniformInterfaceException: Client response status: 500 at com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:628) at com.sun.jersey.api.client.WebResource.put(WebResource.java:199) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient$4.call(JerseyIssueRestClient.java:232) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient$4.call(JerseyIssueRestClient.java:223) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:60) ... 9 more {quote}

    Atlassian JIRA | 2 years ago | Stephan Vierkant
    com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: Internal server error
  2. 0

    It should rather throw checked exception so the API http call returns a meaningful error instead of HTTP 500. Stacktrace: {code} @4000000054f463b42f022824 2015-03-02 14:20:42,755 TP-Processor31 ERROR stephan 860x630x1 s8ex5x 188.201.208.138,131.103.26.130 /rest/api/latest/issue/15702 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response @4000000054f463b42f022ff4 java.lang.reflect.InvocationTargetException @4000000054f463b42f06622c Caused by: java.lang.NullPointerException @4000000054f463b42f06622c at com.atlassian.jira.issue.fields.rest.PriorityRestFieldOperationsHandler.getInitialValue(PriorityRestFieldOperationsHandler.java:45) @4000000054f463b42f066614 at com.atlassian.jira.issue.fields.rest.PriorityRestFieldOperationsHandler.getInitialValue(PriorityRestFieldOperationsHandler.java:20) @4000000054f463b42f0669fc at com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler.updateIssueInputParameters(AbstractFieldOperationsHandler.java:48) @4000000054f463b42f066de4 at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.finalizeIssueInputParams(IssueInputParametersAssembler.java:470) @4000000054f463b42f06799c at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.buildForEdit(IssueInputParametersAssembler.java:221) @4000000054f463b42f067d84 at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeUpdateAssembler(IssueInputParametersAssembler.java:108) @4000000054f463b42f06816c at com.atlassian.jira.rest.v2.issue.UpdateIssueResource.editIssue(UpdateIssueResource.java:36) @4000000054f463b42f068554 at com.atlassian.jira.rest.v2.issue.IssueResource.editIssue(IssueResource.java:883) {code} Original description (raised as a bug in Atlassian Connector for Eclipse): {quote} !ENTRY com.atlassian.connector.eclipse.internal.jira.core 4 1 2015-03-02 14:28:47.687 !MESSAGE Internal server error !STACK 0 com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: Internal server error at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:770) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.updateIssue(JiraRestClientAdapter.java:722) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.updateIssue(JiraClient.java:775) at com.atlassian.connector.eclipse.internal.jira.core.JiraTaskDataHandler.postTaskData(JiraTaskDataHandler.java:1092) at org.eclipse.mylyn.internal.tasks.core.sync.SubmitTaskJob.run(SubmitTaskJob.java:101) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: com.atlassian.jira.rest.client.RestClientException: Internal server error at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:74) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.update(JerseyIssueRestClient.java:223) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$9.call(JiraRestClientAdapter.java:725) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$9.call(JiraRestClientAdapter.java:1) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:735) ... 5 more Caused by: com.sun.jersey.api.client.UniformInterfaceException: Client response status: 500 at com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:628) at com.sun.jersey.api.client.WebResource.put(WebResource.java:199) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient$4.call(JerseyIssueRestClient.java:232) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient$4.call(JerseyIssueRestClient.java:223) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:60) ... 9 more {quote}

    Atlassian JIRA | 2 years ago | Stephan Vierkant
    com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: Internal server error
  3. 0

    [JRA-32132] Internal Server Error if transition destination is undefined or the same state as the original status - Atlassian JIRA

    atlassian.com | 1 year ago
    client.RestClientException: Internal server error at com.atlassian.jira. .client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:68) at com.atlassian.jira. .client.internal.jersey.AbstractJerseyRestClient.getAndParse(AbstractJerseyRestClient.java:80) at com.atlassian.jira. .client.internal.jersey.JerseyIssueRestClient.getIssue(JerseyIssueRestClient.java:142) at com.atlassian.jira. .client.internal.jersey.JerseyIssueRestClient.getIssue(JerseyIssueRestClient.java:133)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h4. Summary Using the REST command to execute transaction will return error 500 if the transition destination is a (-1) no result step (loop). h5. cURL command used {code} curl -D- -u admin:admin -X POST --data @"C:/Users/ChungPark/Desktop/data.json" -H "Content-Type: application/json" http://localhost:8527/rest/api/2/issue/PP-8/transitions?expand=transitions.fields {code} h5. json data {code} { "transition": { "id": "711" } } {code} h4. Error thrown in REST client {code} Exception in thread "main" com.atlassian.jira.rest.client.RestClientException: Internal server error at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:68) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.getAndParse(AbstractJerseyRestClient.java:80) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.getIssue(JerseyIssueRestClient.java:142) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.getIssue(JerseyIssueRestClient.java:133) at RestTry.main(RestTry.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: com.sun.jersey.api.client.UniformInterfaceException: Client response status: 500 at com.sun.jersey.api.client.WebResource.handle(WebResource.java:676) at com.sun.jersey.api.client.WebResource.get(WebResource.java:191) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient$1.call(AbstractJerseyRestClient.java:84) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:54) ... 9 more {code} h4. Error thrown in {{atlassian-jira.log}} {code} 013-03-14 21:25:05,274 http-bio-8527-exec-1 ERROR admin 1285x3280x1 14nlcoe 127.0.0.1 /rest/api/latest/issue/WFP-3 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor1190.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:100) <+3> (DefaultMethodInvocation.java:61) (ExpandInterceptor.java:38) (DefaultMethodInvocation.java:61) at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:59) <+1> (DefaultMethodInvocation.java:61) at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:43) <+15> (DefaultMethodInvocation.java:61) (DispatchProviderHelper.java:132) (DispatchProviderHelper.java:230) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (RightHandPathRule.java:147) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) <+1> (ServletContainer.java:795) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) <+16> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (RestServletUtilsUpdaterFilter.java:26) (RestServletUtilsUpdaterFilter.java:40) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (ContextFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37) <+15> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AccessLogFilter.java:103) (AccessLogFilter.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (XsrfTokenAdditionRequestFilter.java:54) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) at com.atlassian.labs.remoteapps.modules.permissions.ApiScopingFilter.doFilter(ApiScopingFilter.java:60) <+22> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (SecurityFilter.java:234) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (TrustedApplicationsFilter.java:98) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (BaseLoginFilter.java:169) (JiraLoginFilter.java:70) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) (OAuthFilter.java:55) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) <+9> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractJohnsonFilter.java:71) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) <+9> (UrlRewriteFilter.java:394) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (GzipFilter.java:80) (GzipFilter.java:51) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) at com.atlassian.labs.remoteapps.modules.oauth.OAuth2LOFilter.doFilter(OAuth2LOFilter.java:70) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) at com.atlassian.labs.remoteapps.util.http.bigpipe.RequestIdSettingFilter.doFilter(RequestIdSettingFilter.java:22) <+43> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (JWDSendRedirectFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:78) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractCachingFilter.java:33) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractEncodingFilter.java:41) (AbstractHttpFilter.java:31) (PathMatchingEncodingFilter.java:45) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (JiraStartupChecklistFilter.java:74) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (MultiTenantServletFilter.java:91) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:78) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (StandardWrapperValve.java:225) (StandardContextValve.java:123) (AuthenticatorBase.java:472) (StandardHostValve.java:168) (ErrorReportValve.java:98) (StandardEngineValve.java:118) (AccessLogValve.java:927) (CoyoteAdapter.java:407) (AbstractHttp11Processor.java:1001) (AbstractProtocol.java:585) (JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at com.atlassian.jira.rest.v2.issue.TransitionMetaBeanBuilder.getStatusFromStep(TransitionMetaBeanBuilder.java:83) at com.atlassian.jira.rest.v2.issue.TransitionMetaBeanBuilder.build(TransitionMetaBeanBuilder.java:69) at com.atlassian.jira.rest.v2.issue.IssueBeanBuilder.addTransitions(IssueBeanBuilder.java:138) at com.atlassian.jira.rest.v2.issue.IssueBeanBuilder.build(IssueBeanBuilder.java:111) at com.atlassian.jira.rest.v2.issue.IssueResource.getIssue(IssueResource.java:434) {code} h4. Environment The error only occurs when a REST client is used, such as [JIRA REST client|https://marketplace.atlassian.com/plugins/com.atlassian.jira.jira-rest-java-client]. Testing using cURL does not return any error. When Stash is integrated to JIRA, the following message will be displayed when trying to browse JIRA issues linked to the problematic global transition: {noformat} Can't display issues Either you don't have access to view them or they don't exist. Please contact your system administrator if you believe this is incorrect. instead of the integration I was hoping for. {noformat} h4. Workaround * Set a destination step for the affected transition. * Do not set global transition as it only affects global transition. h4. UPDATE Using a cURL command performing GET will return *{{{"errorMessages":["Internal server error"],"errors":{}}}}*.

    Atlassian JIRA | 4 years ago | Chung Park Chan [Atlassian]
    com.atlassian.jira.rest.client.RestClientException: Internal server error
  6. 0

    h4. Summary Using the REST command to execute transaction will return error 500 if the transition destination is a (-1) no result step (loop). h5. cURL command used {code} curl -D- -u admin:admin -X POST --data @"C:/Users/ChungPark/Desktop/data.json" -H "Content-Type: application/json" http://localhost:8527/rest/api/2/issue/PP-8/transitions?expand=transitions.fields {code} h5. json data {code} { "transition": { "id": "711" } } {code} h4. Error thrown in REST client {code} Exception in thread "main" com.atlassian.jira.rest.client.RestClientException: Internal server error at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:68) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.getAndParse(AbstractJerseyRestClient.java:80) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.getIssue(JerseyIssueRestClient.java:142) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.getIssue(JerseyIssueRestClient.java:133) at RestTry.main(RestTry.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: com.sun.jersey.api.client.UniformInterfaceException: Client response status: 500 at com.sun.jersey.api.client.WebResource.handle(WebResource.java:676) at com.sun.jersey.api.client.WebResource.get(WebResource.java:191) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient$1.call(AbstractJerseyRestClient.java:84) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:54) ... 9 more {code} h4. Error thrown in {{atlassian-jira.log}} {code} 013-03-14 21:25:05,274 http-bio-8527-exec-1 ERROR admin 1285x3280x1 14nlcoe 127.0.0.1 /rest/api/latest/issue/WFP-3 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor1190.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:100) <+3> (DefaultMethodInvocation.java:61) (ExpandInterceptor.java:38) (DefaultMethodInvocation.java:61) at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:59) <+1> (DefaultMethodInvocation.java:61) at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:43) <+15> (DefaultMethodInvocation.java:61) (DispatchProviderHelper.java:132) (DispatchProviderHelper.java:230) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (RightHandPathRule.java:147) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) <+1> (ServletContainer.java:795) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) <+16> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (RestServletUtilsUpdaterFilter.java:26) (RestServletUtilsUpdaterFilter.java:40) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (ContextFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37) <+15> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AccessLogFilter.java:103) (AccessLogFilter.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (XsrfTokenAdditionRequestFilter.java:54) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) at com.atlassian.labs.remoteapps.modules.permissions.ApiScopingFilter.doFilter(ApiScopingFilter.java:60) <+22> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (SecurityFilter.java:234) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (TrustedApplicationsFilter.java:98) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (BaseLoginFilter.java:169) (JiraLoginFilter.java:70) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) (OAuthFilter.java:55) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) <+9> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractJohnsonFilter.java:71) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) <+9> (UrlRewriteFilter.java:394) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (GzipFilter.java:80) (GzipFilter.java:51) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) at com.atlassian.labs.remoteapps.modules.oauth.OAuth2LOFilter.doFilter(OAuth2LOFilter.java:70) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) at com.atlassian.labs.remoteapps.util.http.bigpipe.RequestIdSettingFilter.doFilter(RequestIdSettingFilter.java:22) <+43> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (JWDSendRedirectFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:78) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractCachingFilter.java:33) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractEncodingFilter.java:41) (AbstractHttpFilter.java:31) (PathMatchingEncodingFilter.java:45) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (JiraStartupChecklistFilter.java:74) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (MultiTenantServletFilter.java:91) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:78) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (StandardWrapperValve.java:225) (StandardContextValve.java:123) (AuthenticatorBase.java:472) (StandardHostValve.java:168) (ErrorReportValve.java:98) (StandardEngineValve.java:118) (AccessLogValve.java:927) (CoyoteAdapter.java:407) (AbstractHttp11Processor.java:1001) (AbstractProtocol.java:585) (JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at com.atlassian.jira.rest.v2.issue.TransitionMetaBeanBuilder.getStatusFromStep(TransitionMetaBeanBuilder.java:83) at com.atlassian.jira.rest.v2.issue.TransitionMetaBeanBuilder.build(TransitionMetaBeanBuilder.java:69) at com.atlassian.jira.rest.v2.issue.IssueBeanBuilder.addTransitions(IssueBeanBuilder.java:138) at com.atlassian.jira.rest.v2.issue.IssueBeanBuilder.build(IssueBeanBuilder.java:111) at com.atlassian.jira.rest.v2.issue.IssueResource.getIssue(IssueResource.java:434) {code} h4. Environment The error only occurs when a REST client is used, such as [JIRA REST client|https://marketplace.atlassian.com/plugins/com.atlassian.jira.jira-rest-java-client]. Testing using cURL does not return any error. When Stash is integrated to JIRA, the following message will be displayed when trying to browse JIRA issues linked to the problematic global transition: {noformat} Can't display issues Either you don't have access to view them or they don't exist. Please contact your system administrator if you believe this is incorrect. instead of the integration I was hoping for. {noformat} h4. Workaround * Set a destination step for the affected transition. * Do not set global transition as it only affects global transition. h4. UPDATE Using a cURL command performing GET will return *{{{"errorMessages":["Internal server error"],"errors":{}}}}*.

    Atlassian JIRA | 4 years ago | Chung Park Chan
    com.atlassian.jira.rest.client.RestClientException: Internal server error

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.jersey.api.client.UniformInterfaceException

      Client response status: 500

      at com.sun.jersey.api.client.WebResource.voidHandle()
    2. jersey-client
      WebResource.put
      1. com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:628)
      2. com.sun.jersey.api.client.WebResource.put(WebResource.java:199)
      2 frames
    3. com.atlassian.jira
      JerseyIssueRestClient.update
      1. com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient$4.call(JerseyIssueRestClient.java:232)
      2. com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient$4.call(JerseyIssueRestClient.java:223)
      3. com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:60)
      4. com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.update(JerseyIssueRestClient.java:223)
      4 frames
    4. com.atlassian.connector
      JiraTaskDataHandler.postTaskData
      1. com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$9.call(JiraRestClientAdapter.java:725)
      2. com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$9.call(JiraRestClientAdapter.java:1)
      3. com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:735)
      4. com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.updateIssue(JiraRestClientAdapter.java:722)
      5. com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.updateIssue(JiraClient.java:775)
      6. com.atlassian.connector.eclipse.internal.jira.core.JiraTaskDataHandler.postTaskData(JiraTaskDataHandler.java:1092)
      6 frames
    5. org.eclipse.mylyn
      SubmitTaskJob.run
      1. org.eclipse.mylyn.internal.tasks.core.sync.SubmitTaskJob.run(SubmitTaskJob.java:101)
      1 frame
    6. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame