Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive negative bind response: Negative response 00000005 found #180

Open
ilkin opened this issue Nov 8, 2022 · 1 comment
Open

Receive negative bind response: Negative response 00000005 found #180

ilkin opened this issue Nov 8, 2022 · 1 comment
Labels

Comments

@ilkin
Copy link

ilkin commented Nov 8, 2022

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

@pmoerenhout
Copy link
Member

Hi, you are using a pretty old version of the jSMPP Java library. Could you retest with 2.3.11 ?

When the other part responds with 'Already bound', it could be that you didn't close the session (and thus the TCP connection). What would help is to make a tcpdump trace, and see that the bind is send on new TCP connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants