HazelcastSerializationException

Description

Starting both server.product and swingclient.product from Eclipse I get tons of the following entry in the console:

12:13:13.106 MulticastJoiner: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Trying to join to discovered node: Address[192.168.1.31]:5701 [24]
12:13:13.110 SocketConnector: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Connecting to /192.168.1.31:5701, timeout: 0, bind-any: true [54]
12:13:13.112 TcpIpConnectionManager: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Established socket connection between /192.168.1.31:57012 [54]
12:13:13.116-----------> ReadHandler: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] hz._hzInstance_1_adempiere.idempiere/nostromo.IO.thread-in-0 Closing socket to endpoint Address[192.168.1.31]:5701, Cause:com.hazelcast.nio.serialization.HazelcastSerializationException: No DataSerializerFactory registered for namespace: 0 [55]
com.hazelcast.nio.serialization.HazelcastSerializationException: No DataSerializerFactory registered for namespace: 0
at com.hazelcast.nio.serialization.DataSerializer.read(DataSerializer.java:98)
at com.hazelcast.nio.serialization.DataSerializer.read(DataSerializer.java:39)
at com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:41)
at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:276)
at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:200)
at com.hazelcast.nio.NodeIOService.toObject(NodeIOService.java:281)
at com.hazelcast.nio.tcp.DefaultPacketReader.handleBind(DefaultPacketReader.java:65)
at com.hazelcast.nio.tcp.DefaultPacketReader.handlePacket(DefaultPacketReader.java:57)
at com.hazelcast.nio.tcp.DefaultPacketReader.readPacket(DefaultPacketReader.java:46)
at com.hazelcast.nio.tcp.SocketPacketReader.read(SocketPacketReader.java:41)
at com.hazelcast.nio.tcp.ReadHandler.handle(ReadHandler.java:113)
at com.hazelcast.nio.tcp.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:49)
at com.hazelcast.nio.tcp.AbstractIOSelector.handleSelectionKeys(AbstractIOSelector.java:168)
at com.hazelcast.nio.tcp.AbstractIOSelector.run(AbstractIOSelector.java:141)

12:13:13.115 TcpIpConnection: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Connection [Address[192.168.1.31]:5701] lost. Reason: com.hazelcast.nio.serialization.HazelcastSerializationException[No DataSerializerFactory registered for namespace: 0] [55]
12:13:14.208 MulticastJoiner: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Trying to join to discovered node: Address[192.168.1.31]:5701 [24]
12:13:14.210 SocketConnector: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Connecting to /192.168.1.31:5701, timeout: 0, bind-any: true [54]
12:13:14.211 TcpIpConnectionManager: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Established socket connection between /192.168.1.31:48585 [54]
12:13:14.215 TcpIpConnection: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] Connection [Address[192.168.1.31]:5701] lost. Reason: com.hazelcast.nio.serialization.HazelcastSerializationException[No DataSerializerFactory registered for namespace: 0] [57]
12:13:14.216-----------> ReadHandler: [192.168.1.31]:5702 [adempiere.idempiere/nostromo] [3.5.3] hz._hzInstance_1_adempiere.idempiere/nostromo.IO.thread-in-1 Closing socket to endpoint Address[192.168.1.31]:5701, Cause:com.hazelcast.nio.serialization.HazelcastSerializationException: No DataSerializerFactory registered for namespace: 0 [57]
com.hazelcast.nio.serialization.HazelcastSerializationException: No DataSerializerFactory registered for namespace: 0
at com.hazelcast.nio.serialization.DataSerializer.read(DataSerializer.java:98)
at com.hazelcast.nio.serialization.DataSerializer.read(DataSerializer.java:39)
at com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:41)
at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:276)
at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:200)
at com.hazelcast.nio.NodeIOService.toObject(NodeIOService.java:281)
at com.hazelcast.nio.tcp.DefaultPacketReader.handleBind(DefaultPacketReader.java:65)
at com.hazelcast.nio.tcp.DefaultPacketReader.handlePacket(DefaultPacketReader.java:57)
at com.hazelcast.nio.tcp.DefaultPacketReader.readPacket(DefaultPacketReader.java:46)
at com.hazelcast.nio.tcp.SocketPacketReader.read(SocketPacketReader.java:41)
at com.hazelcast.nio.tcp.ReadHandler.handle(ReadHandler.java:113)
at com.hazelcast.nio.tcp.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:49)
at com.hazelcast.nio.tcp.AbstractIOSelector.handleSelectionKeys(AbstractIOSelector.java:168)
at com.hazelcast.nio.tcp.AbstractIOSelector.run(AbstractIOSelector.java:141)

