groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Version Hell
Date Tue, 16 May 2017 07:46:58 GMT
On 16.05.2017 04:55, russellr wrote:
[...]
> Here are the relevant versions that *used* to work:
>         <cucumber-jvm.version>1.1.5</cucumber-jvm.version>
>         <gherkin.version>2.12.2</gherkin.version>
>         <groovy.version>2.1.6</groovy.version>
>         <geb.version>0.9.2</geb.version>
>         <selenium.version>2.38.0</selenium.version>
>
> If I upgrade Geb to 1.1.1, I get:
>
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError:
> org/codehaus/groovy/runtime/typehandling/ShortTypeHandling

yes, this came later in, with bytecode directly referencing the class.

> If I *then* upgrade Groovy to 2.4.11 or later I get:
>
> java.lang.StackOverflowError
>         at java.lang.ThreadLocal.get(ThreadLocal.java:143)
>         at
> java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:426)
>         at
> java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1340)
>         at
> java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:883)
>         at
> groovy.lang.ExpandoMetaClass.checkInitalised(ExpandoMetaClass.java:837)
>
> The StackOverflowError appears to be triggered by a simple "Given":
> Given(~'I am on the reference page for (.+)') { String path ->
> }

how about the suggested Groovy 2.4.7? To make something out of the 
Stackoverflow error, I would need a bit more fodder.

bye Jochen

Mime
View raw message