Hi,

Please find the responses -

1. Whatever the number of messages in the inbox(i tested with 3,4,5
etc), upon starting the application, all the messages get read through
the main message-read-loop
2. You are right. After these messages have been read, I send a new
message "B", but I get the exception
3. And if I restart SMSLib, the new message "B" also gets read through
the main message-read-loop

Following is the exception I get when SMSLib is running and any new
message "B" is received

INFO: Interrupted!
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at org.smslib.threading.AServiceThread.run
(AServiceThread.java:
121)

Exception in thread "SMSLib-AsyncMessageProcessor : modem.com1"
java.lang.String
IndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(Unknown Source)
        at org.smslib.modem.ModemGateway.readMessagesPDU
(ModemGateway.java:494)
        at org.smslib.modem.ModemGateway.readMessages
(ModemGateway.java:181)
        at org.smslib.modem.AModemDriver$AsyncMessageProcessor.run
(AModemDriver.
java:864)


On Nov 19, 2:24 am, Thanasis <[email protected]> wrote:
> Hi,
>
> Can you please tell me:
>
> 1) How many messages do you have in your inbox *before* starting
> smslib? 2? 10?
> 2) Upon starting SMSLib, do all messages in (1) get read? Not from the
> notifications but from the main message-read-loop.
>
> I also assume that *after* SMSLib performs the initial read of all
> existing messages, you just send a "B" and expect the callback to
> fire, right?

--

You received this message because you are subscribed to the Google Groups 
"SMSLib for Java User Group" group.
To post to this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/smslib?hl=.


Reply via email to