nitingautam / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

SMPPServerSimulator example throws NullPointerException #156

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the provided JSMPP examples SMPPServerSimulator and SubmitMultiExample.
3. NullPointerException is thrown by the SMPPServerSimulator
Exception in thread "pool-7-thread-2" java.lang.NullPointerException
    at org.jsmpp.session.state.SMPPServerSessionBoundTX.processSubmitMulti(SMPPServerSessionBoundTX.java:75)
    at org.jsmpp.session.PDUProcessServerTask.run(PDUProcessServerTask.java:75)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

and the SubmitMultiExample throws

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)

What version of the product are you using? On what operating system?
OS: windows 7 
Version: 2.1.10-Release

If I use the same server simulator and try to run other example, 
SimpleSubmitExample, it works fine.

Original issue reported on code.google.com by madhuri....@gmail.com on 6 Feb 2014 at 11:30

GoogleCodeExporter commented 9 years ago
Sorry, my bad. Just noticed that the SMPPServerSimulator does not have an 
implementation to accept multi_sm pdu.

Original comment by madhuri....@gmail.com on 6 Feb 2014 at 12:10