I can run it in 2.6 by adding these to the JVM
arguments: --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED

I haven't had a chance to try with 2.7 yet, I would have expected it to
work without these, though. Is this going to be addressed in 2.8, maybe?


On Mon, Jan 7, 2019 at 6:44 AM ignite_user2016 <[email protected]>
wrote:

> I am running Ignite 2.7 on JDK 11 but getting following error -
>
> c:\apache-ignite-2.7.0-bin\bin>ignite.bat
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.apache.ignite.internal.util.GridUnsafe$2
> (file:/C:/apache-ignite-2.7.0-bin/libs/ignite-core-2.7.0.jar) to field
> java.nio.Buffer.address
> WARNING: Please consider reporting this to the maintainers of
> org.apache.ignite.internal.util.GridUnsafe$2
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at
> org.apache.ignite.internal.util.IgniteUtils.<clinit>(IgniteUtils.java:795)
>         at
>
> org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305)
>         at
>
> org.apache.ignite.internal.IgniteVersionUtils.<clinit>(IgniteVersionUtils.java:71)
>         at
>
> org.apache.ignite.startup.cmdline.CommandLineStartup.<clinit>(CommandLineStartup.java:99)
> Caused by: java.lang.RuntimeException: jdk.internal.misc.JavaNioAccess
> class
> is unavailable.
>         at
>
> org.apache.ignite.internal.util.GridUnsafe.javaNioAccessObject(GridUnsafe.java:1453)
>         at
> org.apache.ignite.internal.util.GridUnsafe.<clinit>(GridUnsafe.java:112)
>         ... 4 more
> Caused by: java.lang.IllegalAccessException: class
> org.apache.ignite.internal.util.GridUnsafe cannot access class
> jdk.internal.misc.SharedSecrets (in module java.base) because module
> java.base does not export jdk.internal.misc to unnamed module @689604d9
>         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.apache.ignite.internal.util.GridUnsafe.javaNioAccessObject(GridUnsafe.java:1450)
>         ... 5 more
> Press any key to continue . . .
>
> c:\apache-ignite-2.7.0-bin\bin>java -version
> java version "11.0.1" 2018-10-16 LTS
> Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
>
> c:\apache-ignite-2.7.0-bin\bin>control.bat
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to