Gemfire client application throws "com.gemstone.gemfire.cache.client.ServerRefusedConnectionException" after upgrading the Gemfire version.
search cancel

Gemfire client application throws "com.gemstone.gemfire.cache.client.ServerRefusedConnectionException" after upgrading the Gemfire version.

book

Article ID: 294425

calendar_today

Updated On:

Products

VMware Tanzu Gemfire

Issue/Introduction

The Gemfire client application throws below "com.gemstone.gemfire.cache.client.ServerRefusedConnectionException" after upgrading the Gemfire version.

com.gemstone.gemfire.cache.client.ServerRefusedConnectionException: xxxxxxx(server:xxxx)<v1>:41001(version:UNKNOWN[ordinal=150]) refused connection: Peer or client version with ordinal 30 not supported. Highest known version is 1.15.0 Client: /xx.xxx.x.x:xxxx.
at com.gemstone.gemfire.internal.cache.tier.sockets.HandShake.readMessage(HandShake.java:1413)
at com.gemstone.gemfire.internal.cache.tier.sockets.HandShake.greet(HandShake.java:1267)
at com.gemstone.gemfire.cache.client.internal.ConnectionImpl.connect(ConnectionImpl.java:125)
at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:113)
at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:228)
at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.prefillConnection(ConnectionManagerImpl.java:790)
at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.prefill(ConnectionManagerImpl.java:733)
at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl$PrefillConnectionsTask.run2(ConnectionManagerImpl.java:889)
at com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1247)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)

 


Environment

Product Version: 9.15

Cause

This error indicates that an older version of the Gemfire client that is incompatible with the current running version of Gemfire is trying to connect to the server.

Resolution

Gemfire client applications should be upgraded to a compatible Gemfire version to resolve this issue. Normally, older clients are compatible with newer servers, but once they become very old and have not been supported for years, they will become incompatible with new Gemfire servers and will throw errors.