[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16798147#comment-16798147 ] Dmitriy Pavlov commented on IGNITE-11216: - Commits were cherry-picked to 2.7.5 > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8, 2.7.5 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16769176#comment-16769176 ] Ivan Artukhov commented on IGNITE-11216: [~vveider] [~dpavlov] Checked every script with both OracleJDK 8 and OracleJDK 11 running under Ubuntu. No issues was found. I suppose we can merge the PR. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 50m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16767940#comment-16767940 ] Peter Ivanov commented on IGNITE-11216: --- Update PR. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 50m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16767328#comment-16767328 ] Ilya Suntsov commented on IGNITE-11216: --- [~vveider] I see the problem with ignitevisorcmd.sh {noformat} bin/ignitevisorcmd.sh: line 69: DOCK_OPTS: unbound variable {noformat} > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 50m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16767145#comment-16767145 ] Dmitriy Pavlov commented on IGNITE-11216: - [~ustas], could you please review this fix https://github.com/apache/ignite/pull/6095 ? IMO, LGTM, but it would be better if you can take a look, as well. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 50m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16766884#comment-16766884 ] Peter Ivanov commented on IGNITE-11216: --- https://github.com/apache/ignite/pull/6095 > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 50m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16766439#comment-16766439 ] Dmitriy Pavlov commented on IGNITE-11216: - [~vveider] could you please take a look? Is it reasonable to re-work the patch with all 3 changes? > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 40m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16766046#comment-16766046 ] Anton Dmitriev commented on IGNITE-11216: - Hi folks, I suddenly faced the same problem in _control.sh_ and _ignite-tf.sh_. These scripts throw the following exception: {code} $ ./control.sh ./control.sh: line 48: DEFAULT_CONFIG: unbound variable $ ./ignite-tf.sh ./ignite-tf.sh: line 48: DEFAULT_CONFIG: unbound variable {code} I guess it make sense to check other scripts too, not only _ignite.sh_. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 40m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765922#comment-16765922 ] Ivan Artukhov commented on IGNITE-11216: LGTM > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 40m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765917#comment-16765917 ] Dmitriy Pavlov commented on IGNITE-11216: - *This issue contains 2 commits* : https://github.com/apache/ignite/commit/12bd7cdfbb6eb296d7d76bbe738f1c10a309296f https://github.com/apache/ignite/commit/033170d90f6c0618b9d6a3fd997e13a5ec1fff89 > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 40m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765821#comment-16765821 ] Peter Ivanov commented on IGNITE-11216: --- If {{JAVA_HOME}} is empty or missing, script will try to get {{JAVA_HOME}} from path to {{java}} executable. And if script will not be able to detect JDK version, it will mean that java executable is not found. Thus, script will fail and any options will become irrelevant. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 20m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765798#comment-16765798 ] Dmitriy Pavlov commented on IGNITE-11216: - [~vveider] [~Artukhov], WDYT about the following approach. In case we're unable to determine java version (e.g. home is missing) we will use Java11 options as it is, but add an option to ignore unrecognized options (to keep the ability to run it on Java 8). I mean usage of -XX:+IgnoreUnrecognizedVMOptions > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 20m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765303#comment-16765303 ] Peter Ivanov commented on IGNITE-11216: --- [~dpavlov] — fix is valid. Unfortunately, no {{JAVA_HOME}} at all was not in consideration. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 20m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765131#comment-16765131 ] Dmitriy Pavlov commented on IGNITE-11216: - [~Artukhov] please align the solution with [~vveider]. I can merge second commit once it is clear how to handle > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 20m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765112#comment-16765112 ] Ivan Artukhov commented on IGNITE-11216: Checked on Ubuntu 18.04.1 and OracleJDK 11.0.2. I get the following error if *JAVA_HOME* variable is *unset*: {code} bin/include/functions.sh: line 64: JAVA_HOME: unbound variable {code} Proposed fix: {code} if [ "${JAVA_HOME:-}" = "" ]; then {code} > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 20m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765023#comment-16765023 ] Dmitriy Pavlov commented on IGNITE-11216: - [~ustas], yes, warning about reflective access in unavoidable. See also https://docs.oracle.com/en/java/javase/11/tools/java.html --illegal-access and it's value 'permit' {quote} This mode opens each package in each module in the run-time image to code in all unnamed modules (such as code on the class path), if that package existed in JDK 8. This enables both static access (for example, by compiled bytecode), and deep reflective access through the platform's various reflection APIs. The first reflective-access operation to any such package causes a warning to be issued. However, no warnings are issued after the first occurrence. This single warning describes how to enable further warnings. This mode is the default for the current JDK but will change in a future release. {quote} > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 10m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16765003#comment-16765003 ] Ilya Suntsov commented on IGNITE-11216: --- I've reviewed scripts code and tested them on macOS (Majave, ver 10.14.2). LGTM > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 10m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16764998#comment-16764998 ] Ilya Suntsov commented on IGNITE-11216: --- [~dpavlov] I see the following warning in node log: {noformat} isuntsovs-MBP:gridgain-professional-2.8.0-SNAPSHOT isuntsov$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/ isuntsovs-MBP:gridgain-professional-2.8.0-SNAPSHOT isuntsov$ bin/ignite.sh examples/config/example-ignite.xml WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.ignite.internal.util.GridUnsafe$2 (file:/Users/isuntsov/Downloads/gridgain-professional-2.8.0-SNAPSHOT/libs/ignite-core-2.8.0-SNAPSHOT.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 {noformat} Is it ok? > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 10m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763554#comment-16763554 ] Dmitriy Pavlov commented on IGNITE-11216: - I don't understand how the fix works, so [~ustas], could you please review this fix? > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Assignee: Peter Ivanov >Priority: Blocker > Fix For: 2.8 > > Time Spent: 10m > Remaining Estimate: 0h > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16762640#comment-16762640 ] Peter Ivanov commented on IGNITE-11216: --- I was able to reproduce the problem running {{JAVA_HOME= ./ignite.sh}}. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Priority: Blocker > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16761707#comment-16761707 ] Peter Ivanov commented on IGNITE-11216: --- [~dpavlov], I'll try to research. > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Priority: Blocker > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-11216) Ignite.sh fails on Mac OS and Linux - Java 11
[ https://issues.apache.org/jira/browse/IGNITE-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16761649#comment-16761649 ] Dmitriy Pavlov commented on IGNITE-11216: - [~vveider] WDYT if this issue can be fixed by [IGNITE-11153] change? > Ignite.sh fails on Mac OS and Linux - Java 11 > - > > Key: IGNITE-11216 > URL: https://issues.apache.org/jira/browse/IGNITE-11216 > Project: Ignite > Issue Type: Task >Affects Versions: 2.7 >Reporter: Denis Magda >Priority: Blocker > > 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-3 > The exception is as follows: > {noformat} > /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.(IgniteUtils.java:795) > at > org.apache.ignite.lang.IgniteProductVersion.fromString(IgniteProductVersion.java:305) > at > org.apache.ignite.internal.IgniteVersionUtils.(IgniteVersionUtils.java:71) > at > org.apache.ignite.startup.cmdline.CommandLineStartup.(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.(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 > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)