It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Simple scripted validator does not work with Issue Collector

PGI IT Admin Dec 02, 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
Sanjay Singh Mar 18, 2015

Any luck for the above issue?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

790 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you