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.

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

Solutions on the web77

  • via by Christian Wurbs,
  • via by Sudhakar Ramasamy,
  • 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.

    No Bugmate found.