Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-21128

JDK17 - runnerPlatformTest: module java.base does not open java.lang.reflect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • build

    Description

      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:

      jvmArgs from root build.gradle are not applied to runnerPlatformTest because this task is of JavaExec type, but this jvmArgs apply only to Test class

      Attachments

        Issue Links

          Activity

            People

              artyeshi Artem Egorov
              artyeshi Artem Egorov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m