You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ignite_user2016 <ri...@gmail.com> on 2019/01/05 15:33:06 UTC
Re: JDK 11 support
what version of Ignite run on JDK 11 ? Does any one tried running Ignite on
open JDK 11 ?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: JDK 11 support
Posted by Petr Ivanov <mr...@gmail.com>.
Currently, compilation is not supported, efforts are about providing runtime compatibility.
I hope full support (compilation + runtime) will be introduced in 2.8 (and not later than 3.0).
> On 9 Jan 2019, at 11:27, zaleslaw <za...@gmail.com> wrote:
>
> I haven't any troubles with running Ignite 2.6 with JDK 8 and Ignite 2.7 with
> JDK 8,9.
> But a few weeks ago it [Ignite 2.6/Ignite 2.7) doesn't compile with JDK 11
> (Oracle).
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: JDK 11 support
Posted by zaleslaw <za...@gmail.com>.
I haven't any troubles with running Ignite 2.6 with JDK 8 and Ignite 2.7 with
JDK 8,9.
But a few weeks ago it [Ignite 2.6/Ignite 2.7) doesn't compile with JDK 11
(Oracle).
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: JDK 11 support
Posted by Loredana Radulescu Ivanoff <lr...@tibco.com>.
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 <ri...@gmail.com>
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/
>
Re: JDK 11 support
Posted by ignite_user2016 <ri...@gmail.com>.
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/
Re: JDK 11 support
Posted by Yakov Zhdanov <yz...@apache.org>.
Of course jdk 8 is fine :). I meant that ignite should also be fine with
jdk9 and newer.
Yakov
Re: JDK 11 support
Posted by Mehdi Seydali <se...@gmail.com>.
No. I have run it on jdk 8 also
On Sunday, January 6, 2019, Yakov Zhdanov <yz...@apache.org> wrote:
> Ignite 2.7 should run on JDK 11. Vladimir, Denis, correct me if I'm wrong.
>
> Please try this link for information - https://apacheignite.readme.
> io/v2.7/docs/getting-started#section-running-ignite-with-java-9
>
> --Yakov
>
Re: JDK 11 support
Posted by Yakov Zhdanov <yz...@apache.org>.
Ignite 2.7 should run on JDK 11. Vladimir, Denis, correct me if I'm wrong.
Please try this link for information -
https://apacheignite.readme.io/v2.7/docs/getting-started#section-running-ignite-with-java-9
--Yakov
Re: JDK 11 support
Posted by Mehdi Seydali <se...@gmail.com>.
i think you must run ignite on JDK 8.
On Sat, Jan 5, 2019 at 7:03 PM ignite_user2016 <ri...@gmail.com>
wrote:
> what version of Ignite run on JDK 11 ? Does any one tried running Ignite on
> open JDK 11 ?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>