Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1665

JUnits fail with Java11: IllegalArgumentException: Stream stdin corrupted. Expected comma after third character in command 'FATAL ERROR in native method: processing of -javaagent failed'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.20.1, 3.0.0-M2
    • Fix Version/s: None
    • Component/s: Junit 4.x support
    • Labels:
      None

      Description

      As discussed in SUREFIRE-1601 I create a new issue.

      I want to make my project (java,maven,junit,surefire) to work with Java11. However, surefire fails to execute the tests when run with Java11 (works fine with Java 1.8).

      ```

      IllegalArgumentException: Stream stdin corrupted. Expected comma after third character in command 'FATAL ERROR in native method: processing of -javaagent failed'

      ```

      Attached are the surefire reports of the affected project (which is actually the test-case of a maven archetype). You can find the entire code here:

      https://github.com/hohwille/devon4j/tree/feature/java-11-surefire

      (When cloning please ensure you checkout the branch java-11-surefire).

      The github pull-request for it can be found here:

      https://github.com/devonfw/devon4j/pull/84

      As you can see we are using travis-ci and JDK 1.8 build is green while JDK 11 build fails:

      https://travis-ci.org/devonfw/devon4j/builds/527844661?utm_source=github_status&utm_medium=notification

      I hope to have served with all the information required for you to trace down and fix the issue. In case you are still missing any information do not hesitate to ask.

        Attachments

        1. 2019-05-03T18-10-11_458.dumpstream
          3 kB
          Jörg Hohwiller
        2. 2019-05-03T18-10-11_458-jvmRun1.dumpstream
          0.8 kB
          Jörg Hohwiller

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hohwille Jörg Hohwiller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: