Spring Boot 引起原因:java.io. IO异常:找不到与群集的连接

jjjwad0x  于 2022-11-05  发布在  Spring
关注(0)|答案(1)|浏览(129)

您好,在微服务上工作时,在启动Hazelcast上执行压力测试时工作正常,但在一些负载后客户端关闭出现异常原因:java.io.IOException:找不到到群集的连接错误连续发生。我无法解决此问题。

2022-04-04 17:34:29.926 ERROR 8 --- [o-8080-exec-172] o.a.c.c.C.[.[.[.[dispatcherServlet] : 
Servlet.service() for servlet [dispatcherServlet] in context with path [/offers_service] threw 
exception

com.hazelcast.client.HazelcastClientNotActiveException: Client is shutting down at 
com.hazelcast.client.impl.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:260) 
at com.hazelcast.client.impl.spi.impl.ClientInvocation.
invokeOnSelection(ClientInvocation.java:196) 
at com.hazelcast.client.impl.spi.impl.ClientInvocation.
invoke(ClientInvocation.java:143) at 
com.hazelcast.client.impl.spi.ClientProxy.invokeOnPartition(ClientProxy.java:187) at 
com.hazelcast.client.impl.spi.ClientProxy.invoke(ClientProxy.java:182) at 
com.hazelcast.client.impl.proxy.ClientMapProxy.getInternal(ClientMapProxy.java:251) at 
com.hazelcast.client.impl.proxy.ClientMapProxy.get(ClientMapProxy.java:245) at 
org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:193) at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at 
org.springframework.web.filter.RequestContextFilter.doFilterInternal
(RequestContextFilter.java:100) at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) at 
org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:193) at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at 
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) 
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 
at 
org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:193) at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at 
org.springframework.web.filter.CharacterEncodingFilter.
doFilterInternal(CharacterEncodingFilter.java:201) at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:193) at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) at 
org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:764) at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at 
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888) at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597) at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at 
java.lang.Thread.run(Thread.java:750) Caused by: java.io.IOException: No connection found to 
cluster.
at 
com.hazelcast.client.impl.connection.nio.ClientConnectionManagerImpl.
checkInvocationAllowed(ClientConnectionManagerImpl.java:486)
at 
com.hazelcast.client.impl.spi.impl.ClientInvocationServiceImpl.
checkInvocationAllowed(ClientInvocationServiceImpl.java:279)
at 
com.hazelcast.client.impl.spi.impl.ClientInvocation.invokeOnSelection(ClientInvocation.java:
165)
... 38 common frames omitted

相关问题