uudashr / jsmpp

Java SMPP (Short Message Peer-to-peer Protocol) API
Apache License 2.0
123 stars 118 forks source link

Session state CLOSED #52

Open indukumar opened 8 years ago

indukumar commented 8 years ago

Hi,I am new to jsmpp and getting the following exception

Message sending failed java.io.IOException: Cannot submitShortMessage while in state CLOSED.

My log onStateChange method : State changed from CLOSED to BOUND_TRX on org.jsmpp.session.SMPPSession@3bfc9f89 and isBound of new sate is true,isBound of old sate is false.

Often facing this issue ,i tried reconnecting but the client says that "your connection is already active but you keep on reconnecting",also asking for the PDU logs.On restarting my application everything working fine.

So, please kindly help me to overcome this exception.

lzwill commented 1 year ago

Any update for this? I'm also having this problem.

shakuntalachaya commented 1 month ago

Hi Everyone.. im also facing this issue. When restarting my service everything works fine. Can anybody have a solution to auto connect to session when it is closed.