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

NPE When using maven-failsafe-plugin in parallel mode with cucumber-jvm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 2.15
    • None

    Description

      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)

      Attachments

        1. mvn-parallel-failure.zip
          5 kB
          Tim Myerscough

        Activity

          People

            agudian Andreas Gudian
            timm_permeance Tim Myerscough
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: