Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1707

Running tests on JDK11 for branch 1.6.x

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.6.9.CR1
    • 1.6.1.Final
    • Testsuite
    • None

    Description

      On 1.6.x branch I am having trouble to test with JDK11
      noformat
      git checkout 1.6.x
      . java_oracle_8.sh
      mvn clean test -DskipTests
      . java_oracle_11.sh
      mvn test -Dmaven.main.skip=true
      ...
      Error occurred during initialization of boot layer
      java.lang.module.FindException: Module java.corba not found

      Results :

      Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 17.427 s
      [INFO] Finished at: 2018-11-05T09:49:17+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project wildfly-elytron: ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
      [ERROR] Command was /bin/sh -c cd /home/mchoma/git-repo/wildfly-elytron && /home/mchoma/app/oracle-jdk-11+28/bin/java -javaagent:/home/mchoma/.m2/repository/org/jmockit/jmockit/1.33/jmockit-1.33.jar --add-modules java.corba,java.sql --illegal-access=permit -Djdk.attach.allowAttachSelf=true -jar /home/mchoma/git-repo/wildfly-elytron/target/surefire/surefirebooter10245887984403962786.jar /home/mchoma/git-repo/wildfly-elytron/target/surefire/surefire10250982648577178380tmp /home/mchoma/git-repo/wildfly-elytron/target/surefire/surefire_04789553250451761755tmp
      ...
      noformat

      Workaround exists. I havet to redefine

      modular.jdk.args

      from

      <modular.jdk.args>--add-modules java.corba,java.sql --illegal-access=permit</modular.jdk.args>

      to

      -Dmodular.jdk.args="--add-modules java.sql --illegal-access=permit"

      Attachments

        Activity

          People

            rhn-support-ivassile Ilia Vassilev
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: