Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7904

groovy.lang.MissingMethodException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.3.3, 2.3.10
    • None
    • groovy-jdk
    • None

    Description

      I have upgraded the groovy jar from 1.5 to 2.3.3 in order to support Java 8. When running my application I am getting the below error and I have tried using the below possible solutions as well. But still getting the same error with different possible solutions.

      Can some one help me on this and let me know if there is any issue with the upgraded groovy jar 2.3.3

      Code:

      ================================================
      def tickets = row.'**'.find

      { it.name() == 'ITT_TICKETS' }

      =============================================

      ERROR:
      Possible solutions: take(int), any(), any(groovy.lang.Closure), wait(), size(), size()
      MIME-Version: 1.0
      Content-Type: text/plain; charset=us-ascii
      Content-Transfer-Encoding: quoted-printable

      Java Stack Trace:
      groovy.lang.MissingMethodException: No signature of method: java.lang.String.name() is applicable for argument types: () values: [] Possible solutions: take(int), any(), any(groovy.lang.Closure), wait(), siz= e(), size() =09at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:56)
      at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
      at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)

      Attachments

        Activity

          People

            Unassigned Unassigned
            dwarak Dwarakesh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: