java.lang.IllegalStateException: Unknown protocol: CB2 When use Python client

1,625 views
Skip to first unread message

wang...@gmail.com

unread,
Mar 22, 2020, 10:06:40 PM3/22/20
to Hazelcast
I use python client talking to the server and keeps going got following error.

this is hazelcast-4.0 server:

Mar 22, 2020 4:30:54 PM com.hazelcast.core.LifecycleService

INFO: [10.0.0.36]:5701 [dev] [4.0] [10.0.0.36]:5701 is STARTED

Mar 22, 2020 4:31:26 PM com.hazelcast.internal.nio.tcp.TcpIpConnection

WARNING: [10.0.0.36]:5701 [dev] [4.0] Connection[id=1, /10.0.0.36:5701->/10.0.1.156:42108, qualifier=null, endpoint=null, alive=false, connectionType=NONE] closed. Reason: Exception in Connection[id=1, /10.0.0.36:5701->/10.0.1.156:42108, qualifier=null, endpoint=null, alive=true, connectionType=NONE], thread=hz.modest_yonath.IO.thread-in-2

java.lang.IllegalStateException: Unknown protocol: CB2

at com.hazelcast.internal.nio.tcp.UnifiedProtocolDecoder.onRead(UnifiedProtocolDecoder.java:116)

at com.hazelcast.internal.networking.nio.NioInboundPipeline.process(NioInboundPipeline.java:137)

at com.hazelcast.internal.networking.nio.NioThread.processSelectionKey(NioThread.java:382)

at com.hazelcast.internal.networking.nio.NioThread.processSelectionKeys(NioThread.java:367)

at com.hazelcast.internal.networking.nio.NioThread.selectLoop(NioThread.java:293)

at com.hazelcast.internal.networking.nio.NioThread.run(NioThread.java:248)


Mar 22, 2020 4:31:29 PM com.hazelcast.internal.nio.tcp.TcpIpConnection

WARNING: [10.0.0.36]:5701 [dev] [4.0] Connection[id=2, /10.0.0.36:5701->/10.0.1.156:42110, qualifier=null, endpoint=null, alive=false, connectionType=NONE] closed. Reason: Exception in Connection[id=2, /10.0.0.36:5701->/10.0.1.156:42110, qualifier=null, endpoint=null, alive=true, connectionType=NONE], thread=hz.modest_yonath.IO.thread-in-0

java.lang.IllegalStateException: Unknown protocol: CB2

at com.hazelcast.internal.nio.tcp.UnifiedProtocolDecoder.onRead(UnifiedProtocolDecoder.java:116)

at com.hazelcast.internal.networking.nio.NioInboundPipeline.process(NioInboundPipeline.java:137)

at com.hazelcast.internal.networking.nio.NioThread.processSelectionKey(NioThread.java:382)

at com.hazelcast.internal.networking.nio.NioThread.processSelectionKeys(NioThread.java:367)

at com.hazelcast.internal.networking.nio.NioThread.selectLoop(NioThread.java:293)

at com.hazelcast.internal.networking.nio.NioThread.run(NioThread.java:248)



client code is as following

---------------

import hazelcast

from hazelcast.config import ClientProperties


config = hazelcast.ClientConfig()

config.network_config.addresses.append("10.0.0.36:5701")

config.set_property(ClientProperties.INVOCATION_TIMEOUT_SECONDS.name, 2) 


client = hazelcast.HazelcastClient(config)


personnel_map = client.get_map("personnel-map")

personnel_map.put("Alice", "IT")

personnel_map.put("Bob", "IT")

personnel_map.put("Clark", "IT")


print("Added IT personnel. Printing all known personnel")


for person, department in personnel_map.entry_set().result():

    print("{} is in {} department".format(person, department))

    

client.shutdown()

--------------


Joe Sherwin

unread,
Mar 22, 2020, 11:56:40 PM3/22/20
to haze...@googlegroups.com
The python client for Hazelcast IMDG 4.0 is not yet released. 4.0 client protocol enhancements breaks compatibility with the 3.x python client.

On Mar 22, 2020, at 10:06 PM, wang...@gmail.com wrote:


--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/c47a981a-1daf-4bdc-90b1-096a2d4b8750%40googlegroups.com.

This message contains confidential information and is intended only for the individuals named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version. -Hazelcast

Helena Wang

unread,
Mar 23, 2020, 1:57:45 AM3/23/20
to haze...@googlegroups.com
Thanks a lot. I will use the lower version. 

Joe Sherwin <j...@hazelcast.com> 于2020年3月22日周日 下午8:56写道:
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/Kc5NOR_0ewE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/70446E37-1F87-4F62-BF56-36B80C448D2D%40hazelcast.com.

Joe Sherwin

unread,
Mar 23, 2020, 3:15:04 PM3/23/20
to haze...@googlegroups.com
Helena, here’s the compatibility chart for reference. https://hazelcast.org/imdg/clients-languages/#client-compatibility The latest version of the python client (3.12.3) was released on 3/19/2020. The latest IMDG server version is 3.12.6. You can find it here https://hazelcast.org/imdg/download/archives/#hazelcast-imdg-3-12-6. I also highly recommend utilizing the management center app version (3.12.9), here... https://hazelcast.org/imdg/download/archives/#hazelcast-management_center.



Reply all
Reply to author
Forward
0 new messages