I'm just starting with groovy. This error looks basic. but i don't seem to get through this. Appreciate any help in guiding me through the right direction
I'm defining a string like below and passing it to testSender method
def line = "5 1 -81.42 Ido1"
testSender(line.toString())
Definition of testSender method
def testSender(line){
try {
println line
} catch(e) {
println e.printStackTrace()
}
}
When I run this, getting this error
groovy.lang.MissingMethodException:
No signature of method: GroovySQLQuery$_main_closure1.testSender()
is applicable for argument types: (java.lang.String) values: [5 1 -81.42 Ido1]
GroovySQLQuery$_main_closure1.testSender(). WhyGroovySQLQueryis referred fortestSender()where testSender is just a test method which you implemented. - dmahapatro