Error when trying to send messages

678 views
Skip to first unread message

Ali Salem

unread,
Jun 23, 2010, 5:45:35 AM6/23/10
to js...@googlegroups.com
Dear all:

thanks for support ,i have tried to connect to SMSC , ,when Jsmpp trying to send i get this error code:

log4j:WARN Please initialize the log4j system properly.
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for 2000 mil
lis when executing submit_sm with sessionId 25657002 and sequenceNumber 31059
        at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.
java:261)
        at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319
)
        at org.jsmpp.examples.gateway.AlGateway.submitShortMessage(AlGateway.jav
a:89)
        at org.jsmpp.examples.gateway.service.ThreadPool.StudentScoreWorker.proc
essMessage(StudentScoreWorker.java:103)
        at org.jsmpp.examples.gateway.service.StudentScoreService.onRecieveMessa
ge(StudentScoreService.java:42)
        at org.jsmpp.examples.gateway.service.StudentScoreService.onAcceptDelive
rSm(StudentScoreService.java:121)
        at org.jsmpp.session.SMPPSession.fireAcceptDeliverSm(SMPPSession.java:44
4)
        at org.jsmpp.session.SMPPSession.access$0(SMPPSession.java:442)
        at org.jsmpp.session.SMPPSession$ResponseHandlerImpl.processDeliverSm(SM
PPSession.java:461)
        at org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm0(SMPPSess
ionBoundRX.java:109)
        at org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm(SMPPSessi
onBoundRX.java:51)
        at org.jsmpp.session.PDUProcessTask.run(PDUProcessTask.java:81)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.jsmpp.extra.ResponseTimeoutException: No response after 2000 mill
is
        at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
        at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.
java:257)
        ... 14 more


please any one can support ,also about the high performance ,how mach messages per second jsmpp can receive or proccess and which parameter in jsmpp can control this .

Vikash Anand

unread,
Jun 23, 2010, 5:50:09 AM6/23/10
to js...@googlegroups.com
Hi,

Did u follow what was told by me and Abdelmoula El Ousfour
If not then why reposting same thing again??

Thanks,
Vikash


--
You received this message because you are subscribed to the Google Groups "jsmpp" group.
To post to this group, send email to js...@googlegroups.com.
To unsubscribe from this group, send email to jsmpp+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jsmpp?hl=en.



--
Thanks and Regards,
Vikash Anand.

Ali Salem

unread,
Jun 23, 2010, 5:58:14 AM6/23/10
to js...@googlegroups.com
yes ,i did ,but now the error is different ,now i am connected ,but when trying to send

rg.jsmpp.extra.ResponseTimeoutException: No response after waiting for 2000 mil
lis when executing submit_sm with sessionId 25657002 and sequenceNumber 31059


before i have

java.io.IOException: Receive negative bind response: Negative response 00000005 found
    at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:245)
    at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:199)
    at org.jsmpp.session.SMPPSession.<init>(SMPPSession.java:138)

Ashwin Moily

unread,
Jun 23, 2010, 6:05:52 AM6/23/10
to js...@googlegroups.com
Basically you are not getting response from smsc .
Do ping to ur smsc ip add and also try telnet for same ip ,port number .
Thanks & Regards
Ashwin Moily
Tel: +91 (22) 25639261
Mob: +91 9619181096


Abdelmoula El Ousfour

unread,
Jun 23, 2010, 6:51:31 AM6/23/10
to js...@googlegroups.com
Hi,

it seem thta the submit_sm_response is not received ,you can use wireshark/ethereal tool to trace your application when sending SMS to see if any response is coming from SMSC or any potential tcp/ip problem

Mohan Raj

unread,
Aug 23, 2013, 4:20:44 AM8/23/13
to js...@googlegroups.com
Hi All,

I,m also getting the same exception..

Response timeout
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for 2000 millis when executing submit_sm with sessionId c8001954 and sequenceNumber 2
    at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:320)
    at com.smpp.test.TestSMPPConnection.main(TestSMPPConnection.java:48)

Caused by: org.jsmpp.extra.ResponseTimeoutException: No response after 2000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 2 more

can anyone help why this is causing..

Please help me..

Thanks.

Mohan Raj.
Reply all
Reply to author
Forward
0 new messages