Skip to content

Receive negative bind response: Negative response 00000005 found #180

Open
@ilkin

Description

@ilkin

Sometimes we retrieve the below exception during reconnection and only works after restarting the application:

Session state is CLOSED. Trying reconnect... 
Trying disconnect ... 
Disconnected...
Waiting 1 seconds to retry
java.io.IOException: Receive negative bind response: Negative response 00000005 found
	at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:246)
	at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:160)

We are using jsmpp-2.2.0 and some options are

bindType = BindType.BIND_TX
enquireLinkTimer=10000
transactionTimer=20000L

Our reconnection conditions like below:

if (smppSession.getSessionState() == SessionState.CLOSED 
     || smppSession.getSessionState() == SessionState.OUTBOUND
     || smppSession.getSessionState() == SessionState.UNBOUND) {
    //smppSession.unbindAndClose then smppSession.connectAndBind
    reconnect();
}

In smpp3.4 specification written
ESME_RALYBND, 0x00000005, ESME Already in Bound State

How can we resolve this problem, and what is the reason? Please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions