Description
Ignite.sh fails on Mac OS Mojave with the following JDK version:
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
The same issue is reproduced on Linux and the workaround is discussed here:
https://issues.apache.org/jira/browse/IGNITE-11113
The exception is as follows:
/Users/dmagda/Downloads/apache-ignite-2.7.0-bin/bin/include/functions.sh: line 40: [: -eq: unary operator expected ./ignite.sh: line 152: [: -eq: unary operator expected ./ignite.sh: line 157: [: -gt: unary operator expected ./ignite.sh: line 170: [: -eq: unary operator expected WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.ignite.internal.util.GridUnsafe$2 (file:/Users/dmagda/Downloads/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 @4f83df68 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
Attachments
Issue Links
- Blocked
-
IGNITE-11189 Support Java 11 for Apache Ignite
- Resolved
- causes
-
IGNITE-11572 Node restart in ignite.sh was broken by IGNITE-11216
- Closed
- relates to
-
IGNITE-11153 Support Java 11 for control.sh & ignitevisorcmd.sh: remove odd --add-modules for java.xml.bind
- Closed
- links to