Simple scripted validator does not work with Issue Collector

PGI IT Admin December 2, 2013

We have 2 simple scripted validators applied to a workflow when you create a new request. One of the validators just checks to make sure that the Priority is set to "Critical" or "High", and the other checks a cascading select to make sure the user puts a value in both the first field and the cascaded field. Works perfect when creating the issue through the JIRA application.

We then created an Issue Collector for that project. Whenever someone trys to submit an issue that fails one or more of those validators, we get a null pointer in the logs and the user gets an error message (and no issue is ever created). The null pointer is as follows. Any help is greatly apprecated!

WARNING: A servlet POST request, to the URI https://mycompany.com/rest/collectors/1.0/template/custom/e15c6dfa, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
2013-12-02 10:08:11,447 ajp-bio-8009-exec-185 ERROR user 608x35538x1 emgkj2 10.1.5.122 /rest/collectors/1.0/template/custom/e15c6dfa [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(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
.......

1 answer

0 votes
san360 March 18, 2015

Any luck for the above issue?

Suggest an answer

Log in or Sign up to answer