You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/01/21 23:29:26 UTC

[jira] Moved: (SUREFIRE-237) Improved errors in console

     [ http://jira.codehaus.org/browse/SUREFIRE-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MSUREFIRE-35 to SUREFIRE-237:
------------------------------------------------

        Key: SUREFIRE-237  (was: MSUREFIRE-35)
    Project: Maven Surefire  (was: Maven 2.x Surefire Plugin)

> Improved errors in console
> --------------------------
>
>                 Key: SUREFIRE-237
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-237
>             Project: Maven Surefire
>          Issue Type: Improvement
>            Reporter: Vincent Massol
>         Assigned To: 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