Skip to content

Instantly share code, notes, and snippets.

@elliottneilclark
Created August 25, 2011 20:53
Show Gist options
  • Save elliottneilclark/1171890 to your computer and use it in GitHub Desktop.
Save elliottneilclark/1171890 to your computer and use it in GitHub Desktop.
Stack
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.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:130)
at org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:247)
at org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:81)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:171)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.NoSuchMethodError: org.apache.maven.surefire.testset.DirectoryScannerParameters.getRunOrder()Ljava/lang/String;
at org.apache.maven.surefire.booter.BaseProviderFactory.getDirectoryScanner(BaseProviderFactory.java:70)
at org.apache.maven.surefire.junit4.JUnit4Provider.<init>(JUnit4Provider.java:70)
... 10 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment