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

Surefire and Failsafe should dump critical errors in dump file and console

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20
    • Component/s: None
    • Labels:
      None

      Description

      Both plugins, Surefire and Failsafe, dump stack trace and error messages and lost commands in dump file or in console:
      [date]-jvmRun[N].dump,
      [date].dumpstream and
      [date]-jvmRun[N].dumpstream
      IN previous versions the plugins threw exceptions like, MojoExecutionException and MojoFailureException, but the user could not see any message of error which killed the plugin internally.
      Since now this is possible and the user can see the dump files in target
      target/failsafe-reports and target/surefire-reports.

        Activity

        Hide
        hudson Hudson added a comment -

        UNSTABLE: Integrated in Jenkins build maven-surefire #1673 (See https://builds.apache.org/job/maven-surefire/1673/)
        SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=572954801c0d192a68b42116f28a7dd4c4c20ba6)

        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java
        • (add) surefire-api/src/main/java/org/apache/maven/surefire/booter/DumpErrorSingleton.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
        • (add) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/InPluginProcessDumpSingleton.java
        • (add) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/MultipleFailureException.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java
        • (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire141PluggableProvidersIT.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java
        • (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire735ForkFailWithRedirectConsoleOutputIT.java
        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumer.java
        • (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1295AttributeJvmCrashesToTestsIT.java
        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/MasterProcessCommand.java
        • (delete) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/LostCommandsDumpSingleton.java
        • (edit) surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
        Show
        hudson Hudson added a comment - UNSTABLE: Integrated in Jenkins build maven-surefire #1673 (See https://builds.apache.org/job/maven-surefire/1673/ ) SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=572954801c0d192a68b42116f28a7dd4c4c20ba6 ) (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java (add) surefire-api/src/main/java/org/apache/maven/surefire/booter/DumpErrorSingleton.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java (add) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/InPluginProcessDumpSingleton.java (add) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/MultipleFailureException.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire141PluggableProvidersIT.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire735ForkFailWithRedirectConsoleOutputIT.java (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumer.java (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1295AttributeJvmCrashesToTestsIT.java (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/MasterProcessCommand.java (delete) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/LostCommandsDumpSingleton.java (edit) surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
        Show
        tibor17 Tibor Digana added a comment - https://git1-us-west.apache.org/repos/asf?p=maven-surefire.git;a=commitdiff;h=572954801c0d192a68b42116f28a7dd4c4c20ba6
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build maven-surefire #1671 (See https://builds.apache.org/job/maven-surefire/1671/)
        Revert "SUREFIRE-1322 - Surefire and Failsafe should dump critical (stephen.alan.connolly: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=c12adb87547a56c54c22c86191d214dc9b79b2eb)

        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build maven-surefire #1671 (See https://builds.apache.org/job/maven-surefire/1671/ ) Revert " SUREFIRE-1322 - Surefire and Failsafe should dump critical (stephen.alan.connolly: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=c12adb87547a56c54c22c86191d214dc9b79b2eb ) (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java
        Hide
        hudson Hudson added a comment -

        UNSTABLE: Integrated in Jenkins build maven-surefire #1666 (See https://builds.apache.org/job/maven-surefire/1666/)
        SUREFIRE-1322 - Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=4d3673c42e2af75c22f3abbaa2a0237a5c25e0ce)

        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java
        Show
        hudson Hudson added a comment - UNSTABLE: Integrated in Jenkins build maven-surefire #1666 (See https://builds.apache.org/job/maven-surefire/1666/ ) SUREFIRE-1322 - Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=4d3673c42e2af75c22f3abbaa2a0237a5c25e0ce ) (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java
        Show
        tibor17 Tibor Digana added a comment - - edited https://git-wip-us.apache.org/repos/asf?p=maven-surefire.git;a=commit;h=303cc8acdaf677bee9751da94de16e07083febb7 https://git-wip-us.apache.org/repos/asf?p=maven-surefire.git;a=commitdiff;h=df7e143c26b09678a0e6885b7ffcc65070688eb9 https://git-wip-us.apache.org/repos/asf?p=maven-surefire.git;a=commitdiff;h=66bc4c0839ba11af7a8915930f76abf3cd58ee53 https://git-wip-us.apache.org/repos/asf?p=maven-surefire.git;a=commitdiff;h=4d3673c42e2af75c22f3abbaa2a0237a5c25e0ce
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build maven-surefire #1663 (See https://builds.apache.org/job/maven-surefire/1663/)
        SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=66bc4c0839ba11af7a8915930f76abf3cd58ee53)

        • (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire735ForkFailWithRedirectConsoleOutputIT.java
        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build maven-surefire #1663 (See https://builds.apache.org/job/maven-surefire/1663/ ) SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=66bc4c0839ba11af7a8915930f76abf3cd58ee53 ) (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire735ForkFailWithRedirectConsoleOutputIT.java (edit) surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java
        Hide
        hudson Hudson added a comment -

        UNSTABLE: Integrated in Jenkins build maven-surefire #1661 (See https://builds.apache.org/job/maven-surefire/1661/)
        SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=df7e143c26b09678a0e6885b7ffcc65070688eb9)

        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java
        Show
        hudson Hudson added a comment - UNSTABLE: Integrated in Jenkins build maven-surefire #1661 (See https://builds.apache.org/job/maven-surefire/1661/ ) SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=df7e143c26b09678a0e6885b7ffcc65070688eb9 ) (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build maven-surefire #1656 (See https://builds.apache.org/job/maven-surefire/1656/)
        SUREFIRE-1323 Java 1.6 for improved XML parser needed in SUREFIRE-1322 (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=9964119f3a238223e50b0bd6e813ea8dc03f910d)

        • (edit) pom.xml
          SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=303cc8acdaf677bee9751da94de16e07083febb7)
        • (add) maven-failsafe-plugin/src/test/java/org/apache/maven/plugin/failsafe/RunResultTest.java
        • (edit) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java
        • (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/FailsafeSummary.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
        • (add) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/LostCommandsDumpSingleton.java
        • (add) maven-failsafe-plugin/src/test/resources/org/apache/maven/plugin/failsafe/failsafe-summary.xml
        • (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/ErrorType.java
        • (add) maven-surefire-plugin/src/site/resources/xsd/failsafe-summary.xsd
        • (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/OutputValidator.java
        • (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/ObjectFactory.java
        • (edit) surefire-api/src/test/java/org/apache/maven/surefire/suite/RunResultTest.java
        • (edit) maven-surefire-plugin/src/site/apt/developing.apt.vm
        • (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire141PluggableProvidersIT.java
        • (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/JAXB.java
        • (edit) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java
        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
        • (add) surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java
        • (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java
        • (add) maven-surefire-plugin/src/site/resources/xsd/bindings.xml
        • (edit) surefire-api/src/main/java/org/apache/maven/surefire/suite/RunResult.java
        • (edit) maven-surefire-plugin/src/site/apt/index.apt.vm
        • (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/FailsafeSummaryXmlUtils.java
        • (edit) maven-surefire-plugin/src/site/apt/examples/shutdown.apt.vm
        • (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/CheckTestNgExecuteErrorIT.java
        • (edit) surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
        • (add) maven-failsafe-plugin/src/test/java/org/apache/maven/plugin/failsafe/MarshallerUnmarshallerTest.java
        • (edit) maven-surefire-plugin/src/site/fml/faq.fml
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build maven-surefire #1656 (See https://builds.apache.org/job/maven-surefire/1656/ ) SUREFIRE-1323 Java 1.6 for improved XML parser needed in SUREFIRE-1322 (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=9964119f3a238223e50b0bd6e813ea8dc03f910d ) (edit) pom.xml SUREFIRE-1322 Surefire and Failsafe should dump critical errors in (tibor17: http://git-wip-us.apache.org/repos/asf/?p=maven-surefire.git&a=commit&h=303cc8acdaf677bee9751da94de16e07083febb7 ) (add) maven-failsafe-plugin/src/test/java/org/apache/maven/plugin/failsafe/RunResultTest.java (edit) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/FailsafeSummary.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java (add) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/LostCommandsDumpSingleton.java (add) maven-failsafe-plugin/src/test/resources/org/apache/maven/plugin/failsafe/failsafe-summary.xml (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/ErrorType.java (add) maven-surefire-plugin/src/site/resources/xsd/failsafe-summary.xsd (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/OutputValidator.java (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/ObjectFactory.java (edit) surefire-api/src/test/java/org/apache/maven/surefire/suite/RunResultTest.java (edit) maven-surefire-plugin/src/site/apt/developing.apt.vm (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire141PluggableProvidersIT.java (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/JAXB.java (edit) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java (edit) surefire-api/src/main/java/org/apache/maven/surefire/booter/CommandReader.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java (add) surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java (add) maven-surefire-plugin/src/site/resources/xsd/bindings.xml (edit) surefire-api/src/main/java/org/apache/maven/surefire/suite/RunResult.java (edit) maven-surefire-plugin/src/site/apt/index.apt.vm (add) maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/xmlsummary/FailsafeSummaryXmlUtils.java (edit) maven-surefire-plugin/src/site/apt/examples/shutdown.apt.vm (edit) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/CheckTestNgExecuteErrorIT.java (edit) surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java (add) maven-failsafe-plugin/src/test/java/org/apache/maven/plugin/failsafe/MarshallerUnmarshallerTest.java (edit) maven-surefire-plugin/src/site/fml/faq.fml
        Show
        tibor17 Tibor Digana added a comment - - edited https://git-wip-us.apache.org/repos/asf?p=maven-surefire.git;a=commit;h=303cc8acdaf677bee9751da94de16e07083febb7

          People

          • Assignee:
            tibor17 Tibor Digana
            Reporter:
            tibor17 Tibor Digana
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development