[ http://jira.codehaus.org/browse/MSUREFIRE-35?page=comments#action_63200 ]
Adrian commented on MSUREFIRE-35: --------------------------------- I have the same error as this. Where can we find 2.2 of the surefire plugin? > Improved errors in console > -------------------------- > > Key: MSUREFIRE-35 > URL: http://jira.codehaus.org/browse/MSUREFIRE-35 > Project: Maven 2.x Surefire Plugin > Type: Improvement > Reporter: Vincent Massol > Assignee: Brett Porter > > > Here's what I get: > C:\dev\cargo\trunk\samples\java>mvn clean install > [...] > [INFO] [surefire:test] > [INFO] forkMode: pertest > [INFO] Setting reports dir: > C:\dev\cargo\trunk\samples\java\target/surefire-reports > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:678) > Caused by: 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:274) > at > org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:292) > at org.apache.maven.surefire.Surefire.run(Surefire.java:91) > at org.apache.maven.surefire.Surefire.run(Surefire.java:85) > at org.apache.maven.surefire.Surefire.run(Surefire.java:61) > ... 5 more > Caused by: java.lang.InstantiationException: > org.codehaus.cargo.sample.java.AllContainerTest > at java.lang.Class.newInstance0(Class.java:293) > at java.lang.Class.newInstance(Class.java:261) > at > org.apache.maven.surefire.battery.SingleTestBattery.<init>(SingleTestBattery.java:42) > ... 13 more > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:678) > Caused by: 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:274) > at > org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:292) > at org.apache.maven.surefire.Surefire.run(Surefire.java:91) > at org.apache.maven.surefire.Surefire.run(Surefire.java:85) > at org.apache.maven.surefire.Surefire.run(Surefire.java:61) > ... 5 more > Caused by: java.lang.InstantiationException: > org.codehaus.cargo.sample.java.EarCapabilityContainerTest > at java.lang.Class.newInstance0(Class.java:293) > at java.lang.Class.newInstance(Class.java:261) > at > org.apache.maven.surefire.battery.SingleTestBattery.<init>(SingleTestBattery.java:42) > ... 13 more > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:678) > Caused by: 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:274) > at > org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:292) > at org.apache.maven.surefire.Surefire.run(Surefire.java:91) > at org.apache.maven.surefire.Surefire.run(Surefire.java:85) > at org.apache.maven.surefire.Surefire.run(Surefire.java:61) > ... 5 more > Caused by: java.lang.InstantiationException: > org.codehaus.cargo.sample.java.tomcat.TomcatSpecificTest > at java.lang.Class.newInstance0(Class.java:293) > at java.lang.Class.newInstance(Class.java:261) > at > org.apache.maven.surefire.battery.SingleTestBattery.<init>(SingleTestBattery.java:42) > ... 13 more > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:678) > Caused by: 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:274) > at > org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:292) > at org.apache.maven.surefire.Surefire.run(Surefire.java:91) > at org.apache.maven.surefire.Surefire.run(Surefire.java:85) > at org.apache.maven.surefire.Surefire.run(Surefire.java:61) > ... 5 more > Caused by: java.lang.InstantiationException: > org.codehaus.cargo.sample.java.WarAndDeployerCapabilityContainerTest > at java.lang.Class.newInstance0(Class.java:293) > at java.lang.Class.newInstance(Class.java:261) > at > org.apache.maven.surefire.battery.SingleTestBattery.<init>(SingleTestBattery.java:42) > ... 13 more > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:678) > Caused by: 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:274) > at > org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:292) > at org.apache.maven.surefire.Surefire.run(Surefire.java:91) > at org.apache.maven.surefire.Surefire.run(Surefire.java:85) > at org.apache.maven.surefire.Surefire.run(Surefire.java:61) > ... 5 more > Caused by: java.lang.InstantiationException: > org.codehaus.cargo.sample.java.WarCapabilityContainerTest > at java.lang.Class.newInstance0(Class.java:293) > at java.lang.Class.newInstance(Class.java:261) > at > org.apache.maven.surefire.battery.SingleTestBattery.<init>(SingleTestBattery.java:42) > ... 13 more > [INFO] > ---------------------------------------------------------------------------- > [ERROR] BUILD ERROR > [INFO] > ---------------------------------------------------------------------------- > [INFO] There are some test failure. > [INFO] > ---------------------------------------------------------------------------- > [INFO] For more information, run Maven with the -e switch > [INFO] > ---------------------------------------------------------------------------- > [INFO] Total time: 33 seconds > [INFO] Finished at: Wed Dec 21 10:04:55 CET 2005 > [INFO] Final Memory: 5M/13M > [INFO] > ---------------------------------------------------------------------------- > Surefire doesn't report why it cannot instantiate my test cases. It simply > invocationtargetexception which deosn't say much. Isn't there a nested > exception that would explain why? > (Note: I can see the problem is in instantiating the test. However surefire > should *NOT* call the test's constructor. There is a suite() method defined > in those tests and it's the goal of the suite to do the instantiations! I > believe this is related to MSUREFIRE-20). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira