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

NPE in SmartStacktraceParser if Thread.contextCassLoader is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.17
    • 2.18
    • None
    • None
    • Patch

    Description

      This was reported through a pull-request on GitHub by Jacobus2k:
      https://github.com/apache/maven-surefire/pull/44

      ERROR] org.apache.maven.surefire.testset.TestSetFailedException: java.lang.NullPointerException
      [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:206)
      [ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:129)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      [ERROR] Caused by: java.lang.NullPointerException
      [ERROR] at org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
      [ERROR] at org.apache.maven.surefire.report.SmartStackTraceParser.(SmartStackTraceParser.java:57)
      [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:77)
      

      Attachments

        Activity

          People

            agudian Andreas Gudian
            agudian Andreas Gudian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: