[
https://issues.apache.org/jira/browse/CAMEL-16963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421637#comment-17421637
]
Freeman Yue Fang edited comment on CAMEL-16963 at 9/28/21, 8:08 PM:
--------------------------------------------------------------------
I installed apache-ignite-2.10.0-bin kit, and I tried to start standalone
ignite service with the script bin/ignite.sh, where can give me more
informative error message so that I can tune the necessary JVM flags with
JDK17. And I
figured these flags are necessary
{code}
elif [ $version -ge 17 ] ; then
JVM_OPTS="\
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED \
--add-opens java.base/java.nio=ALL-UNNAMED \
--add-opens java.base/java.util=ALL-UNNAMED \
--add-opens java.base/java.lang=ALL-UNNAMED \
${JVM_OPTS}"
fi
{code}
Besides fix this up in camel-ignite test, I will also send a PR to fix this up
in bin/ignite.sh(tracked by IGNITE-15635)
was (Author: ffang):
I installed apache-ignite-2.10.0-bin kit, and I tried to start standalone
ignite service with the script bin/ignite.sh, where can give me more
informative error message so that I can tune the necessary JVM flags with
JDK17. And I
figured these flags are necessary
{code}
elif [ $version -ge 17 ] ; then
JVM_OPTS="\
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED \
--add-opens java.base/java.nio=ALL-UNNAMED \
--add-opens java.base/java.util=ALL-UNNAMED \
--add-opens java.base/java.lang=ALL-UNNAMED \
${JVM_OPTS}"
fi
{code}
Besides fix this up in camel-ignite test, I will also send a PR to fix this up
in bin/ignite.sh
> tests in camel-ignite failed with JDK17
> ---------------------------------------
>
> Key: CAMEL-16963
> URL: https://issues.apache.org/jira/browse/CAMEL-16963
> Project: Camel
> Issue Type: Sub-task
> Components: camel-ignite
> Reporter: Freeman Yue Fang
> Assignee: Freeman Yue Fang
> Priority: Major
>
> {code}
> [ERROR] WARNING: Illegal reflective access by
> org.apache.ignite.internal.util.GridUnsafe$2
> (file:/Users/ffang/.m2/repository/org/apache/ignite/ignite-core/2.10.0/ignite-core-2.10.0.jar)
> to field java.nio.Buffer.address
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)