It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA NullPointerException when switching Workflow scheme

Loredana Jul 31, 2013

Hi all,

I have a problem since I imported a workflow as xml and assigned it to a production project. The workflow itself worked fine on my test system and also looked fine as a diagramm in production.

I noticed in production that in the Workflow Text-Modus 3 Step-Names are not linked with the proper Status and 2 don't have any:

Now, although I changed this missfits, I can't assign the new Workflow (Workflow-Scheme) or the old one to the Project, since I keep getting the same java.lang.NullPointerException:


Stack Trace: [hide]

	at com.atlassian.jira.web.action.admin.workflow.scheme.SelectProjectWorkflowSchemeStep2.getSelectListName(
	at com.atlassian.jira.web.action.admin.workflow.scheme.SelectProjectWorkflowSchemeStep2.addMigrationMappings(
	at com.atlassian.jira.web.action.admin.workflow.scheme.SelectProjectWorkflowSchemeStep2.doExecute(
	at webwork.action.ActionSupport.execute(
	at com.atlassian.jira.action.JiraActionSupport.execute(
	at webwork.interceptor.DefaultInterceptorChain.proceed(
	at webwork.interceptor.NestedInterceptorChain.proceed(
	at webwork.interceptor.ChainedInterceptor.intercept(
	at webwork.interceptor.DefaultInterceptorChain.proceed(
	at webwork.dispatcher.GenericDispatcher.executeAction(
	at webwork.dispatcher.GenericDispatcher.executeAction(
	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(
	at javax.servlet.http.HttpServlet.service(

Can anyone help please?
Many thanks!

4 answers

1 accepted

1 vote
Answer accepted
Loredana Jul 31, 2013

Problem solved:

Two steps had no linked statuses, therefore the nullpointer exception.

I created two temporary statuses (Administration >> Issue Settings >> Statuses > Add New Status). These new statuses automatically got the id's that were missing, and that the pointer was pointing to. After that the exception was gone and I could replace the scheme.

0 votes
Rambanam Prasad Jul 31, 2013

try with the jelly script

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log">
  <!-- Grab managers. Do it using ComponentAccessor now which gives better compatibility in Jira 5! r -->
  <core:invokeStatic className="com.atlassian.jira.component.ComponentAccessor" method="getWorkflowSchemeManager" var="workflowSchemeManager"/>
  <core:invokeStatic className="com.atlassian.jira.component.ComponentAccessor" method="getProjectManager" var="projectManager"/>
  <!-- Get the project with key "MYPROJECT" using ProjectManager -->
  <core:invoke on="${projectManager}" method="getProjectObjByKey" var="project">
    <core:arg type="java.lang.String" value="MYPROJECT"/>
<log:warn>Project ${project} found</log:warn>
  <!-- Get the workflow scheme "myScheme" -->
  <core:invoke on="${workflowSchemeManager}" method="getSchemeObject" var="scheme">
    <core:arg type="java.lang.String" value="myScheme"/>
<log:warn>Scheme ${scheme} found</log:warn>
  <!-- Assign scheme to project -->
  <core:invoke on="${workflowSchemeManager}" method="addSchemeToProject" >
    <core:arg  value="${project}"/>
    <core:arg  value="${scheme}" />

check this

0 votes
Loredana Jul 31, 2013

The Jelly Script didn't work:

Could not run script.
Extra Information: [hide]

Error: <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log">
Exception: org.apache.commons.jelly.JellyTagException: null:21:0: No such accessible method: addSchemeToProject() on object: com.atlassian.jira.workflow.DefaultWorkflowSchemeManager
Rambanam Prasad Jul 31, 2013

on which version of jira you tried?

Stefan Niedermann Nov 27, 2013

i tried the same jelly script and get the same error (jira 5.1.8). do you have any information, how i can assign a scheme with jellyscript in my jira version?


0 votes
Loredana Jul 31, 2013

Sorry, we have v5.2.6

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Here’s what we’re doing to make Jira Cloud faster

Hello Community 🤗 I’m Nikhil, a Product Manager on the Jira Cloud team working on performance improvements. Performance is an ongoing journey and we continue to invest heavily in it. We under...

106 views 0 17
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you