aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-05-04 11:15:20 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-05-04 11:18:20 +0200
commit47a981458b7e37476bce36db0050cb2caf56f3ba (patch)
tree9f515f88dd6c788d771caa1ccd7120dc6574db48 /sonar-batch
parente8992d23314a7a50fe0c0df3d94e1ab8c81e626b (diff)
downloadsonarqube-47a981458b7e37476bce36db0050cb2caf56f3ba.tar.gz
sonarqube-47a981458b7e37476bce36db0050cb2caf56f3ba.zip
SONAR-2346 Failing with Current container state was: CONSTRUCTED
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/Batch.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/Batch.java b/sonar-batch/src/main/java/org/sonar/batch/Batch.java
index c2b15adda09..623192824fe 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/Batch.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/Batch.java
@@ -62,7 +62,13 @@ public class Batch {
analyzeModules(bootstrapComponents);
} finally {
if (bootstrapComponents != null) {
- bootstrapComponents.stop();
+ try {
+ bootstrapComponents.stop();
+ } catch (Exception e) {
+ // See http://jira.codehaus.org/browse/SONAR-2346
+ // This exception must not override the exception thrown during start() phase.
+ LOG.error("Fail to stop IoC container", e);
+ }
}
}
}