title: Groovy : groovy.lang.MissingMethodException: No signature of method
body: <p>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</p>
  
  <p>I'm defining a string like below and passing it to testSender method</p>
  
  <pre><code>def line = "5 1 -81.42 Ido1"
  testSender(line.toString())
  </code></pre>
  
  <p>Definition of testSender method</p>
  
  <pre><code>def testSender(line){
       try {
           println line  
       } catch(e) {
           println e.printStackTrace()
       }
  }
  </code></pre>
  
  <p>When I run this, getting this error</p>
  
  <pre><code>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]
  </code></pre>