Hazelcast Client-Server mode with Portable Serialization

36 views
Skip to first unread message

Nicholas Formosa

unread,
Sep 1, 2022, 6:57:33 AM9/1/22
to Hazelcast
Hi all

We're moving our microservices from embedded to a client-server approach. We've updated our hibernate objects to be VersionedPortable. Everything seems to be working well until we load up Management Center and try to access the objects via console. We get the following error:

Server request error: Failed to execute console command on member 127.0.0.1:5701 from cluster starfish: com.hazelcast.nio.serialization.HazelcastSerializationException: No DataSerializerFactory registered for namespace: 821624831

I tried following the process, and it seems that once the data is loaded from HZ, it tries to serialize using DataSerializer instead of portable Serializer

We have 2 configs, one for the Server side and one for the Client side. Both have the following setup :


.setSerializationConfig(
            new SerializationConfig()
                   .setUseNativeByteOrder(true)
                   .setPortableVersion(0)
                   .setPortableFactories(factories)
)


Any help would be really appreciated. 

Regards
Nick
Reply all
Reply to author
Forward
0 new messages