Skip to content

Commit

Permalink
Raise ProcessRequestException in fireAcceptDeliverSm() if there is no…
Browse files Browse the repository at this point in the history
… MessageReceiverListener set, otherwise the smpp server will receive an ok for a message that was not correctly delivered
  • Loading branch information
Stefan Thorvardarson committed Feb 14, 2012
1 parent d43b2b6 commit d16eb67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsmpp/src/main/java/org/jsmpp/session/SMPPSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ private void fireAcceptDeliverSm(DeliverSm deliverSm) throws ProcessRequestExcep
messageReceiverListener.onAcceptDeliverSm(deliverSm);
} else {
logger.warn("Receive deliver_sm but MessageReceiverListener is null. Short message = " + new String(deliverSm.getShortMessage()));
throw new ProcessRequestException("No message receiver listener registered", SMPPConstant.STAT_ESME_RX_T_APPN);
}
}

Expand Down

0 comments on commit d16eb67

Please sign in to comment.