"IllegalStateException: Shutdown in progress" during test
---------------------------------------------------------
Key: MCOBERTURA-101
URL: http://jira.codehaus.org/browse/MCOBERTURA-101
Project: Maven 2.x Cobertura Plugin
Issue Type: Bug
Affects Versions: 2.2
Environment: Linux 2.6.18 x86 32 bit
Java Sun JDK 1.6.0_14
Maven 2.0.10
Reporter: Jeff Johnston
Instrumentation seems to go okay but during the compilation of test coverage
there is an exception that causes all coverage stats to be zero. The problem
is only on Linux, on Windows it is fine.
[INFO] [cobertura:instrument]
[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Instrumenting 5 files to
/export/boreeng/jeff-temp/trunk/target/generated-classes/cobertura
Cobertura: Saved information on 5 classes.
Instrument time: 377ms
[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/export/boreeng/jeff-temp/trunk/src/test/resources
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/export/boreeng/jeff-temp/trunk/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.iontrading.backoffice.model.SecurityTypeTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
at java.io.File.deleteOnExit(File.java:939)
at net.sourceforge.cobertura.util.FileLocker.<init>(FileLocker.java:80)
at
net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:230)
at
net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.lang.Shutdown.add(Shutdown.java:62)
at java.lang.System$2.registerShutdownHook(System.java:1146)
at java.io.DeleteOnExitHook.<clinit>(DeleteOnExitHook.java:20)
... 5 more
[INFO] Preparing findbugs:findbugs
[INFO] [resources:resources]
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email