Hello, this question is for Jamie Echlin or for groovy community:
When I' trying to run a script the following error appeared:
2013-02-28 00:17:47,478 ajp-127.0.0.1-8101-6 ERROR user 17x32515x1 1r787tl 68.164.136.210 /secure/WorkflowUIDispatcher.jspa [onresolve.jira.groovy.GroovyRunner] The script failed : javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: inversion for class: com.onresolve.jira.groovy.canned.workflow.postfunctionspackage.Script26 2013-02-28 00:17:47,478 ajp-127.0.0.1-8101-6 ERROR user 17x32515x1 1r787tl 68.164.136.210 /secure/WorkflowUIDispatcher.jspa [onresolve.jira.groovy.GroovyFunctionPlugin] Error executing post-function javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: inversion for class: com.onresolve.jira.groovy.canned.workflow.postfunctionspackage.Script26
This is for just one particular script, which its first line has to import the package.
This is my first lines of the script
package com.onresolve.jira.groovy.canned.workflow.postfunctionspackage <-- This the line that may cause the problem import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.MutableIssue import com.atlassian.crowd.embedded.api.User import org.ofbiz.core.entity.GenericValue import org.apache.log4j.Category // Defninition of the component manager classes def componentManager def customFieldManager def parentIssueFactory def jiraAuthenticationContext def parentIssueManager def subtaskManager
The specification are the following
JIRA 5.0.6
groovyscript 2.0.6
Thanks
I don't think the package is the problem. Is there some reference to "inversion" in your code? There is the problem the error message is pointing to.
Henning
Hi Henning:
I don't think that there is any inversion in my code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm referring to this part of the error message "MissingPropertyException: No such property: inversion for class: com.onresolve.jira.groovy.canned.workflow.postfunctionspackage.Script26". This error says, you try to access a property "inversion" in your code. For my adapted post functions, the first line is
package com.onresolve.jira.groovy.canned.workflow.postfunctions
and this works without a problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question: If I put one groovy script in one transition and then another script in another transtition, does it affect the inversion?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I don't know about what "inversion" you're talking. It's not a property I know of, it's only a word I see in your error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's fine. thanks
However, if I set a groovy script in a transition. And then set another script in another transition does it affect the second script by running this type of error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No that wil be fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Hello, this question is for Jamie Echlin"
Ha! I like it Jamie get some special questions addressed just to him :-) .. should make that a tag!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.