groovy.lang.MissingMethodException: No signature of method: test.service.PersonServiceGroovy.run() is applicable for argument types: () values: [] Possible solutions: grep(), dump(), find(), any(), print(java.io.PrintWriter), grep(java.lang.Object)

Spring JIRA | Wujek | 4 years ago
  1. 0

    Attached a simple Groovy 2.1.0 and Gradle 1.4 project. Introducing types into Java classes works fine, but into Groovy classes does not, although the bean can be cast to the introduced interface type (Runnable in this case). The exception is: {quote} Exception in thread "main" groovy.lang.MissingMethodException: No signature of method: test.service.PersonServiceGroovy.run() is applicable for argument types: () values: [] Possible solutions: grep(), dump(), find(), any(), print(java.io.PrintWriter), grep(java.lang.Object) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:51) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at Main.run(Main.groovy:8) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:848) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831) at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:407) at org.codehaus.groovy.runtime.InvokerHelper$runScript.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) at Main.main(Main.groovy) {quote}

    Spring JIRA | 4 years ago | Wujek
    groovy.lang.MissingMethodException: No signature of method: test.service.PersonServiceGroovy.run() is applicable for argument types: () values: [] Possible solutions: grep(), dump(), find(), any(), print(java.io.PrintWriter), grep(java.lang.Object)
  2. 0

    Attached a simple Groovy 2.1.0 and Gradle 1.4 project. Introducing types into Java classes works fine, but into Groovy classes does not, although the bean can be cast to the introduced interface type (Runnable in this case). The exception is: {quote} Exception in thread "main" groovy.lang.MissingMethodException: No signature of method: test.service.PersonServiceGroovy.run() is applicable for argument types: () values: [] Possible solutions: grep(), dump(), find(), any(), print(java.io.PrintWriter), grep(java.lang.Object) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:51) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at Main.run(Main.groovy:8) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:848) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831) at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:407) at org.codehaus.groovy.runtime.InvokerHelper$runScript.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) at Main.main(Main.groovy) {quote}

    Spring JIRA | 4 years ago | Wujek
    groovy.lang.MissingMethodException: No signature of method: test.service.PersonServiceGroovy.run() is applicable for argument types: () values: [] Possible solutions: grep(), dump(), find(), any(), print(java.io.PrintWriter), grep(java.lang.Object)
  3. 0

    MissingMethodException when stubbing argumentless method

    GitHub | 4 years ago | l15k4
    groovy.lang.MissingMethodException: No signature of method: com.fg.cez.zpstava.rss.db.AdamActivityDao.queryForAllRemoteUrls() is applicable for argument types: () values: []
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RestApiErrors annotation return MissingMethodException

    GitHub | 3 years ago | thagul
    groovy.lang.MissingMethodException: No signature of method: static org.jsondoc.core.pojo.ApiErrorDoc.buildFromAnnotation() is applicable for argument types: (com.sun.proxy.$Proxy39) values: [@org.restapidoc.annotation.RestApiErrors(apierrors=[@org.restapidoc.annotation.RestApiError(description=The book was not found!, code=404)])] Possible solutions: buildFromAnnotation(org.jsondoc.core.annotation.ApiErrors)
  6. 0

    groovy.lang.MissingMethodException: No signature of method: java.util.LinkedHashMap.version() is applicable for argument types: ()

    GitHub | 4 years ago | codeconsole
    groovy.lang.MissingMethodException: No signature of method: java.util.LinkedHashMap.version() is applicable for argument types: () values: [] Possible solutions: size(), size(), iterator(), every()

  1. rlovtangen 2 times, last 6 days ago
  2. musketyr 3 times, last 1 month ago
  3. Luka 1 times, last 2 months ago
  4. Cafecanudo 35 times, last 4 months ago
  5. mortalman7 2 times, last 5 months ago
1 more registered users
10 unregistered visitors
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. groovy.lang.MissingMethodException

    No signature of method: test.service.PersonServiceGroovy.run() is applicable for argument types: () values: [] Possible solutions: grep(), dump(), find(), any(), print(java.io.PrintWriter), grep(java.lang.Object)

    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap()
  2. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
    2. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:51)
    3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    5 frames
  3. Unknown
    Main.run
    1. Main.run(Main.groovy:8)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  5. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
    5. org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:848)
    6. org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831)
    7. org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:407)
    8. org.codehaus.groovy.runtime.InvokerHelper$runScript.call(Unknown Source)
    9. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    10. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    11. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
    11 frames
  6. Unknown
    Main.main
    1. Main.main(Main.groovy)
    1 frame