How do avoid 403: Replication Is Standby ?

vadivelan Member Posts: 3

We are using “spring-cloud-starter-stream-solace” to consume the message from queue but receiving the below error frequently. Please refer the below details and help us to avoid the issue.

application.yml configuration:







                       clientUsername: <<User Name>>

                       connectRetries: 3

                       connectRetriesPerHost: 0

                       reconnectRetries: 3

                       host: tcps://<<Host Name 1>>:55443,tcps:// <<Host Name 2>>:55443

                       msgVpn: <<VPN Name>>



              <<function name>>-in-0:


                    queueAdditionalSubscriptions: <<topic name>>

                    provisionDurableQueue: true

                    queueNamePrefix: ''

                    useFamiliarityInQueueName: false

                    useDestinationEncodingInQueueName: false

                    useGroupNameInQueueName: false

Error Message - Received error while trying to read message from endpoint <<Queue Name>>

com.solacesystems.jcsmp.StaleSessionException: Tried to call receive on a stopped message consumer.

             at com.solacesystems.jcsmp.impl.flow.FlowHandleImpl.throwClosedException(

             at com.solacesystems.jcsmp.impl.flow.FlowHandleImpl.receive(

             at com.solacesystems.jcsmp.impl.flow.FlowHandleImpl.receive(





             at java.base/java.util.concurrent.Executors$ Source)

             at java.base/

             at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(

             at java.base/java.util.concurrent.ThreadPoolExecutor$

             at java.base/

Caused by: com.solacesystems.jcsmp.JCSMPTransportException: (JCSMPTransportException) Error communicating with the router. (KeepAlive)

             at com.solacesystems.jcsmp.protocol.impl.TcpClientChannel$

             ... 4 common frames omitted

Caused by: com.solacesystems.jcsmp.JCSMPErrorResponseException: 403: Replication Is Standby

             at com.solacesystems.jcsmp.protocol.impl.TcpChannel.executePostOnce(

             at com.solacesystems.jcsmp.protocol.impl.ChannelOpStrategyClient.performOpen(

             at com.solacesystems.jcsmp.protocol.impl.TcpClientChannel.performOpenSingle(

             at com.solacesystems.jcsmp.protocol.impl.TcpClientChannel.access$800(

             at com.solacesystems.jcsmp.protocol.impl.TcpClientChannel$

             ... 4 common frames omitted


  • vadivelan
    vadivelan Member Posts: 3

    Hi @JamilAhmed, Need your support to resolve the issue.

  • JamilAhmed
    JamilAhmed Member, Employee Posts: 18 Solace Employee

    Hi @vadivelan,

    I just tested in my environment with some brokers that are in a DR replication setup and have reproduced the error.

    There are two parts here:

    1. The reconnect parameters you've set that govern how long the services wait for the broker connection to get restored. (You're essentially giving up too quickly.)
    2. Excessive logging when the service gives up connecting but the binder continues to do some work

    For point (1), the settings and resulting behaviour is the same as what @Kaliappans hit in an earlier issue. @marc recommended to adjust them or perhaps even take them out entirely and rely on the defaults instead:

    For point (2), looks like this has been seen before too and is already tracked in a Jira issue: While previously it was reported in the context of a High-Availability switch, your case involves a switch between Replication mates. We'll make sure to cover off all these situations in the behaviour improvement for it. (fyi: @giri, @amackenzie)