Service won't start

java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@3eedca90 has been closed already
	at org.sonar.core.platform.SpringComponentContainer.getOptionalComponentByType(
	at org.sonar.server.platform.platformlevel.PlatformLevel.getOptional(
	at org.sonar.server.platform.platformlevel.PlatformLevel.lambda$getWebServer$0(
	at java.base/java.util.Optional.flatMap(
	at org.sonar.server.platform.platformlevel.PlatformLevel.getWebServer(
	at org.sonar.server.platform.platformlevel.PlatformLevel.addIfStartupLeader(
	at org.sonar.server.platform.platformlevel.PlatformLevel4.configureLevel(
	at org.sonar.server.platform.platformlevel.PlatformLevel.configure(
	at org.sonar.server.platform.PlatformImpl.start(
	at org.sonar.server.platform.PlatformImpl.startLevel34Containers(
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(
	at org.sonar.server.platform.PlatformImpl$1.doRun(
	at org.sonar.server.platform.PlatformImpl$
	at java.base/


That’s not a lot to go on. At a minimum, can we have the full log, from server startup (attempt)?


Sonar9.9Error.txt (145.4 KB)


Thanks. This troubleshooting guide includes some tips on reading stacktraces. In particular, you want to pay attention to the Caused by lines, and the ones at the bottom of a stacktrace are usually more helpful/relevant than the ones at the top. In this case:

> Caused by: org.sonar.auth.ldap.LdapException: Unable to open LDAP connection
> ...
> Caused by: javax.naming.CommunicationException: simple bind failed:
> ...
> Caused by: Connection or outbound has closed 

That last one, of course, is very close to what you provided initially. But without broader context it wasn’t very helpful. Looking at the larger stacktrace, we can see that this is a problem in your LDAP configuration. You should consult your LDAP admins.


@ganncamp thank you! this is intersting because none of the LDAP configurations were not changed, we upgraded application to the higher version and updated the file

we are on version 9.2, can we jump from 9.2 to 9.9? or we should upgrade from 9.2 t–>9.3–>9.4 …–> 9.9?

What is my upgrade path from 9.2?


Yes, you can jump from 9.2 straight to 9.9.