You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/01/30 19:06:28 UTC

[ignite] 01/01: IGNITE-11155 Output warning in case JDK internals access is not enabled

This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch ignite-11155
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 0f573de1cd868df4fb2790dc6c2bf2f8a78c4017
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Wed Jan 30 22:06:14 2019 +0300

    IGNITE-11155 Output warning in case JDK internals access is not enabled
---
 .../src/main/java/org/apache/ignite/internal/util/GridUnsafe.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/GridUnsafe.java b/modules/core/src/main/java/org/apache/ignite/internal/util/GridUnsafe.java
index 6b8e2b3..f3593f0 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/GridUnsafe.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/GridUnsafe.java
@@ -1451,7 +1451,9 @@ public abstract class GridUnsafe {
             return mth.invoke(null);
         }
         catch (ReflectiveOperationException e) {
-            throw new RuntimeException(pkgName + ".misc.JavaNioAccess class is unavailable.", e);
+            throw new RuntimeException(pkgName + ".misc.JavaNioAccess class is unavailable."
+                + "\nPlease make sure --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED was provided as JVM option." +
+                "\nSee https://apacheignite.readme.io/docs/getting-started#section-running-ignite-with-java-9-10-11 for more info", e);
         }
     }