maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier A. Ortiz (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SUREFIRE-1677) NullPointerException at org.apache.maven.surefire.testng.utils.MethodSelector.shouldRun
Date Fri, 12 Jul 2019 21:19:00 GMT

     [ https://issues.apache.org/jira/browse/SUREFIRE-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Javier A. Ortiz updated SUREFIRE-1677:
--------------------------------------
    Environment: 
Mac 10.14.5
JDK Open JDK 11.0.3

> NullPointerException at org.apache.maven.surefire.testng.utils.MethodSelector.shouldRun
> ---------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1677
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1677
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.22.1, 2.22.2, 3.0.0-M3
>         Environment: Mac 10.14.5
> JDK Open JDK 11.0.3
>            Reporter: Javier A. Ortiz
>            Priority: Major
>
> I have a TestNG project that worked fine on JDK 8 with 2.22.1 but moving to JDK 11 (both
Oracle and OpenJDK) causes this error:
> {code}
> java.lang.NullPointerException
> 	at org.apache.maven.surefire.testng.utils.MethodSelector.shouldRun(MethodSelector.java:68)
> 	at org.apache.maven.surefire.testng.utils.MethodSelector.includeMethod(MethodSelector.java:53)
> 	at org.testng.internal.RunInfo.includeMethod(RunInfo.java:50)
> 	at org.testng.internal.MethodGroupsHelper.includeMethod(MethodGroupsHelper.java:86)
> 	at org.testng.internal.MethodGroupsHelper.collectMethodsByGroup(MethodGroupsHelper.java:52)
> 	at org.testng.internal.MethodHelper.collectAndOrderMethods(MethodHelper.java:57)
> 	at org.testng.TestRunner.initMethods(TestRunner.java:438)
> 	at org.testng.TestRunner.init(TestRunner.java:271)
> 	at org.testng.TestRunner.init(TestRunner.java:241)
> 	at org.testng.TestRunner.<init>(TestRunner.java:167)
> 	at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:663)
> 	at org.testng.SuiteRunner.init(SuiteRunner.java:260)
> 	at org.testng.SuiteRunner.<init>(SuiteRunner.java:198)
> 	at org.testng.TestNG.createSuiteRunner(TestNG.java:1295)
> 	at org.testng.TestNG.createSuiteRunners(TestNG.java:1273)
> 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1128)
> 	at org.testng.TestNG.runSuites(TestNG.java:1049)
> 	at org.testng.TestNG.run(TestNG.java:1017)
> 	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
> 	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
> 	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
> 	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
> 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
> {code}
> Had to downgrade to 2.12.4 to make it work.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message