[testng-dev] NPE in TestNG 6.5.1with Maven Surefire

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[testng-dev] NPE in TestNG 6.5.1with Maven Surefire

Mark Derricutt
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...

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

Reply | Threaded
Open this post in threaded view
|

Re: [testng-dev] NPE in TestNG 6.5.1with Maven Surefire

Cédric Beust ♔-2
Yes, it should be fixed in master (TestNG.java:1638).

-- 
Cédric




On Thu, Apr 19, 2012 at 4:04 PM, Mark Derricutt <[hidden email]> wrote:
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...

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


--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-dev?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: [testng-dev] NPE in TestNG 6.5.1with Maven Surefire

Cédric Beust ♔-2
The fix is now pushed to Maven:


-- 
Cédric




On Thu, Apr 19, 2012 at 4:28 PM, Cédric Beust ♔ <[hidden email]> wrote:
Yes, it should be fixed in master (TestNG.java:1638).

-- 
Cédric




On Thu, Apr 19, 2012 at 4:04 PM, Mark Derricutt <[hidden email]> wrote:
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...

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



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