Artem Egorov created IGNITE-21128:
-------------------------------------

             Summary: JDK17 - runnerPlatformTest: module java.base does not 
open java.lang.reflect
                 Key: IGNITE-21128
                 URL: https://issues.apache.org/jira/browse/IGNITE-21128
             Project: Ignite
          Issue Type: Bug
          Components: build
            Reporter: Artem Egorov
            Assignee: Artem Egorov


If we try to run the following command:
gradlew :ignite-runner:runnerPlatformTest -x compileJava -x 
compileTestFixturesJava -x compileIntegrationTestJava -x compileTestJava 
--parallel
Then we will get:
Starting test node runner...
13:24:03     Exception in thread "main" java.lang.ExceptionInInitializerError
13:24:03       at 
org.apache.ignite.internal.testframework.IgniteTestUtils.<clinit>(IgniteTestUtils.java:86)
13:24:03       at 
org.apache.ignite.internal.runner.app.PlatformTestNodeRunner.startNodes(PlatformTestNodeRunner.java:247)
13:24:03       at 
org.apache.ignite.internal.runner.app.PlatformTestNodeRunner.main(PlatformTestNodeRunner.java:214)
13:24:03     Caused by: java.lang.IllegalAccessException: module java.base does 
not open java.lang.reflect to unnamed module @5e922278
13:24:03       at 
java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:259)
13:24:03       at 
org.apache.ignite.internal.testframework.IgniteTestUtils.<clinit>(IgniteTestUtils.java:83)
Root cause:

{color:#172b4d}{{jvmArgs}} {color}from root {{build.gradle}} are not applied to 
{{runnerPlatformTest}} because this task is of {{JavaExec}} type, but this 
{{jvmArgs}} apply only to {{Test class}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to