Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-190

Travis build fails for JDK 7 & 11

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • None

    Description

      The Travis builds on GitHub (see https://travis-ci.org/apache/commons-email/builds/594822196?utm_medium=notification&utm_source=github_status) configured for commons-email actually fail OpenJDK 7 & 11 and only work for OpenJDK 8

      language: java
      sudo: false
      
      jdk:
        - openjdk7
        - openjdk8
        - openjdk11
        
      after_success:
        - mvn clean cobertura:cobertura coveralls:report
      

      JDK 7

      Expected feature release number in range of 9 to 15, but got: 7
      181The command "~/bin/install-jdk.sh --target "/home/travis/openjdk7" --workspace "/home/travis/.cache/install-jdk" --feature "7" --license "GPL" --cacerts" failed and exited with 3 during .
      

      JDK 11

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project commons-email: There are test failures.
      2610[ERROR] 
      2611[ERROR] Please refer to /home/travis/build/apache/commons-email/target/surefire-reports for the individual test results.
      2612[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
      2613[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
      2614[ERROR] Command was /bin/sh -c cd /home/travis/build/apache/commons-email && /usr/local/lib/jvm/openjdk11/bin/java -javaagent:/home/travis/.m2/repository/org/jacoco/org.jacoco.agent/0.8.1/org.jacoco.agent-0.8.1-runtime.jar=destfile=/home/travis/build/apache/commons-email/target/jacoco.exec -jar /home/travis/build/apache/commons-email/target/surefire/surefirebooter14166966509883583450.jar /home/travis/build/apache/commons-email/target/surefire 2020-03-03T19-44-26_219-jvmRun1 surefire7054271297207748655tmp surefire_07799371676210898436tmp
      2615[ERROR] Error occurred in starting fork, check output in log
      2616[ERROR] Process Exit Code: 134
      2617[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
      2618[ERROR] Command was /bin/sh -c cd /home/travis/build/apache/commons-email && /usr/local/lib/jvm/openjdk11/bin/java -javaagent:/home/travis/.m2/repository/org/jacoco/org.jacoco.agent/0.8.1/org.jacoco.agent-0.8.1-runtime.jar=destfile=/home/travis/build/apache/commons-email/target/jacoco.exec -jar /home/travis/build/apache/commons-email/target/surefire/surefirebooter14166966509883583450.jar /home/travis/build/apache/commons-email/target/surefire 2020-03-03T19-44-26_219-jvmRun1 surefire7054271297207748655tmp surefire_07799371676210898436tmp
      2619[ERROR] Error occurred in starting fork, check output in log
      2620[ERROR] Process Exit Code: 134
      

      A few thoughts along the line

      • JDK7 might be tricky to support on Travis (there are couple of issues that OpenJDK 7 is not properly supported)
      • JDK11 should work

      Attachments

        Issue Links

          Activity

            People

              sgoeschl Siegfried Goeschl
              sgoeschl Siegfried Goeschl
              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