You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tim Myerscough (JIRA)" <ji...@codehaus.org> on 2013/04/24 05:58:52 UTC

[jira] (SUREFIRE-990) NPE When using maven-failsafe-plugin in parallel mode with cucumber-jvm

Tim Myerscough created SUREFIRE-990:
---------------------------------------

             Summary: NPE When using maven-failsafe-plugin in parallel mode with cucumber-jvm
                 Key: SUREFIRE-990
                 URL: https://jira.codehaus.org/browse/SUREFIRE-990
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.7+ (parallel) support, Maven Failsafe Plugin
    Affects Versions: 2.14.1
         Environment: Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51:28+0800)
Maven home: /opt/maven/latest
Java version: 1.6.0_43, vendor: Sun Microsystems Inc.
Java home: /usr/java/jdk-x64/jdk1.6.0_43/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.8.7-201.fc18.x86_64", arch: "amd64", family: "unix"

            Reporter: Tim Myerscough
         Attachments: mvn-parallel-failure.zip

When running Cucumber-jvm with the maven-failsafe I get the following NullPointerException:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.14.1:integration-test (default) on project mvn-parallel-failure: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.14.1:integration-test failed: There was an error in the forked process
[ERROR] java.lang.NullPointerException
[ERROR] at org.junit.runner.Description.createSuiteDescription(Description.java:123)
[ERROR] at org.apache.maven.surefire.common.junit48.FilterFactory$GroupMatcherCategoryFilter.shouldRun(FilterFactory.java:213)
[ERROR] at org.junit.runners.ParentRunner.shouldRun(ParentRunner.java:373)
[ERROR] at org.junit.runners.ParentRunner.filter(ParentRunner.java:326)
[ERROR] at org.junit.runner.manipulation.Filter.apply(Filter.java:97)
[ERROR] at org.junit.runners.ParentRunner.filter(ParentRunner.java:328)
[ERROR] at org.junit.runner.manipulation.Filter.apply(Filter.java:97)
[ERROR] at org.junit.runners.ParentRunner.filter(ParentRunner.java:328)
[ERROR] at org.junit.runner.manipulation.Filter.apply(Filter.java:97)
[ERROR] at org.junit.runners.ParentRunner.filter(ParentRunner.java:328)
[ERROR] at org.junit.runner.manipulation.Filter.apply(Filter.java:97)
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper$FilteringRequest.<init>(JUnitCoreWrapper.java:56)
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createReqestAndRun(JUnitCoreWrapper.java:131)
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:111)
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:84)
[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:138)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
[ERROR] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
[ERROR] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
[ERROR] -> [Help 1]


When running the test directly through Eclipse, the test fails as expected with the following output:
cucumber.api.PendingException: TODO: implement me
	at au.com.permeance.CucumberSteps.I_have_opened_Google(CucumberSteps.java:12)
	at ✽.Given I have opened Google(features/Search.feature:8)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira