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

JIRA | conro | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-122].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}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.

    JIRA | 5 years ago | conro
    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
  2. 0

    User Picker From Project Role - Issue Alternative Assignee - User Picker From Project Role - Issue Alternative Assignee - Confluence

    atlassian.net | 1 month ago
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUserListForRole' in class com.iamhuy.jira.plugin.customfields.UserPickerProjectRole threw exception class java.lang.NullPointerException : null
  3. 0

    Velocity Tempalte debugging and Catch exceptions

    Stack Overflow | 3 years ago | sunleo
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'get' in class java.util.ArrayList threw exception class java.lang.IndexOutOfBoundsException : Index: 1, Size: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [testng-users] how to use testng and reportng with ant

    Google Groups | 6 years ago | ubuntuuser
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class org.uncommons.reportng.ReportMetadata threw exception class java.net.UnknownHostException : mobiusQA: mobiusQA at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
  6. 0

    GitHub comment 121#139469434

    GitHub | 1 year ago | idoiamurua
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'combine' in class eu.aliada.rdfizer.pipeline.format.xml.OXPath threw exception java.lang.Error: Unresolved compilation problems: subfield cannot be resolved to a variable Syntax error on tokens, ( expected instead i cannot be resolved to a variable The type of the expression must be an array type but it resolved to int Syntax error on token ";", [ expected i cannot be resolved to a variable Syntax error, insert "]" to complete ArrayAccess Syntax error, insert ")" to complete Expression Syntax error, insert ")" to complete VariableInitializer i cannot be resolved to a variable Syntax error on token ")", ; expected i cannot be resolved to a variable i cannot be resolved to a variable subfield cannot be resolved Syntax error on tokens, Expression expected instead Syntax error on token ",", . expected Syntax error on token "-", -- expected at marcxml.frbr.n3.vm[line 86, column 18]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Apache Velocity
      Template.merge
      1. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:251)
      2. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      3. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
      4. org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51)
      5. org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95)
      6. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      7. org.apache.velocity.Template.merge(Template.java:256)
      7 frames