Java Hazelcast管理中心-Membres无法沟通
我要连接以下配置:Java Hazelcast管理中心-Membres无法沟通,java,spring-boot,caching,hazelcast,Java,Spring Boot,Caching,Hazelcast,我要连接以下配置: config.getManagementCenterConfig().setEnabled(true); config.getManagementCenterConfig().setUrl("http://localhost:8096/hazelcast-mancenter"); 管理中心控制台上出现错误: 2019-05-29 12:44:27 [qtp873415566-15] WARN org.eclipse.jetty.server.HttpChannel - /
config.getManagementCenterConfig().setEnabled(true);
config.getManagementCenterConfig().setUrl("http://localhost:8096/hazelcast-mancenter");
管理中心控制台上出现错误:
2019-05-29 12:44:27 [qtp873415566-15] WARN org.eclipse.jetty.server.HttpChannel - /hazelcast-mancenter/collector.do
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.hazelcast.webmonitor.model.DeserializationException: nodeState field is null
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:208)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
客户端springboot应用程序控制台出错:
2019-05-29 12:54:27.059 INFO [-,,,] 12068 --- [ main] c.h.i.m.ManagementCenterService : [10.1.204.138]:5701 [dev] [3.7.7] Hazelcast will connect to Hazelcast Management Center on address:
http://localhost:8096/hazelcast-mancenter
2019-05-29 12:54:27.090 INFO [-,,,] 12068 --- [ main] com.hazelcast.core.LifecycleService : [10.1.204.138]:5701 [dev] [3.7.7] [10.1.204.138]:5701 is STARTED
2019-05-29 12:54:27.090 INFO [-,,,] 12068 --- [MC.State.Sender] c.h.i.p.impl.PartitionStateManager : [10.1.204.138]:5701 [dev] [3.7.7] Initializing cluster partition table arrangement...
2019-05-29 12:54:27.115 INFO [-,,,] 12068 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'hazelcastInstance' of type [com.hazelcast.instance.HazelcastInstanceProxy] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-05-29 12:54:27.197 INFO [-,,,] 12068 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'cacheManager' of type [com.hazelcast.spring.cache.HazelcastCacheManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-05-29 12:54:27.205 INFO [-,,,] 12068 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'cacheAutoConfigurationValidator' of type [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration$CacheManagerValidator] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-05-29 12:54:27.292 INFO [-,,,] 12068 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$a3818d32] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-05-29 12:54:27.342 INFO [-,,,] 12068 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.instrument.web.client.feign.TraceFeignClientAutoConfiguration$FeignBeanPostProcessorConfiguration' of type [org.springframework.cloud.sleuth.instrument.web.client.feign.TraceFeignClientAutoConfiguration$FeignBeanPostProcessorConfiguration$$EnhancerBySpringCGLIB$$c6f962fb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-05-29 12:54:27.385 INFO [-,,,] 12068 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.instrument.async.AsyncDefaultAutoConfiguration' of type [org.springframework.cloud.sleuth.instrument.async.AsyncDefaultAutoConfiguration$$EnhancerBySpringCGLIB$$6f4b3654] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-05-29 12:54:28.645 INFO [-,,,] 12068 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8090 (http)
2019-05-29 12:54:28.667 INFO [-,,,] 12068 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2019-05-29 12:54:28.669 INFO [-,,,] 12068 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.15
2019-05-29 12:54:28.799 WARN [-,,,] 12068 --- [MulticastThread] c.h.i.cluster.impl.MulticastService : [10.1.204.138]:5701 [dev] [3.7.7] Received a JoinRequest with a different packet version! This -> 4, Incoming -> -84, Sender -> /10.1.204.123
2019-05-29 12:54:29.260 INFO [-,,,] 12068 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2019-05-29 12:54:29.260 INFO [-,,,] 12068 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 12542 ms
2019-05-29 12:54:30.158 WARN [-,,,] 12068 --- [MC.State.Sender] c.h.i.m.ManagementCenterService : [10.1.204.138]:5701 [dev] [3.7.7] Failed to send response, responseCode:405 url:http://localhost:8096/hazelcast-mancenter/collector.do
我看不到要进行任何配置来设置errorstack跟踪中描述的节点状态
请让我们知道要进行的配置。谢谢 如@emre在评论中所述,有关于它的官方文本: 。。。管理中心与具有相同或先前次要版本的Hazelcast IMDG集群成员兼容。例如,Hazelcast管理中心版本3.12.x与版本为3.11.x或3.12.x的Hazelcast IMDG集群成员一起使用 从 异常消息(
反序列化异常:nodeState字段为null
)对实现这一点并没有真正的帮助。
我也遇到了同样的情况,我在版本1.5.9.RELEASE
中使用了Spring boot父版本,因此它对hazelcast(3.7.8
)具有旧的依赖性。您可以始终在spring引导依赖项
projects的pom.xml
文件中检查spring自动配置依赖项的版本。在这里,您可以在属性部分看到hazelcast版本,定义如下:
3.7.8
你可以
- 将
更改为更新版本(例如spring boot starter父版本
),问题应消失或消失2.2.0.RELEASE
- 使用更新的hazelcast版本仅覆盖您自己的
中的属性pom.xml