...just need to send a mail to find the cause....

the jvm uses -Xverify:none (for jruby/asciidoctor), this lead to the issue

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le ven. 13 déc. 2019 à 09:39, Romain Manni-Bucau <rmannibu...@gmail.com> a
écrit :

> Hi Daniel,
>
> Wonder if it can be the VMPlugin which fails - it is silent when java 9/8
> does not load and java 7. Weird thing is I have the same JVM locally (Java
> version: 1.8.0_202, vendor: Azul Systems, Inc.) and build passes.
>
> The failing constructor call is: public
> java_io_File$toPath(org.codehaus.groovy.runtime.callsite.CallSite,groovy.lang.MetaClassImpl,groovy.lang.MetaMethod,java.lang.Class[],java.lang.reflect.Constructor)
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github
> <https://github.com/rmannibucau> | LinkedIn
> <https://www.linkedin.com/in/rmannibucau> | Book
> <https://www.packtpub.com/application-development/java-ee-8-high-performance>
>
>
> Le ven. 13 déc. 2019 à 08:24, Daniel.Sun <sun...@apache.org> a écrit :
>
>> Also, `ArrayIndexOutOfBoundsException` should be able to be caught by the
>> try-catch block and ignored, but it is thrown as your stack trace shown...
>> It's hard to address the issue by looking into the error log...
>>
>> ```
>>                 try {
>>                     return (CallSite) constr.newInstance(site, metaClass,
>> this, params, constr);
>>                 } catch (Error e) {
>>                     skipCompiled=true;
>>                     throw e;
>>                 } catch (Throwable e) {
>>                     skipCompiled=true;
>>                 }
>> ```
>> (
>>
>> https://github.com/apache/groovy/blob/GROOVY_3_0_0_RC_2/src/main/java/org/codehaus/groovy/reflection/CachedMethod.java#L295-L302
>> )
>>
>>
>> Caused by: java.lang.ArrayIndexOutOfBoundsException: -844304512
>>     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.<clinit>
>> (PojoMetaMethodSite.java)
>>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native
>> Method)
>>     at sun.reflect.NativeConstructorAccessorImpl.newInstance
>> (NativeConstructorAccessorImpl.java:62)
>>     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
>> (DelegatingConstructorAccessorImpl.java:45)
>>     at java.lang.reflect.Constructor.newInstance (Constructor.java:423)
>>     at
>> org.codehaus.groovy.reflection.CachedMethod.createPojoMetaMethodSite
>> (CachedMethod.java:296)
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> -----
>> Apache Groovy committer & PMC member
>> Blog: http://blog.sunlan.me
>> Twitter: @daniel_sun
>>
>> --
>> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>>
>

Reply via email to