Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira server and Bitbucket Cloud integration, problem with workflow triggers.

Tomek June 13, 2019
I testing integration Jira with Bitbucket. I have Jira software 8 and Bitbucket Cloud. I add triggers to workflow.First trigger transiting issue to In Progress status when branch is created and this works. But trigger for accept or reject and pułk request created doesn't transiting issue. In atlassian-jira.log i find this error
java.lang.NullPointerException username
Does anybody had similar problem.

1 answer

0 votes
Jimmy Seddon
Community Champion
June 14, 2019

Hi @Tomek,

While I haven't encountered that specific error before I have seen something similar when we made one of the user fields in our workflow mandatory on state transisiton and the trigger we were using at the time was unable to set a new user and therefore it failed to transition the issue.  Just as a thought you don't have any mandatory fields setup in this particular transistion that might be affecting this do you?

I hope that helps!

-James

Tomek June 14, 2019

Hi @Jimmy Seddon

No, I doesn't have any mandatory fields, postfunctions, validators, etc. on this transitions.

Tomek June 15, 2019

@Jimmy Seddon 

Here is my log file 

2019-06-15 18:01:13,556 DVCSConnector.EventService:thread-1 ERROR ServiceRunner [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [PullRequestUpdatedEvent[pullRequestBeforeUp$
java.lang.RuntimeException: username. Listener: com.atlassian.jira.plugin.devstatus.triggers.DvcsWorkflowEventBridge event: com.atlassian.jira.plugins.dvcs.event.PullRequestUpdatedEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:55)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.lambda$null$0(AsynchronousAbleEventDispatcher.java:37)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:85)
at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:200)
at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:115)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
at com.sun.proxy.$Proxy125.publish(Unknown Source)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
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:185)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
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:185)
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy3024.publish(Unknown Source)
at com.atlassian.jira.plugins.dvcs.event.EventServiceImpl.lambda$doDispatchEvents$1(EventServiceImpl.java:121)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
Jimmy Seddon
Community Champion
June 17, 2019

Hi @Tomek,

just from searching around based on the error in your logs, you might want/need to speak with support at this point as you don't have direct access to see what is happening on the Bitbucket side of things.

-James

Suggest an answer

Log in or Sign up to answer