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

delivery reports over the internet causing the session to lockup. #21

Closed
GoogleCodeExporter opened this issue Oct 9, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

To recreate the problem we need a server and a client pc.

The server must be exposed to the internet and the client must have access
to the internet to.

It is crucial that the client and server not be on the same lan.


1. Down load selenium smsc sim.
http://www.seleniumsoftware.com/regform.php?itemdesc=SMPPSim.zip and let it
run on the server.

The deafaut's are 
port :2775
username:smppclient
password: password

2.download the 2.0.1 jsmpp source and open AsyncSubmitReceiveDeliverSmExample

2. add the servers ip,port/username/password to 
AsyncSubmitReceiveDeliverSmExample. Set the message loop to 100 and run it
on the client.


<What is the expected output? What do you see instead?>

we are expected to see the submitted messages and then the delivery reports
for them.

I get the following(I increased the transaction timer to 50seconds)
The problem goes away if I disable the delivery reports...Its almost like
the message listener locks up the session????????

The program output is as follows..


Message submitted, message_id is 75
Message submitted, message_id is 76
Message submitted, message_id is 77
Message submitted, message_id is 78
Message submitted, message_id is 79
Message submitted, message_id is 82
Message submitted, message_id is 83
Message submitted, message_id is 80
Message submitted, message_id is 81
Message submitted, message_id is 84
Message submitted, message_id is 85
Message submitted, message_id is 86
Message submitted, message_id is 87
Message submitted, message_id is 88
Message submitted, message_id is 89
Message submitted, message_id is 90
Message submitted, message_id is 91

   <<<<<<<<<<< ...... allot of Message submitted's it was almost an 100 but
then the first batch of del reports came in......>>>>>>>>>>>>>>>

Receiving delivery receipt for message '4D' : id:77 sub:001 dlvrd:001
submit date:0903231217 done date:0903231217 stat:DELIVRD err:000 text:jSMPP
simplify SMPP 
Receiving delivery receipt for message '50' : id:80 sub:001 dlvrd:001
submit date:0903231217 done date:0903231217 stat:DELIVRD err:000 text:jSMPP
simplify SMPP 
Receiving delivery receipt for message '58' : id:88 sub:001 dlvrd:001
submit date:0903231217 done date:0903231217 stat:DELIVRD err:000 text:jSMPP
simplify SMPP 
Receiving delivery receipt for message '5A' : id:90 sub:001 dlvrd:001
submit date:0903231217 done date:0903231217 stat:DELIVRD err:000 text:jSMPP
simplify SMPP 
Receiving delivery receipt for message '52' : id:82 sub:001 dlvrd:001
submit date:0903231217 done date:0903231217 stat:DELIVRD err:000 text:jSMPP
simplify SMPP 
Receiving delivery receipt for message '56' : id:86 sub:001 dlvrd:001
submit date:0903231217 done date:0903231217 stat:DELIVRD err:000 text:jSMPP
simplify SMPP 
Receiving delivery receipt for message '5C' : id:92 sub:001 dlvrd:001
submit date:0903231217 done date:0903231217 stat:DELIVRD err:000 text:jSMPP
simplify SMPP 
Response timeout
Response timeout
Response timeout
Response timeout
Response timeout
Response timeout
Response timeout
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 54
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)62

    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
Response timeout
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 60
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)
    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 59
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)
    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 56
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)
    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 57
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)
    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 58
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)
    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 61
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)
    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for
50000 millis when executing submit_sm with sessionId b30033dd and
sequenceNumber 55
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
    at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:319)
    at
AsyncSubmitReceiveDeliverSmExample$2.run(AsyncSubmitReceiveDeliverSmExample.java
:122)
    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
50000 millis
    at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
    at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
    ... 5 more
IO error occur
IO error occur
IO error occur
IO error occur
IO error occur
IO error occur
IO error occur
java.net.SocketException: Socket closed
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at org.jsmpp.DefaultPDUSender.writeAndFlush(DefaultPDUSender.java:419)
    at org.jsmpp.DefaultPDUSender.sendSubmitSm(DefaultPDUSender.java:203)
    at
org.jsmpp.SynchronizedPDUSender.sendSubmitSm(SynchronizedPDUSender.java:192)








What version of the product are you using? On what operating system?

tested this with version 2.01 on windows and Linux.


Please provide any additional information below.

works like a charm on a lan ................


Original issue reported on code.google.com by etienne....@gmail.com on 23 Mar 2009 at 10:31

@GoogleCodeExporter
Copy link
Author

Make sure there is no network problem. You should snoop the TCP/IP packet to 
make sure the packet are really 
arive.

Original comment by uuda...@gmail.com on 8 Apr 2009 at 11:38

@GoogleCodeExporter
Copy link
Author

I would like to use jsmpp API in android applications to send and receive sms. 
To 
have the SMSC simulator server, i plan to use 
http://www.seleniumsoftware.com/regform.php?itemdesc=SMPPSim.zip.

Did any one tried using jsmpp API in android applications. ?

Original comment by elayaraj...@gmail.com on 24 Apr 2009 at 7:32

@GoogleCodeExporter
Copy link
Author

Seems it just latency problem. Make sure the response packet arrive. You can 
use wireshark in order to do this.

Original comment by uuda...@gmail.com on 18 Aug 2009 at 10:40

  • Changed state: Invalid

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

No branches or pull requests

1 participant