[ 
https://jira.codehaus.org/browse/SUREFIRE-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=297609#comment-297609
 ] 
Mark Struberg commented on SUREFIRE-863:
----------------------------------------

How to reproduce:

I did hit this problem when updating Apache DeltaSpike from surefire-2.11 to 
2.12.

$> git clone https://git-wip-us.apache.org/repos/asf/incubator-deltaspike.git
$> cd incubator-deltaspike/deltaspike
$> mvn clean install -PWeld -Dweld.version=1.1.4.Final 
-Dmaven.surefire.plugin.version=2.13-SNAPSHOT

The funny thing is that the same project works with another container (just 
remove the -PWeld and you'll get OpenWebBeans as CDI container) and even with 
another version of Weld. Compiling with -Dweld.version=1.1.5.Final works, but 
1.1.7.Final is broken again.
                
> 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

        

Reply via email to