[
https://issues.apache.org/jira/browse/GROOVY-7904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dwarakesh updated GROOVY-7904:
------------------------------
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)
was:
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
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)
> groovy.lang.MissingMethodException
> ----------------------------------
>
> Key: GROOVY-7904
> URL: https://issues.apache.org/jira/browse/GROOVY-7904
> Project: Groovy
> Issue Type: Bug
> Components: groovy-jdk
> Reporter: Dwarakesh
>
> 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)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)