JDK 11 support

classic Classic list List threaded Threaded
12 messages Options
ipsxd ipsxd
Reply | Threaded
Open this post in threaded view
|

JDK 11 support

For now seems that Ignite cannot start with JDK 11, I assume there is a plan
to migrate to 11 and if can you specify what the timeline ?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Petr Ivanov Petr Ivanov
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

For now seems that JDK 11 is not available yet (EAP is not an option).
I think the best hope of full JDK11 support is JDK8 maintenance drop date (around Jan 2019).


> On 10 Sep 2018, at 16:17, ipsxd <[hidden email]> wrote:
>
> For now seems that Ignite cannot start with JDK 11, I assume there is a plan
> to migrate to 11 and if can you specify what the timeline ?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/

ipsxd ipsxd
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

Ok. Thx for quick answer. January 2019 sounds good.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ignite_user2016 ignite_user2016
Reply | Threaded
Open this post in threaded view
|

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/
mehdi sey mehdi sey
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

i think you must run ignite on JDK 8.

On Sat, Jan 5, 2019 at 7:03 PM ignite_user2016 <[hidden email]> 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/
yakov yakov
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

In reply to this post by ignite_user2016
Ignite 2.7 should run on JDK 11. Vladimir, Denis, correct me if I'm wrong. 


--Yakov
mehdi sey mehdi sey
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

No. I have run it on jdk 8 also

On Sunday, January 6, 2019, Yakov Zhdanov <[hidden email]> wrote:
Ignite 2.7 should run on JDK 11. Vladimir, Denis, correct me if I'm wrong. 


--Yakov
yakov yakov
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

Of course jdk 8 is fine :). I meant that ignite should also be fine with jdk9 and newer.

Yakov
ignite_user2016 ignite_user2016
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

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/
Loredana Radulescu Ivanoff Loredana Radulescu Ivanoff
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

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 <[hidden email]> 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/
zaleslaw zaleslaw
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

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/
Petr Ivanov Petr Ivanov
Reply | Threaded
Open this post in threaded view
|

Re: JDK 11 support

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 <[hidden email]> 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/