MazWoz / jsmpp

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

Null Pointer exception received sometimes while receiving messages #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My application is working fine and constantly listening for incoming 
messages but sometimes this exception is thrown although process keeps on 
working
The session state is :true
Exception in thread "pool-2-thread-42" java.lang.NullPointerException
        at java.lang.String.<init>(String.java:479)
        at com.app.smsreceiver.smsutil.messagelistener.onAcceptDeliverSm(me
ssagelistener.java:34)
        at org.jsmpp.session.SMPPSession.fireAcceptDeliverSm
(SMPPSession.java:44
3)
        at org.jsmpp.session.SMPPSession.access$400(SMPPSession.java:92)
        at 
org.jsmpp.session.SMPPSession$ResponseHandlerImpl.processDeliverSm(SM
PPSession.java:460)
        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
(ThreadPoolExec
utor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor
.java:675)
        at java.lang.Thread.run(Thread.java:595)
The session is :BOUND_RX

please let me know what is wrong with it.

regards,

Original issue reported on code.google.com by syedahsa...@gmail.com on 18 Mar 2009 at 8:21

GoogleCodeExporter commented 8 years ago
Which version did you use?

Original comment by uuda...@gmail.com on 22 Mar 2009 at 11:44

GoogleCodeExporter commented 8 years ago
i am using jsmpp 2.0

Original comment by syedahsa...@gmail.com on 27 Mar 2009 at 6:27

GoogleCodeExporter commented 8 years ago
Make sure you not construct String if the deliverSm.getShortMessage() return 
null value

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

GoogleCodeExporter commented 8 years ago

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