# MissingMethodException hiding underlying exception

**URL:** <https://discuss.gradle.org/t/missingmethodexception-hiding-underlying-exception/5481>\
**Category:** Old Forum Archive\
**Created:** [January 8, 2013, 7:12pm UTC](https://discuss.gradle.org/t/missingmethodexception-hiding-underlying-exception/5481 "2013-01-08T19:12:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![queshaw](https://avatars.discourse-cdn.com/v4/letter/q/d6d6ee/32.png) [@queshaw](https://discuss.gradle.org/u/queshaw)\
**Post date:** [January 8, 2013, 7:12pm UTC](https://discuss.gradle.org/t/missingmethodexception-hiding-underlying-exception/5481/1 "2013-01-08T19:12:00Z")

</div>

This might be a groovy question. Sorry, if that is the case.

With code like:

def t = new Test() def h = new Handler() t.test(something(h))

Sometimes I get error messages like:

groovy.lang.MissingMethodException: No signature of method test.Test.test() is applicable for argument types: (test.Handler) values: [test.Handler@82eaf9]. Possible solution: test(test.Handler)

That appears to happen because an error occurred somewhere within something.

How do you debug this type of error? A stack trace doesn’t include the actual error. So, I start changing values in places to try to triangulate toward the error. Is there a feature that would allow me to debug this more easily?

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [January 8, 2013, 7:17pm UTC](https://discuss.gradle.org/t/missingmethodexception-hiding-underlying-exception/5481/2 "2013-01-08T19:17:00Z")

</div>

Groovy’s ‘MissingMethodException’ means that no method with the given name exists, or that the method with the given name takes different argument types. Subtle causes include instance/static method mismatch and class loader conflicts. First thing to do is to consult the API docs.

---

<div class="post-metadata">

**Author:** ![queshaw](https://avatars.discourse-cdn.com/v4/letter/q/d6d6ee/32.png) [@queshaw](https://discuss.gradle.org/u/queshaw)\
**Post date:** [January 8, 2013, 8:03pm UTC](https://discuss.gradle.org/t/missingmethodexception-hiding-underlying-exception/5481/3 "2013-01-08T20:03:00Z")

</div>

I should have pointed out more explicitly that the error message is saying that there is no method with that signature and suggest the same signature as a solution. When I have had this type of error where the suggested solution is the same as problem being complained about, the ultimate solution has been something unrelated and the method signature that is the subject of the error message is not changed.

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [January 8, 2013, 8:13pm UTC](https://discuss.gradle.org/t/missingmethodexception-hiding-underlying-exception/5481/4 "2013-01-08T20:13:00Z")

</div>

> I should have pointed out more explicitly that the error message is saying that there is no method with that signature and suggest the same signature as a solution.

I don’t know how that could occur other than due to a class loader conflict.
