groovy.lang.GroovyRuntimeException

Ambiguous method overloading for method org.codehaus.groovy.runtime.HandleMetaClass#getMetaMethod. Cannot resolve which method to invoke for {class java.lang.String} due to overlapping prototypes between: {class java.lang.String, class [Ljava.lang.Object;} {class java.lang.String, class [Ljava.lang.Class;}

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 web258

  • via Apache's JIRA Issue Tracker by James Parkin, 1 year ago
    Ambiguous method overloading for method org.codehaus.groovy.runtime.HandleMetaClass#getMetaMethod. Cannot resolve which method to invoke for {class java.lang.String} due to overlapping prototypes between: {class java.lang.String, class [Ljava.lang.Object;} {class java.lang.String, class [Ljava.lang.Class;}
  • via Apache's JIRA Issue Tracker by James Parkin, 1 year ago
    Ambiguous method overloading for method org.codehaus.groovy.runtime.HandleMetaClass#getMetaMethod. Cannot resolve which method to invoke for {class java.lang.String} due to overlapping prototypes between: {class java.lang.String, class [Ljava.lang.Object;} {class java.lang.String, class [Ljava.lang.Class;}
  • Ambiguous method overloading for method org.codehaus.groovy.runtime.HandleMetaClass#getStaticMetaMethod.|Cannot resolve which method to invoke for [class java.lang.String, null] due to overlapping prototypes between:|?[class java.lang.String, class [Ljava.lang.Object;]|?[class java.lang.String, class [Ljava.lang.Class;]
  • Stack trace

    • groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.codehaus.groovy.runtime.HandleMetaClass#getMetaMethod. Cannot resolve which method to invoke for {class java.lang.String} due to overlapping prototypes between: {class java.lang.String, class [Ljava.lang.Object;} {class java.lang.String, class [Ljava.lang.Class;} at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:2866) at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:2819) at groovy.lang.MetaClassImpl.getNormalMethodWithCaching(MetaClassImpl.java:1228) at groovy.lang.MetaClassImpl.getMethodWithCaching(MetaClassImpl.java:1131) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:736) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:719) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:163) at MOPUsingMetaMethod.run(MOPUsingMetaMethod.groovy:4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1061) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:736) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:719) at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:381) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1301) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:710) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:163) at MOPUsingMetaMethod.main(MOPUsingMetaMethod.groovy)

    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

    Once, 4 weeks ago
    2 times, 3 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    5 more bugmates