Massive error when I try to add a workflow validator to a transition

I had a recurring problem where users were getting obtuse errors when trying to transition issues. The core problem was that the workflow transition required a comment but they weren't providing one. The resulting error message didn't make this clear. I was enforcing the required comment by adding the Comment Required Validator to the workflow. This worked fine with Jira 4.4.3. After I upgraded to 5.1.8 I started getting popup errors.

Steps to reproduce:

  1. I created a draft of the workflow and opened the specific transition.
  2. I deleted the validator from the transition.
  3. I clicked Add a new validator to check the input parameters before this transition is executed.
  4. I selected Comment Required Validator and clicked Add.
  5. Result: I got a screen prompting me to add Parameters To Validator. No errors yet.
  6. I clicked Add and got an error screen. The URL of the screen was [http://server.company.com/secure/admin/workflows/AddWorkflowTransitionValidatorParams.jspa].

The error screen displays:

Cause:

java.lang.IllegalArgumentException: Cannot find expected argument 'errorMessage' in parameters.

Stack Trace: hide

java.lang.IllegalArgumentException: Cannot find expected argument 'errorMessage' in parameters.

The error message in the logfile is: 2012-11-26 18:29:56,594 http-8080-57 ERROR 500ErrorPage.jsp Exception caught in 500 page Cannot find expected argument 'errorMessage' in parameters. java.lang.IllegalArgumentException: Cannot find expected argument 'errorMessage' in parameters.

This is especially frustrating because the error seems to be upstream of the actual problem, so I can't see the errorMessage that's missing and use that to debug the core problem.

1 answer

1 accepted

Damn and blast. No sooner did I post my question than I found my answer. I forgot to upgrade the Jira Misc Workflow Extensions plugin when I upgraded Jira. Upgrading to v2.5.4 solved my problem. D'oh!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

76 views 0 11
Read article

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