[
https://jira.codehaus.org/browse/SUREFIRE-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=297611#comment-297611
]
Mark Struberg commented on SUREFIRE-863:
----------------------------------------
it seems this problem happens if the test setup hits a NoClassDefFound or
similar:
In ConcurrentReporterManager#testError I get failure set to:
"Could not create a new instance of class
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor see cause."
Will try to create a unit test for it.
> NPE in ConcurrentReporterManager
> --------------------------------
>
> Key: SUREFIRE-863
> URL: https://jira.codehaus.org/browse/SUREFIRE-863
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.x support
> Affects Versions: 2.12
> Reporter: Mark Struberg
>
> I have a wird NPE in surefire with one of my projects:
> Caused by: java.lang.NullPointerException
> at
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at
> org.apache.maven.surefire.junitcore.ConcurrentReporterManager.getTestSet(ConcurrentReporterManager.java:157)
> at
> org.apache.maven.surefire.junitcore.ConcurrentReporterManager.getOrCreateTestMethod(ConcurrentReporterManager.java:127)
> at
> org.apache.maven.surefire.junitcore.ConcurrentReporterManager.testError(ConcurrentReporterManager.java:83)
> at
> org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:110)
> at
> org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:100)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira