title: groovy.lang.MissingMethodException: No signature of method: java.lang.String.name() is applicable for argument types: () values: []
body: <p>I am new to this groovy script, as i have requirement to update the java 1.7 to java8 for my project,after upgrading the version both java &amp; groovy then facing issue with the groovy syntax.
  In java 7 it worked without any issues,but in java 8 facing below error .</p>
  <p>The below error is occruing while i am trying to find specific tag element as below :</p>
  <pre><code>def tradeString = msg.&quot;**&quot;.find{it.name() == &quot;m__tradeString&quot;}
  </code></pre>
  <pre><code>groovy.lang.MissingMethodException: No signature of method: java.lang.String.name() is applicable for argument types: () values: []
  Possible solutions: take(int), take(int), any(), any(groovy.lang.Closure), wait(), dump()
  </code></pre>
  <p>Note : in some places name() method is working but other places facing this error</p>
  <p>please help me here.</p>
  <p>Thanks in advance.</p>