You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thibaut Bodart (JIRA)" <ji...@codehaus.org> on 2007/11/22 17:18:57 UTC
[jira] Closed: (SUREFIRE-387) Build fails even though all the test
passes and no information is provided by surefire
[ http://jira.codehaus.org/browse/SUREFIRE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thibaut Bodart closed SUREFIRE-387.
-----------------------------------
Resolution: Fixed
Found the reason... Sorry for the inconvenience.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.563 sec
java.lang.IllegalThreadStateException
at java.lang.ThreadGroup.add(ThreadGroup.java:856)
at java.lang.Thread.start(Thread.java:573)
at java.lang.Shutdown.runHooks(Shutdown.java:128)
at java.lang.Shutdown.sequence(Shutdown.java:173)
at java.lang.Shutdown.exit(Shutdown.java:218)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:869)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:824)
Exception in thread "main" java.lang.IllegalThreadStateException
at java.lang.Thread.start(Thread.java:571)
at java.lang.Shutdown.runHooks(Shutdown.java:128)
at java.lang.Shutdown.sequence(Shutdown.java:173)
at java.lang.Shutdown.exit(Shutdown.java:218)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:869)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
One of my test is creating some background threads that are not killed when the test completes....
> Build fails even though all the test passes and no information is provided by surefire
> --------------------------------------------------------------------------------------
>
> Key: SUREFIRE-387
> URL: http://jira.codehaus.org/browse/SUREFIRE-387
> Project: Maven Surefire
> Issue Type: Bug
> Components: plugin
> Affects Versions: 2.3
> Environment: Maven 2.0.7
> Surefire 2.3
> Reporter: Thibaut Bodart
> Priority: Minor
>
> Hi...
> My problem is the following:
> * I run "mvn clean install"
> * All the tests passes
> * Surefire says "BUILD FAILURE" and does not provide more information
> Any idea ?
> Is there any way of getting more information from surefire. Using -e or -X does not help.
> See logs below...
> Results :
> Tests run: 23, Failures: 0, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: There are test failures.
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
> at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:425)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> ... 16 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 21 seconds
> [INFO] Finished at: Thu Nov 22 17:43:13 EET 2007
> [INFO] Final Memory: 11M/38M
> [INFO] ------------------------------------------------------------------------
> KR,
> Thibaut
--
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