REST and transitions

Trying to get transitions to work via REST, but no go. I have tried using a datafile also but sae result.
Im using examples right from the help pages.

ths,james


[root@zsms-t01 test]# curl -D- -u jamest:secret -X POST --data "{\"transition\": {\"id\": \"5\"}}" -H "Content-Type: application/json" http://zsms-t01.mizaas.com:7777/rest/api/latest/issue/NTJ-219/transitions?expand=transitions.fields

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

X-AREQUESTID: 1061x3947x1

X-ASEN: SEN-L7080908

Set-Cookie: JSESSIONID=D35643B76E26EDA4B73EA5E3BC8095A0; Path=/; HttpOnly

X-Seraph-LoginReason: OK

Set-Cookie: atlassian.xsrf.token=BQYK-4I1M-ORR5-VI0C|d9bd5504c09db548b51b2c3d3b18146bfe79cbb3|lin; Path=/

X-ASESSIONID: nzhs48

X-AUSERNAME: jamest

Cache-Control: no-cache, no-store, no-transform

X-Content-Type-Options: nosniff

Content-Type: application/json;charset=UTF-8

Transfer-Encoding: chunked

Date: Fri, 08 Jan 2016 23:41:35 GMT

Connection: close

 

{"errorMessages":["Internal server error"],"errors":{}}[root@zsms-t01 test]# 

1 answer

0 vote

Internal server error means something went wrong on the server side - the application logs should tell you what is going there.

Nothing jumps out at me.

==> access_log.2016-01-08 <==
158.85.84.247 1088x5x1 jamest [08/Jan/2016:18:08:17 -0600] "POST /rest/api/latest/issue/NTJ-219/transitions?expand=transitions.fields HTTP/1.1" 500 66 2771 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "17f7mh"

==> catalina.out <==
2016-01-08 18:08:17,220 http-nio-7777-exec-5 ERROR jamest 1088x5x1 17f7mh 158.85.84.247 /rest/api/latest/issue/NTJ-219/transitions [c.a.j.rest.exception.ExceptionInterceptor] Returning internal server error in response
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234)
... 4 filtered
at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:59)
... 1 filtered
at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:43)
... 15 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)
... 1 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)
... 36 filtered
at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65)
... 64 filtered
at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)
... 73 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at com.atlassian.jira.workflow.WorkflowActionsBean.getFieldScreenForView(WorkflowActionsBean.java:61)
at com.atlassian.jira.issue.fields.screen.StandardFieldScreenRendererFactory.getScreenFromAction(StandardFieldScreenRendererFactory.java:64)
at com.atlassian.jira.issue.fields.screen.StandardFieldScreenRendererFactory.createFieldScreenRenderer(StandardFieldScreenRendererFactory.java:58)
at com.atlassian.jira.issue.fields.screen.FieldScreenRendererFactoryImpl.getFieldScreenRenderer(FieldScreenRendererFactoryImpl.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
... 1 filtered
at java.lang.reflect.Method.invoke(Method.java:497)
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30)
at com.sun.proxy.$Proxy184.getFieldScreenRenderer(Unknown Source)
... 3 filtered
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy2230.getFieldScreenRenderer(Unknown Source)
at com.atlassian.jira.rest.v2.issue.TransitionMetaFieldBeanBuilder.<init>(TransitionMetaFieldBeanBuilder.java:40)
at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.getValidFieldsForTransition(IssueInputParametersAssembler.java:577)
at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.buildForTransition(IssueInputParametersAssembler.java:254)
at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeTransitionAssember(IssueInputParametersAssembler.java:132)
at com.atlassian.jira.rest.v2.issue.UpdateIssueResource.transitionIssue(UpdateIssueResource.java:62)
at com.atlassian.jira.rest.v2.issue.IssueResource.doTransition(IssueResource.java:286)
... 209 more

 

No, not a problem, especially as I don't have a good answer!

That's exactly what we needed to see, but I'm afraid it doesn't help. This error has been seen a few times recently on Answers I've read, so I suspect there is a bug in JIRA that people are running into. I would raise this with Atlassian over at https://support.atlassian.com - I think it needs following up by their developers!

Great, thanks for that. I'd have done it, but I don't have the issue (yet), so I couldn't give them the logs and config data they'd need to replicate it!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,307 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot