nguyenbahuong / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

SMPP Gateway java.io.IOException: Failed connecting #505

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hello!
start smsserver, in my db(mysql) insert row(sms) to send with number 
0000000(wrong).
Server try send my sms ,but got error

org.jsmpp.extra.NegativeResponseException: Negative response 0000000b found
    at org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:215)
    at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:271)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:320)
    at org.smslib.smpp.jsmpp.JSMPPGateway.sendMessage(JSMPPGateway.java:300)
    at org.smslib.AGateway$QueueManager.process(AGateway.java:503)
    at org.smslib.threading.AServiceThread.run(AServiceThread.java:105)
33250  2012-09-05 13:38:43,675 [QueueManager [mysmpp]] WARN  
org.smslib.AGateway$QueueManager  - GTW: mysmpp: Queue exception, marking 
gateway for reset.

after that gateway try to recconnect over and over again, but catch error

0963  2012-09-05 13:39:11,388 [WatchDog] WARN  org.smslib.Service$WatchDog  - 
Gateway: mysmpp restarting.
60963  2012-09-05 13:39:11,388 [WatchDog] WARN  
org.smslib.smpp.jsmpp.JSMPPGateway  - GTW: mysmpp: SMPP session not bound.
60963  2012-09-05 13:39:11,388 [WatchDog] ERROR org.smslib.Service$WatchDog  - 
Error while starting Gateway: mysmpp
java.io.IOException: Failed connecting
    at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:218)
    at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200)
    at org.smslib.smpp.jsmpp.JSMPPGateway.startGateway(JSMPPGateway.java:145)
    at org.smslib.Service$WatchDog.process(Service.java:1597)
    at org.smslib.threading.AServiceThread.run(AServiceThread.java:105)

What to do, please help?

Original issue reported on code.google.com by dakravch...@gmail.com on 5 Sep 2012 at 10:42

GoogleCodeExporter commented 9 years ago

Original comment by admin@smslib.org on 17 Sep 2012 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by admin@smslib.org on 1 Jan 2014 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by admin@smslib.org on 2 Jan 2014 at 12:05

GoogleCodeExporter commented 9 years ago
Hi All

It seems that I have the same issue and I am not able to solve it. How can I 
get access to the response and solution proposed?

Some logs below :

2014-11-26 11:05:30.897 WARN     [WatchDog]:org.smslib.Service$WatchDog (1584) 
- Gateway: smppGateway restarting.
2014-11-26 11:05:30.898 WARN     [WatchDog]:org.smslib.smpp.jsmpp.JSMPPGateway 
(163) - GTW: smppGateway: SMPP session not bound.
2014-11-26 11:05:30.898 ERROR    [WatchDog]:org.smslib.Service$WatchDog (1602) 
- Error while starting Gateway: smppGateway
java.io.IOException: Failed connecting
        at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:218)
        at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200)
        at org.smslib.smpp.jsmpp.JSMPPGateway.startGateway(JSMPPGateway.java:144)
        at org.smslib.Service$WatchDog.process(Service.java:1597)
        at org.smslib.threading.AServiceThread.run(AServiceThread.java:105)
2014-11-26 11:05:45.898 WARN     [WatchDog]:org.smslib.Service$WatchDog (1584) 
- Gateway: smppGateway restarting.
2014-11-26 11:05:45.898 WARN     [WatchDog]:org.smslib.smpp.jsmpp.JSMPPGateway 
(163) - GTW: smppGateway: SMPP session not bound.
2014-11-26 11:05:45.898 ERROR    [WatchDog]:org.smslib.Service$WatchDog (1602) 
- Error while starting Gateway: smppGateway
java.io.IOException: Failed connecting

Original comment by philippe...@gmail.com on 21 Feb 2015 at 5:47