Unable to Create an Issue Through the Issue Collector Plugin due to Workflow's Validator
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When creating an issue through the Issue Collector, the process becomes unresponsive and the following exception will appear on the screen:

The following appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
2012-08-21 03:28:13,238 http-8511-3 ERROR noel 208x2201x1 rac1oz 127.0.0.1 /rest/collectors/1.0/template/custom/5aa7b086 [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service
java.lang.NullPointerException
at com.atlassian.jira.collector.plugin.rest.TemplateResource.createIssue(TemplateResource.java:423)
at com.atlassian.jira.collector.plugin.rest.TemplateResource.createCustomIssue(TemplateResource.java:361)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) <+13> (AbstractResourceMethodDispatchProvider.java:205) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (RightHandPathRule.java:147) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537)
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) <+1> (ServletContainer.java:795)
...
Cause
The cause of this problem is due to the configuration of the Workflow's Validators, whereby the user does not have the a specific permission on the Workflow's Validator. To replicate this problem:
Login to JIRA as a user so that the issue collector form will not ask for the name and email. For simplicity sake, the username will be USER1.
Configure the project's workflow and add a validator that USER1 does not have the permission to execute
Assign this workflow to the project that uses this issue collector.
Create an issue through the issue collector and the process will throw an error similar to the above screenshot.
Resolution
Check the workflow's validator on the Create Issue Transition (for the project that uses the Issue Collector) and remove unnecessary validator that would prevent a login user to create an issue.
Bug Ticket: JRASERVER-42813 - Get an AJAX error message when user submit an issue via Issue Collector
Was this helpful?