Hi. Check this issue: http://code.google.com/p/smslib/issues/detail?id=160. >From stacktrace it looks like you hit this one:)
If you decide to build from repository - be sure to use revision close to 1635. Head rev. is not very stable right now. Hope it helps. On Mar 4, 10:37 am, Karthik <[email protected]> wrote: > Hi, > > When I send an empty message to SMSLib it doesn't read that message > from the phone which I connected to my PC, but it throws the following > exception > > java.lang.ArrayIndexOutOfBoundsException: -1 > at org.smslib.InboundMessage.<init>(InboundMessage.java:145) > at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java: > 427) > at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147) > at org.smslib.Service.readMessages(Service.java:438) > at org.smslib.Service.readMessages(Service.java:342) > at examples.modem.ReadMessages.doIt(ReadMessages.java:109) > at examples.modem.ReadMessages.main(ReadMessages.java:170) > 31 [main] ERROR org.smslib - GTW: modem.com3: ERROR PDU: > 0791198904100161040C9119790916731200009030402174052200 > > << UNKNOWN MESSAGE DUMP >> > ------------------------------------------------------------------------------- > Gateway Id: modem.com3 > Memory Index: 2 > Memory Location: SM > > Please give any solution for this. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib User Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
