MazWoz / jsmpp

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

Negative response 00000062 found #121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi I'm getting error Negative response 00000062 found for 
session.submitShortMessage.

The error logs as below:

org.jsmpp.extra.NegativeResponseException: Negative response 00000062 found at 
org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:215)
        at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:271)
        at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:320)

The setting is as below:

session.submitShortMessage("", TypeOfNumber.INTERNATIONAL, 
NumberingPlanIndicator.UNKNOWN, "1616", TypeOfNumber.INTERNATIONAL, 
NumberingPlanIndicator.UNKNOWN, msisdn, new ESMClass(), (byte)0, (byte)1,  
timeFormatter.format(new Date()), null, new 
RegisteredDelivery(SMSCDeliveryReceipt.DEFAULT), (byte)0, new 
GeneralDataCoding(false, true, MessageClass.CLASS1, Alphabet.ALPHA_DEFAULT), 
(byte)0, text.getBytes());

May I know what does the error means and how may I overcome this?

Thanks in advance. 

Original issue reported on code.google.com by waniey...@gmail.com on 8 Mar 2012 at 11:37

GoogleCodeExporter commented 8 years ago
It tells that validity period incorrect.
In the code you pass the schedule delivery time, but not the validity period.
I think you need to consult this with the telco provider (SMSC Owner).

Original comment by uuda...@gmail.com on 9 Mar 2012 at 6:42

GoogleCodeExporter commented 8 years ago
It tells that validity period incorrect.
In the code you pass the schedule delivery time, but not the validity period.
I think you need to consult this with the telco provider (SMSC Owner).

Original comment by uuda...@gmail.com on 9 Mar 2012 at 6:42