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

maven surefire Error while executing forked tests.; nested exception is java.lang.IllegalStateException: testSetStarting called twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.2
    • 2.9
    • Junit 4.x support
    • None
    • Windows/Linux/SunOS

    Description

      We want to upgrade from our current 2.5 version of the maven-surefire-plugin to something newer but cannot get past the error below. We've tried versions 2.6, 2.7 up to and including 2.7.3-SNAPSHOT but they all fail.

      When setting forkmode to "once" and redirectTestOutputToFile to "true", we get the following error on multiple tests:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.3-SNAPSHOT:test (default-test) on project api: Error while executing forked tests.; nested exception is java.lang.IllegalStateException: testSetStarting called twice -> [Help 1]

      Please see the attachment for full "mvn -e test" output.

      If we set the redirectTestOutputToFile to false, it works but we need this option set to true.

      Thanks

      Attachments

        1. sf-pom-config.txt
          3 kB
          S Daigle
        2. stack.txt
          3 kB
          S Daigle
        3. test-out.txt
          20 kB
          S Daigle
        4. surefire-failure.log
          6 kB
          S Daigle
        5. surefire-272.txt
          4 kB
          S Daigle
        6. surefire.txt
          4 kB
          S Daigle

        Activity

          People

            krosenvold Kristian Rosenvold
            daigles4 S Daigle
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: