Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
Several tests failing with this kind of stacktrace
java.lang.RuntimeException: jdk.internal.misc.JavaNioAccess class is unavailable. Please add the following parameters to JVM startup settings and restart the application: {parameters: --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 --illegal-access=permit } See https://apacheignite.readme.io/docs/getting-started#section-running-ignite-with-java-9-10-11 for more information. at org.apache.ignite.internal.util.GridUnsafe.javaNioAccessObject(GridUnsafe.java:1627) at org.apache.ignite.internal.util.GridUnsafe.<clinit>(GridUnsafe.java:175) at org.apache.ignite.internal.util.IgniteUtils.<clinit>(IgniteUtils.java:893) at org.apache.ignite.spi.IgniteSpiAdapter.<init>(IgniteSpiAdapter.java:121) at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.<init>(TcpDiscoverySpi.java:241) at org.apache.camel.test.infra.ignite.services.IgniteEmbeddedService.createConfiguration(IgniteEmbeddedService.java:70) at org.apache.camel.component.ignite.AbstractIgniteTest.createConfiguration(AbstractIgniteTest.java:54) at org.apache.camel.component.ignite.IgniteCacheContinuousQueryTest.createComponent(IgniteCacheContinuousQueryTest.java:81) at org.apache.camel.component.ignite.AbstractIgniteTest.createCamelContext(AbstractIgniteTest.java:49)
or
java.lang.NullPointerException: Cannot invoke "org.apache.camel.CamelContext.getCamelContextExtension()" because "camelContext" is null at org.apache.camel.support.PluginHelper.getBeanPostProcessor(PluginHelper.java:70) at org.apache.camel.test.junit5.CamelTestSupport.applyCamelPostProcessor(CamelTestSupport.java:693) at org.apache.camel.test.junit5.CamelTestSupport.postProcessTest(CamelTestSupport.java:678) at org.apache.camel.test.junit5.CamelTestSupport.setUp(CamelTestSupport.java:370) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Suppressed: java.lang.NullPointerException: Cannot invoke "org.apache.camel.model.ModelCamelContext.getComponent(String, java.lang.Class)" because "this.context" is null at org.apache.camel.component.ignite.AbstractIgniteTest.ignite(AbstractIgniteTest.java:63) at org.apache.camel.component.ignite.IgniteCacheTest.deleteCaches(IgniteCacheTest.java:265)