Forums

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

NullPointerException at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.processValueToBeAssigned

Helene Lund Engebø
Contributor
January 18, 2015

I am using the "Copy a parsed text to a field" post-function of the JIRA Workflow Toolbox plugin in one of my workflows. The target field is a custom field of type Label. 

However the transition fails with a NullPointerException:

2015-01-18 15:55:56,824 http-apr-8081-exec-21 ERROR admin 955x990x1 eu5bu6 109.189.143.99,192.168.105.7 /secure/CommentAssignIssue.jspa [atlassian.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 5 from workflow 33703 on issue 'VE-15'
java.lang.NullPointerException
    at java.util.StringTokenizer.<init>(Unknown Source)
    at java.util.StringTokenizer.<init>(Unknown Source)
    at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.processValueToBeAssigned(GeneralizedField.java:3468)
    at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:2337)
    at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:2290)
    at com.fca.jira.plugins.workflowToolbox.CopyParsedTextFunction.writeParsedText(CopyParsedTextFunction.java:89)
    at com.fca.jira.plugins.workflowToolbox.CopyParsedTextFunction.execute(CopyParsedTextFunction.java:71)
    at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
    at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
    at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:564)
    at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:957)
    at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:912)
    at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:450)
    at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:192) <+1> (ActionSupport.java:165)

 

If I change my target field to be the system JIRA Labels field (00080) instead of my custom field, the transition is successful, and the Labels field is set correctly. 

Any ideas as to what I am doing wrong?

The following image shows the complete list of post-functions for this transition:

image2015-1-18 17:0:55.png

Post-function 2 is the one that causes the NullPointerException. Post-function 1 works just fine.

Thanks for any help!

4 answers

1 accepted

0 votes
Answer accepted
Fidel Castro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2015

Helene,

That is a bug. It was fixed in JIRA Workflow Toolbox 2.1.21. Currently, the most recent version of the plugin is 2.1.25. I recommend you to upgrade that version, since it provides many improvements and bug fixes.

If you need support about the plugin, you can create an issue at http://support.workflowarts.com

Regards,

Fidel

0 votes
Helene Lund Engebø
Contributor
January 18, 2015

I see that version 2.1.24 contains the following in the release notes:

Labels custom fields rendering was failing.

So I tried to upgrade to the latest version, and that resolved the problem. 

Should have checked that before!

But thanks for the incredibly fast reply smile

0 votes
Helene Lund Engebø
Contributor
January 18, 2015

Ah, sorry, forgot to include that. 

JIRA version 6.2.7

JIRA workflow toolbox version 2.1.20

0 votes
Fidel Castro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2015

Hi Helene,

Which versions of JIRA Workflow Toolbox, and JIRA are you using?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events