Hazelcast实例不活跃! (com.hazelcast.core.HazelcastInstanceNotActiveException)。消息有效内容的类型为:HashMap

时间:2015-06-22 08:26:35

标签: java mule hazelcast mule-cluster

我已经在java中使用MuleSoft 3.5.1实现了一个服务应用程序,它在集群服务器中运行,有时我收到错误" Hazelcast实例不活跃!"并且所有服务都是blobed,所以我必须重启两个服务器来解决问题。 hazelcast-3.1.6.jar在我的项目中。

     ERROR 2015-06-22 09:39:00,425 [[gs_p_api_QA-vGS_P_0_1_18].http1_connector.receiver.06] org.mule.exception.DefaultMessagingExceptionStrategy:
*****************************************************************************
Message               : Hazelcast instance is not active! (com.hazelcast.core.HazelcastInstanceNotActiveException). Message payload is of type: HashMap
Code                  : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. Hazelcast instance is not active! (com.hazelcast.core.HazelcastInstanceNotActiveException)
  com.hazelcast.spi.impl.ProxyServiceImpl$ProxyRegistry:220 (null)
2. Hazelcast instance is not active! (com.hazelcast.core.HazelcastInstanceNotActiveException). Message payload is of type: HashMap (org.mule.api.MessagingException)
  org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active!
        at com.hazelcast.spi.impl.ProxyServiceImpl$ProxyRegistry.<init>(ProxyServiceImpl.java:220)
        at com.hazelcast.spi.impl.ProxyServiceImpl$ProxyRegistry.<init>(ProxyServiceImpl.java:207)
        at com.hazelcast.spi.impl.ProxyServiceImpl$1.createNew(ProxyServiceImpl.java:69)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

如何最终解决此问题?

2 个答案:

答案 0 :(得分:1)

我遇到了&#34; com.hazelcast.core.HazelcastInstanceNotActiveException的类似例外:Hazelcast实例未激活!&#34;在运行Web应用程序时。就我而言,它是由OutOfMemory引起的,尽管最初并不明显。

我认为你可能有内存问题,这可能会导致HashMap过大。

答案 1 :(得分:1)

有时错误&#34; Hazelcast实例不活跃&#34;由于内存不足错误导致Stash不可用时显示。

https://confluence.atlassian.com/stashkb/stash-become-unresponsive-with-hazelcast-instance-is-not-active-726369931.html