From: simonbrandhof Date: Wed, 4 May 2011 09:15:20 +0000 (+0200) Subject: SONAR-2346 Failing with Current container state was: CONSTRUCTED X-Git-Tag: 2.8~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47a981458b7e37476bce36db0050cb2caf56f3ba;p=sonarqube.git SONAR-2346 Failing with Current container state was: CONSTRUCTED --- 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); + } } } }