You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "wuchunfu (via GitHub)" <gi...@apache.org> on 2023/04/16 07:02:04 UTC

[GitHub] [incubator-streampark] wuchunfu opened a new issue, #2636: [Improve] Resolve the issue of program startup LDAP health check failed

wuchunfu opened a new issue, #2636:
URL: https://github.com/apache/incubator-streampark/issues/2636

   ### Search before asking
   
   - [X] I had searched in the [feature](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
   
   
   ### Description
   
   Resolve the issue of program startup LDAP health check failed
   
   Here is the error message
   
   ```bash
   2023-04-16 14:58:00 | INFO  | RMI TCP Connection(3)-192.168.18.188 | io.undertow.servlet:388] Initializing Spring DispatcherServlet 'dispatcherServlet'
   2023-04-16 14:58:00 | INFO  | RMI TCP Connection(3)-192.168.18.188 | org.springframework.web.servlet.DispatcherServlet:525] Initializing Servlet 'dispatcherServlet'
   2023-04-16 14:58:00 | INFO  | RMI TCP Connection(3)-192.168.18.188 | org.springframework.web.servlet.DispatcherServlet:547] Completed initialization in 3 ms
   2023-04-16 14:58:00 | WARN  | RMI TCP Connection(2)-192.168.18.188 | org.springframework.boot.actuate.ldap.LdapHealthIndicator:94] LDAP health check failed
   org.springframework.ldap.CommunicationException: localhost:389; nested exception is javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused (Connection refused)]
   	at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:108)
   	at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:363)
   	at org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:172)
   	at org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:806)
   	at org.springframework.boot.actuate.ldap.LdapHealthIndicator.doHealthCheck(LdapHealthIndicator.java:50)
   	at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
   	at org.springframework.boot.actuate.health.HealthIndicator.getHealth(HealthIndicator.java:37)
   	at org.springframework.boot.actuate.health.HealthEndpoint.getHealth(HealthEndpoint.java:94)
   	at org.springframework.boot.actuate.health.HealthEndpoint.getHealth(HealthEndpoint.java:41)
   	at org.springframework.boot.actuate.health.HealthEndpointSupport.getLoggedHealth(HealthEndpointSupport.java:172)
   	at org.springframework.boot.actuate.health.HealthEndpointSupport.getContribution(HealthEndpointSupport.java:145)
   	at org.springframework.boot.actuate.health.HealthEndpointSupport.getAggregateContribution(HealthEndpointSupport.java:156)
   	at org.springframework.boot.actuate.health.HealthEndpointSupport.getContribution(HealthEndpointSupport.java:141)
   	at org.springframework.boot.actuate.health.HealthEndpointSupport.getHealth(HealthEndpointSupport.java:110)
   	at org.springframework.boot.actuate.health.HealthEndpointSupport.getHealth(HealthEndpointSupport.java:81)
   	at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:88)
   	at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:78)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282)
   	at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:74)
   	at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60)
   	at org.springframework.boot.actuate.endpoint.jmx.EndpointMBean.invoke(EndpointMBean.java:124)
   	at org.springframework.boot.actuate.endpoint.jmx.EndpointMBean.invoke(EndpointMBean.java:97)
   	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
   	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
   	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
   	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
   	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
   	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
   	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
   	at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
   	at sun.rmi.transport.Transport$1.run(Transport.java:200)
   	at sun.rmi.transport.Transport$1.run(Transport.java:197)
   	at java.security.AccessController.doPrivileged(Native Method)
   	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
   	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
   	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
   	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
   	at java.security.AccessController.doPrivileged(Native Method)
   	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: javax.naming.CommunicationException: localhost:389
   	at com.sun.jndi.ldap.Connection.<init>(Connection.java:238)
   	at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137)
   	at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1609)
   	at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749)
   	at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)
   	at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)
   	at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)
   	at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
   	at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
   	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
   	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
   	at javax.naming.InitialContext.init(InitialContext.java:244)
   	at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)
   	at org.springframework.ldap.core.support.LdapContextSource.getDirContextInstance(LdapContextSource.java:42)
   	at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:351)
   	... 47 common frames omitted
   Caused by: java.net.ConnectException: Connection refused (Connection refused)
   	at java.net.PlainSocketImpl.socketConnect(Native Method)
   	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
   	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
   	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
   	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   	at java.net.Socket.connect(Socket.java:589)
   	at java.net.Socket.connect(Socket.java:538)
   	at java.net.Socket.<init>(Socket.java:434)
   	at java.net.Socket.<init>(Socket.java:211)
   	at com.sun.jndi.ldap.Connection.createSocket(Connection.java:375)
   	at com.sun.jndi.ldap.Connection.<init>(Connection.java:215)
   	... 61 common frames omitted
   ```
   
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-streampark] wolfboys closed issue #2636: [Improve] Resolve the issue of program startup LDAP health check failed

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys closed issue #2636: [Improve] Resolve the issue of program startup LDAP health check failed
URL: https://github.com/apache/incubator-streampark/issues/2636


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org