我要连接这个配置:
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我不认为有任何配置可以像错误堆栈跟踪中所描述的那样设置nodeStatus。
请让我们知道要做什么配置。谢谢!
发布于 2019-11-05 09:18:35
正如@emre在评论中指出的那样,有官方文本:
..。管理中心与具有相同或以前的次要版本的Hazelcast IMDG集群成员兼容。例如,Hazelcast管理中心3.12.x版本与具有3.11.x或3.12.x版本的Hazelcast IMDG集群成员一起工作。
来自黑泽尔广播管理中心文件。
异常消息(DeserializationException: nodeState field is null)并不能真正帮助您实现这一点。同样的事情发生在我身上,我在1.5.9.RELEASE版本中使用了Spring父程序,因此它已经老了哈泽尔卡斯特(3.7.8)的依赖性。您可以始终在spring-boot-dependencies项目的pom.xml文件中检查spring自动配置依赖项的版本。在“属性”部分中,您可以看到这样定义的hazelcast版本:
<hazelcast.version>3.7.8</hazelcast.version>
你可以的
spring-boot-starter-parent版本更改为更新版本(例如,2.2.0.RELEASE),该问题应取消或pom.xml中的属性。https://stackoverflow.com/questions/56355195
复制相似问题