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:
- I created a draft of the workflow and opened the specific transition.
- I deleted the validator from the transition.
- I clicked Add a new validator to check the input parameters before this transition is executed.
- I selected Comment Required Validator and clicked Add.
- Result: I got a screen prompting me to add Parameters To Validator. No errors yet.
- 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.