You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/02/21 03:51:01 UTC

[jira] [Closed] (GROOVY-9390) groovysh 3.0.0 not working with jdk 11.0.6

     [ https://issues.apache.org/jira/browse/GROOVY-9390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-9390.
-----------------------------

> groovysh 3.0.0 not working with jdk 11.0.6
> ------------------------------------------
>
>                 Key: GROOVY-9390
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9390
>             Project: Groovy
>          Issue Type: Bug
>          Components: Groovysh
>    Affects Versions: 3.0.0
>         Environment: Windows 10 and Linux
> Groovy Version: 3.0.0 JVM: 11.0.6 Vendor: Oracle Corporation OS: Windows 10
> java version "11.0.6" 2020-01-14 LTS
> Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)
>            Reporter: Michael Glockenstein
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 3.0.1
>
>
> c:\>groovysh
> java.lang.reflect.InvocationTargetException
>  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>  at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:111)
>  at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:129)
> Caused by: java.lang.IllegalAccessException: class org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite cannot access class jdk.internal.jrtfs.JrtFileSystem (in module java.base) because module java.base does not export jdk.internal.jrtfs to unnamed module @20d7d6fb
>  at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
>  at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:558)
>  at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
>  at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSite.invoke(PojoMetaMethodSite.java:191)
>  at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
>  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>  at Script1.run(Script1.groovy:41)
>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:431)
>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:465)
>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:440)
>  at org.apache.groovy.groovysh.util.PackageHelperImpl.getPackagesAndClassesFromJigsaw(PackageHelperImpl.groovy:153)
>  at org.apache.groovy.groovysh.util.PackageHelperImpl.getPackages(PackageHelperImpl.groovy:127)
>  at org.apache.groovy.groovysh.util.PackageHelperImpl.initializePackages(PackageHelperImpl.groovy:64)
>  at org.apache.groovy.groovysh.util.PackageHelperImpl.<init>(PackageHelperImpl.groovy:53)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
>  at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:72)
>  at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
>  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:237)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:249)
>  at org.apache.groovy.groovysh.Groovysh.<init>(Groovysh.groovy:113)
>  at org.apache.groovy.groovysh.Groovysh.<init>(Groovysh.groovy:102)
>  at org.apache.groovy.groovysh.Groovysh.<init>(Groovysh.groovy:142)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
>  at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:72)
>  at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
>  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:237)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:257)
>  at org.apache.groovy.groovysh.Main.<init>(Main.groovy:66)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
>  at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:72)
>  at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
>  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:237)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:257)
>  at org.apache.groovy.groovysh.Main.main(Main.groovy:155)
>  ... 6 more



--
This message was sent by Atlassian Jira
(v8.3.4#803005)