java.lang.IllegalStateException

Unable to open LDAP connection

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web11967

  • via Google Groups by Jody Greene, 9 months ago
    Unable to open LDAP connection
  • via Google Groups by Unknown author, 1 day ago
    Unable to open LDAP connection
  • via Stack Overflow by Santhosh
    , 1 year ago
    Unable to open LDAP connection
  • Stack trace

    • java.lang.IllegalStateException: Unable to open LDAP connection at org.sonar.plugins.ldap.LdapContextFactory.testConnection(LdapContextFactory.java:146)[na:na] at org.sonar.plugins.ldap.LdapRealm.init(LdapRealm.java:64)[na:na] at org.sonar.server.user.SecurityRealmFactory.start(SecurityRealmFactory.java:84)[sonar-server-6.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)[picocontainer-2.15.jar:na] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)[picocontainer-2.15.jar:na] at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:320)[sonar-core-6.0.jar:na] at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)[picocontainer-2.15.jar:na] at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)[picocontainer-2.15.jar:na] at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)[picocontainer-2.15.jar:na] at org.picocontainer.behaviors.Stored.start(Stored.java:110)[picocontainer-2.15.jar:na] at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)[picocontainer-2.15.jar:na] at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)[picocontainer-2.15.jar:na] at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)[picocontainer-2.15.jar:na] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:141)[sonar-core-6.0.jar:na] at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:84)[sonar-server-6.0.jar:na] at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:687)[sonar-server-6.0.jar:na] at org.sonar.server.platform.Platform.start(Platform.java:216)[sonar-server-6.0.jar:na] at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:190)[sonar-server-6.0.jar:na] at org.sonar.server.platform.Platform.doStart(Platform.java:113)[sonar-server-6.0.jar:na] at org.sonar.server.platform.Platform.doStart(Platform.java:99)[sonar-server-6.0.jar:na] at org.sonar.server.platform.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:44)[sonar-server-6.0.jar:na] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)[tomcat-embed-core-8.0.32.jar:8.0.32] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)[tomcat-embed-core-8.0.32.jar:8.0.32] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)[tomcat-embed-core-8.0.32.jar:8.0.32] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)[tomcat-embed-core-8.0.32.jar:8.0.32] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)[tomcat-embed-core-8.0.32.jar:8.0.32] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_91] Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v2580] at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3135)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2883)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2797)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)[na:1.8.0_91] at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)[na:1.8.0_91] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)[na:1.8.0_91] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)[na:1.8.0_91] at javax.naming.InitialContext.init(InitialContext.java:244)[na:1.8.0_91] at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)[na:1.8.0_91] at org.sonar.plugins.ldap.LdapContextFactory.createInitialDirContext(LdapContextFactory.java:95)[na:na] at org.sonar.plugins.ldap.LdapContextFactory.createBindContext(LdapContextFactory.java:83)[na:na] at org.sonar.plugins.ldap.LdapContextFactory.testConnection(LdapContextFactory.java:142)[na:na] ... 33 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 8 months ago
    9 times, 1 year ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 7 months ago
    Unknown user
    Once, 9 months ago
    4 more bugmates