Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-420

ClassNotFoundException : com.onresolve.jira.groovy.canned.workflow.postfunctions

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.0.4, 2.0.5
    • Fix Version/s: 2.0.6
    • Component/s: None
    • Labels:
    • Environment:

      OSX, Jira v5.0.3#729 (but also older Versions like 5.0-beta1)

    • Critical Points:
      0

      Description

      Hi,

      I'm developing a jira-plugin and run jira with atlas-run. I installed the Script Runner Plugin with the Jira Plugin-Manager in the Admin Area. When I try to add a Script Runnter Postfunction the following Exception appears:

      An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getCannedScripts' in class com.onresolve.jira.groovy.CannedScriptRunner threw exception class java.lang.ClassNotFoundException : com.onresolve.jira.groovy.canned.workflow.postfunctions (/Users/XZ/src/main/resources/com/onresolve/jira/groovy/canned/workflow/postfunctions) does not appear to be a valid package at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:251) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256)

      Opening 'Builtin Scripts' or 'Script Listeners' also lead to a ClassNotFoundException:

      Invocation of method 'getCannedScripts' in class com.onresolve.jira.groovy.CannedScriptRunner threw exception class java.lang.ClassNotFoundException : com.onresolve.jira.groovy.canned

      Running Groovy Scripts on the 'Script Runner' Page works fine.

      A few weeks ago I tested exactly the same with an older Script Runner Version during the Jira 5.0 Beta.

        Attachments

          Activity

            People

            Assignee:
            jechlin Jamie Echlin
            Reporter:
            conro conro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: