org.apache.velocity.exception.MethodInvocationException

Invocation of method 'getRealVelocityParameters' in class com.onresolve.jira.groovy.GroovyCustomField threw exception groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method $Proxy79#hasPermission. Cannot resolve which method to invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web572

  • via JIRA by Christian Wurbs, 9 months ago
    invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59]
  • via JIRA by Kevin Marks, 9 months ago
    Invocation of method 'getAllConfigs' in class com.onresolve.jira.groovy.ViewBehaviours threw exception org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'MarksK(marksk)' with class
  • via Atlassian JIRA by Ian Dick, 7 months ago
    Invocation of method 'getValueFromIssue' in class com.atlassian.greenhopper.customfield.epiclink.EpicLinkCFType threw exception com.atlassian.cache.CacheException: java.lang.NullPointerException at com.pyxis.greenhopper.jira:gh-epic-link/templates/greenhopper/jira/customfield/epiclink/edit-epiclink.vm[line 35, column 57]
  • Stack trace

    • org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRealVelocityParameters' in class com.onresolve.jira.groovy.GroovyCustomField threw exception groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method $Proxy79#hasPermission. Cannot resolve which method to invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:155) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.