javax.naming.CommunicationException: mediwebtst.aphp.fr:389 [Root exception is java.net.UnknownHostException: mediwebtst.aphp.fr]]

Oracle Community | 925694 | 5 years ago
  1. 0

    javax.naming.PartialResultException when log in with active directory.

    Oracle Community | 5 years ago | 925694
    javax.naming.CommunicationException: mediwebtst.aphp.fr:389 [Root exception is java.net.UnknownHostException: mediwebtst.aphp.fr]]
  2. 0

    Active Directory Referral Timeouts |Jive Community

    jivesoftware.com | 4 months ago
    javax.naming.CommunicationException: sample.host.com:389 [Root exception is java.net.ConnectException: Connection refused]]
  3. 0

    I suspect the ActiveDirectory server went down, and jenkins tried to authenticate currently logged on user and failed throwing this exception. Stack trace: {code} org.acegisecurity.BadCredentialsException: Failed to retrieve user information for jusurb; nested exception is javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: my.domainserver.xx:389 [Root exception is java.net.ConnectException: Connection refused]] at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:309) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:193) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:137) at hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:30) at org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.loadUserDetails(TokenBasedRememberMeServices.java:308) at org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.autoLogin(TokenBasedRememberMeServices.java:218) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$1.autoLogin(ActiveDirectorySecurityRealm.java:140) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: my.domainserver.xx:389 [Root exception is java.net.ConnectException: Connection refused]] at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:242) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration.java:189) at hudson.plugins.active_directory.LDAPSearchBuilder.searchOne(LDAPSearchBuilder.java:44) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:263) ... 47 more Caused by: javax.naming.CommunicationException: my.domainserver.xx:389 [Root exception is java.net.ConnectException: Connection refused] at com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:92) at com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:150) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(LdapNamingEnumeration.java:357) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:226) ... 50 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:208) at com.sun.jndi.ldap.Connection.createSocket(Connection.java:366) at com.sun.jndi.ldap.Connection.<init>(Connection.java:201) at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:136) at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1600) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2698) at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:316) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:193) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:152) at com.sun.jndi.url.ldap.ldapURLContextFactory.getObjectInstance(ldapURLContextFactory.java:52) at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:601) at javax.naming.spi.NamingManager.processURL(NamingManager.java:381) at javax.naming.spi.NamingManager.processURLAddrs(NamingManager.java:361) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:333) at com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:111) ... 53 more {code}

    Jenkins JIRA | 3 years ago | Justinas Urbanavicius
    javax.naming.CommunicationException: my.domainserver.xx:389 [Root exception is java.net.ConnectException: Connection refused]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fetching email and full name for "JetBrains DC" on sso is not working

    YouTrack | 3 years ago
    javax.naming.CommunicationException: Labs.IntelliJ.Net:636 [Root exception is java.net.UnknownHostException: Labs.IntelliJ.Net]]
  6. 0

    search on Active Directory with SSL over JNDI fails

    Oracle Community | 2 decades ago | 843793
    javax.naming.CommunicationException: qatesting.qa.com:389. Root exception is java.net.SocketException: Socket closed at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.UnknownHostException

      mediwebtst.aphp.fr

      at java.net.PlainSocketImpl.connect()
    2. Java RT
      LdapNamingEnumeration.hasMore
      1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
      2. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      3. java.net.Socket.connect(Socket.java:520)
      4. java.net.Socket.connect(Socket.java:470)
      5. java.net.Socket.<init>(Socket.java:367)
      6. java.net.Socket.<init>(Socket.java:180)
      7. com.sun.jndi.ldap.Connection.createSocket(Connection.java:346)
      8. com.sun.jndi.ldap.Connection.<init>(Connection.java:181)
      9. com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
      10. com.sun.jndi.ldap.LdapClientFactory.createPooledConnection(LdapClientFactory.java:44)
      11. com.sun.jndi.ldap.pool.Connections.<init>(Connections.java:97)
      12. com.sun.jndi.ldap.pool.Pool.getPooledConnection(Pool.java:114)
      13. com.sun.jndi.ldap.LdapPoolManager.getLdapClient(LdapPoolManager.java:310)
      14. com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1572)
      15. com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2605)
      16. com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:284)
      17. com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
      18. com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:134)
      19. com.sun.jndi.url.ldap.ldapURLContextFactory.getObjectInstance(ldapURLContextFactory.java:35)
      20. javax.naming.spi.NamingManager.getURLObject(NamingManager.java:584)
      21. javax.naming.spi.NamingManager.processURL(NamingManager.java:364)
      22. javax.naming.spi.NamingManager.processURLAddrs(NamingManager.java:344)
      23. javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:316)
      24. com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:93)
      25. com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:132)
      26. com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(LdapNamingEnumeration.java:339)
      27. com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:208)
      28. com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration.java:171)
      28 frames
    3. oracle.security.jazn
      LDAPLoginModule.commit
      1. oracle.security.jazn.login.module.LDAPLoginModule.searchDirectGrantedRoles(LDAPLoginModule.java:976)
      2. oracle.security.jazn.login.module.LDAPLoginModule.getGrantedRoles(LDAPLoginModule.java:884)
      3. oracle.security.jazn.login.module.LDAPLoginModule.commit(LDAPLoginModule.java:501)
      3 frames
    4. Java RT
      LoginContext.login
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      5. javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      6. javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      7. javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      10. javax.security.auth.login.LoginContext.login(LoginContext.java:580)
      10 frames
    5. oracle.security.jazn
      FilterUser.authenticate
      1. oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
      2. oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:821)
      3. oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
      4. oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:817)
      5. oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1146)
      5 frames
    6. com.evermind.server
      AJPRequestHandler.run
      1. com.evermind.server.http.EvermindHttpServletRequest.checkAndSetRemoteUser(EvermindHttpServletRequest.java:3831)
      2. com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3798)
      3. com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:260)
      4. com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6525)
      5. com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3191)
      6. com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:775)
      7. com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
      8. com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
      9. com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
      9 frames
    7. oracle.oc4j.network
      ServerSocketReadHandler$SafeRunnable.run
      1. oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
      1 frame
    8. com.evermind.util
      ReleasableResourcePooledExecutor$MyWorker.run
      1. com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
      1 frame
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame