powered by Jive Software

Hazelcast 2.4.0 not starting


#1

Hello,

i cant run a Openfire 4.3.1 Cluster (Pluginversion 2.4.0), because i got the following error while booting the cluster:

java.lang.NoClassDefFoundError: com/hazelcast/config/MapConfig
at org.jivesoftware.openfire.plugin.util.cache.ClusteredCacheFactory.startCluster(ClusteredCacheFactory.java:133) ~[hazelcast-2.4.0.jar!/:?]
at org.jivesoftware.util.cache.CacheFactory.startClustering(CacheFactory.java:741) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.cluster.ClusterManager.startup(ClusterManager.java:299) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.plugin.HazelcastPlugin.initializeClustering(HazelcastPlugin.java:83) ~[hazelcast-2.4.0.jar!/:?]
at org.jivesoftware.openfire.plugin.HazelcastPlugin.access$000(HazelcastPlugin.java:43) ~[hazelcast-2.4.0.jar!/:?]
at org.jivesoftware.openfire.plugin.HazelcastPlugin$1.pluginsMonitored(HazelcastPlugin.java:54) ~[hazelcast-2.4.0.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:1234) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.container.PluginManager.addPluginManagerListener(PluginManager.java:1153) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.plugin.HazelcastPlugin.initializePlugin(HazelcastPlugin.java:50) ~[hazelcast-2.4.0.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:597) [xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:354) [xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:342) [xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
Caused by: java.lang.ClassNotFoundException: com.hazelcast.config.MapConfig
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_171]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_171]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_171]
… 16 more


#2

while testing i got this error too:

2019.01.31 13:13:24 ERROR [ClusterManager events dispatcher]: org.jivesoftware.openfire.muc.MultiUserChatManager - MultiUserChatManager: Unable to add test as component.
org.xmpp.component.ComponentException: com.hazelcast.nio.serialization.HazelcastSerializationException: Problem while reading Externalizable class: org.jivesoftware.openfire.disco.IQDiscoItemsHandler$ClusteredServerItem, exception: java.io.InvalidClassException: org.dom4j.QName; local class incompatible: stream classdesc serialVersionUID = 5644799473124290157, local class serialVersionUID = -3100418559288041410
at org.jivesoftware.openfire.component.InternalComponentManager.addComponent(InternalComponentManager.java:179) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.muc.MultiUserChatManager.registerMultiUserChatService(MultiUserChatManager.java:158) [xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.muc.MultiUserChatManager.joinedCluster(MultiUserChatManager.java:796) [xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.cluster.ClusterManager$2.run(ClusterManager.java:111) [xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
Caused by: com.hazelcast.nio.serialization.HazelcastSerializationException: Problem while reading Externalizable class: org.jivesoftware.openfire.disco.IQDiscoItemsHandler$ClusteredServerItem, exception: java.io.InvalidClassException: org.dom4j.QName; local class incompatible: stream classdesc serialVersionUID = 5644799473124290157, local class serialVersionUID = -3100418559288041410
at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$ExternalizableSerializer.read(JavaDefaultSerializers.java:157) ~[?:?]
at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$ExternalizableSerializer.read(JavaDefaultSerializers.java:133) ~[?:?]
at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:48) ~[?:?]
at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toObject(AbstractSerializationService.java:187) ~[?:?]
at com.hazelcast.map.impl.proxy.MapProxySupport.toObject(MapProxySupport.java:1245) ~[?:?]
at com.hazelcast.map.impl.proxy.MapProxyImpl.get(MapProxyImpl.java:120) ~[?:?]
at org.jivesoftware.openfire.plugin.util.cache.ClusteredCache.get(ClusteredCache.java:88) ~[?:?]
at org.jivesoftware.openfire.plugin.util.cache.ClusteredCache.get(ClusteredCache.java:38) ~[?:?]
at org.jivesoftware.util.cache.CacheWrapper.get(CacheWrapper.java:137) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.util.cache.CacheWrapper.get(CacheWrapper.java:29) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.disco.IQDiscoItemsHandler.addComponentItem(IQDiscoItemsHandler.java:364) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.disco.IQDiscoItemsHandler.addServerItemsProvider(IQDiscoItemsHandler.java:264) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.start(MultiUserChatServiceImpl.java:1318) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
at org.jivesoftware.openfire.component.InternalComponentManager.addComponent(InternalComponentManager.java:155) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]
… 3 more


#3

i cant run a Openfire 4.3.1 Cluster (Pluginversion 2.4.0)

org.jivesoftware.util.cache.CacheFactory.startClustering(CacheFactory.java:741) ~[xmppserver-4.4.0-SNAPSHOT.jar:4.4.0-SNAPSHOT]

It looks to me like you’re running Openfire 4.4.0-SNAPSHOT, not 4.3.1. Either way, it seems that your installation is pretty poorly, take a close look at the setup, try shutting down, deleting the hazelcast plugin and hazelcast folder, and re-installing.

Greg


#4

its the master branch just after it was bumped up to 4.4 … .so its versioncode 4.3.1 with version number 4.4.0 thats all…
i compiled it for myself