NPE in TestNG 6.5.1with Maven Surefire

148 views
Skip to first unread message

Mark Derricutt

unread,
Apr 19, 2012, 7:04:12 PM4/19/12
to testn...@googlegroups.com
Cedric,

Is this NPE with 6.5.1 and Maven Surfire a known bug?

org.apache.maven.surefire.util.SurefireReflectionException:
java.lang.reflect.InvocationTargetException; nested exception is
java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: java.lang.NullPointerException
at org.testng.TestNG.createCommandLineSuitesForClasses(TestNG.java:572)
at org.testng.TestNG.initializeCommandLineSuites(TestNG.java:806)
at org.testng.TestNG.run(TestNG.java:1001)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:76)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
... 9 more

If not - I'll raise a ticket...

Cédric Beust ♔

unread,
Apr 19, 2012, 7:28:40 PM4/19/12
to testn...@googlegroups.com
Yes, it should be fixed in master (TestNG.java:1638).

-- 
Cédric






--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to testn...@googlegroups.com.
To unsubscribe from this group, send email to testng-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-dev?hl=en.


Cédric Beust ♔

unread,
Apr 20, 2012, 12:58:55 PM4/20/12
to testn...@googlegroups.com, Mark Derricutt
Reply all
Reply to author
Forward
0 new messages