Only when I kill the server the swing client is able to continue and start.

Environment

None

Activity

Show:
Hiep Lq
October 28, 2015, 12:59 PM

Hi , maybe you try rollback bellow ticket and retest: (c565c832447d) or even (0e848b67e2cb)

Carlos Ruiz
October 28, 2015, 2:40 PM

Please check IRC meeting log for the tests done, workaround, etc:
http://www.globalqss.com/idempiere/irclog/%23idempiere.2015-10-28.log.html#t2015-10-28T13:09:40

Carlos Ruiz
October 28, 2015, 4:04 PM

In the end after long/deep debug session
NOTE: attached sources and added a breakpoint at com.hazelcast.util.ServiceLoader:113

This seems to be related to classloader for swing - server must not be affected.

The server is correctly loading the hooks present at hazelcast-3.5.3.jar -> /META-INF/services/com.hazelcast.DataSerializerHook

But swing client is not finding that file.

Norbert Bede
January 4, 2016, 2:55 PM
Edited

Hi,

we upgraded our server to 3.1 to date 10.dec.2015, so this upggrade include IDEMPIERE-2868. when enable hazelcast then getting same error. (below) env.: amazon ec2. we are running ec2 autodiscovery (no tcp, no multicast) - doc: http://docs.hazelcast.org/docs/3.3/manual/html/ec2autodiscovery.html.

before upgrade cant get work hazelcast... im a bit frustrated now :|

ERROR LOG
15:42:57.599-----------> ReadHandler: [172.31.39.251]:5701 [idempiere] [3.5.2] hz._hzInstance_1_idempiere.IO.thread-in-1 Closing socket to endpoint Address[172.31.37.235]:5701, Cause:java.io.EOFException: Remote socket closed! [73]
15:43:39.753-----------> ReadHandler: [172.31.39.251]:5701 [idempiere] [3.5.2] hz._hzInstance_1_idempiere.IO.thread-in-2 Closing socket to endpoint null, Cause:com.hazelcast.nio.serialization.HazelcastSerializationException: No DataSerializerFactory registered for namespace: 0 [75]
com.hazelcast.nio.serialization.HazelcastSerializationException: No DataSerializerFactory registered for namespace: 0
at com.hazelcast.nio.serialization.DataSerializer.read(DataSerializer.java:98)
at com.hazelcast.nio.serialization.DataSerializer.read(DataSerializer.java:39)
at com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:41)
at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:276)
at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:200)
at com.hazelcast.nio.NodeIOService.toObject(NodeIOService.java:281)
at com.hazelcast.nio.tcp.DefaultPacketReader.handleBind(DefaultPacketReader.java:65)
at com.hazelcast.nio.tcp.DefaultPacketReader.handlePacket(DefaultPacketReader.java:57)
at com.hazelcast.nio.tcp.DefaultPacketReader.readPacket(DefaultPacketReader.java:46)
at com.hazelcast.nio.tcp.SocketPacketReader.read(SocketPacketReader.java:41)
at com.hazelcast.nio.tcp.ReadHandler.handle(ReadHandler.java:113)
at com.hazelcast.nio.tcp.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:49)
at com.hazelcast.nio.tcp.AbstractIOSelector.handleSelectionKeys(AbstractIOSelector.java:168)
at com.hazelcast.nio.tcp.AbstractIOSelector.run(AbstractIOSelector.java:141)

remark: Meanwhile new version 3.5.4 released. suggesting to upgrade.

Carlos Ruiz
July 11, 2018, 1:14 PM

Closing as lack of community interest - this has been probably fixed as hazelcast has been stabilized.

Assignee

Unassigned

Reporter

Dirk Niemeyer

Labels

None

Tested By

None

Components

Affects versions

Priority

Major
Configure