Error log related to Scripted jql function

Tsol
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2013

Hi everybody,

i'm getting the following error in log file

ERROR tsol 860x182118x2 l54c9w 10.0.9.115,10.0.8.55 /issues/ [jira.groovy.jql.ScriptedJqlFunction] Function scriptedFunction didn't have a data type, returning Issue. Possibly plugin not started yet

I'm getting the error quite often.

I don't know for what reason i'm getting this error.

I tried to reproduce on my own by doing some actions but without luck.

Should i change something on the plugin?

Cheers,

Kostas

2 answers

1 accepted

2 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2013

Kostas, this is an issue that I am working on. I don't think it means there is any problem but yes it it's annoying.

You could set the log level to fatal for that class if you wanted, but I will try to get a fix for this soon.

Tsol
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2013

Thanks a lot Jamie,

Cheers,

Kostas

angel January 19, 2013

Same problem here (JIRA 5.1.5), initially the scripted jql functions didn't work at all for me returning this particular error on the log. When I try the scripted jql function from the preview page they work alright, but when I try to use them on the Issue Navigator's JQL search they refuse to work.

And the funny part now, after leaving the server to rest for one night, I return, login again and voila the functions work. The early indicator was that when I was composing the JQL after typing the "in" operator I got the drop-down with available functions, which was not the case before. I don't remember doning anything in particular to make it work, only that I played around with the previews and tried to create one function from scratch.

Cheers,

Aggelos

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2013

Hi Aggelos... I'm going to try to reproduce this... unfortunately this is only a problem I've seen in production systems. What version do you have?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2013

BTW disabled and enabling the script runner plugin should remove the error and get things working, but only until the next time this unexpected thing happens that I can't work out atm...

angel January 20, 2013

Running 2.1-BETA-4. BTW, disabling individual JQL functions doesn't work, can you reproduce this?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2013

Doesn't work in what sense? I mean if you disable and enable the entire plugin from manage plugins, that should get everything working? I'm still working on reproducing the causes of the log message.

angel January 20, 2013

In secure/admin/groovy/ViewScriptedJqlFunctions!default.jspa there is a "Disable" action for each function, when I press it nothing happens, I mean I would expect that the "Enable" will be active as a result, but the UI stays the same and the functions is still available to use when searching.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2013

OK. Can you check the logs for errors? Most likely something is failing. If so could you create a bug at https://studio.plugins.atlassian.com/browse/GRV.

angel January 20, 2013

Sorry Jamie, nothing special on the logs. Extra logging will help?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2013

Still investigating this in another instance, will get back to you.

1 vote
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2013

What's the return value of the function? (I am just reading the log you have given and speaking)

Suggest an answer

Log in or Sign up to answer