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;}

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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;}
via Apache's JIRA Issue Tracker by Konstantin Tennhard, 1 year ago
Ambiguous method overloading for method com.sleepycat.dbxml.XmlContainer#putDocument. Cannot resolve which method to invoke for {class java.lang.String, class java.lang.String, class com.sleepycat.dbxml.XmlUpdateContext, null} due to overlapping
via GitHub by brackbk
, 1 month ago
Ambiguous method overloading for method org.springframework.core.io.FileSystemResource#<init>. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.io.File] [class java.lang.String]
via GitHub by ravibhure
, 1 year ago
Ambiguous method overloading for method hudson.plugins.sshslaves.SSHLauncher#<init>. Cannot resolve which method to invoke for [class java.lang.String, class java.lang.Integer, null, null, null, null, null] due to overlapping prototypes between
via GitHub by iheos
, 11 months ago
Ambiguous method overloading for method gov.nist.toolkit.actorfactory.client.SimId#. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class gov.nist.toolkit.sitemanagement.client.SiteSpec] [class java.lang.String]
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 undefined.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 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 undefined.MOPUsingMetaMethod.main(MOPUsingMetaMethod.groovy)

Users with the same issue

Once, 6 months ago
2 times, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.