Hey everyone,
I am set up using a Motorola Razr connected to a laptop running Ubuntu
10 via USB. I'm able to send SMS perfectly fine, but I'm having some
errors when receiving. The way that I 'receive' messages is that I set
my service's InboundMessageNotification to an anonymous inner class
like this:
service.setInboundMessageNotification(new
IInboundMessageNotification() {
public void process(AGateway gateway, MessageTypes messageType,
InboundMessage message) {
... code to save message to the DB....
}
});
Unfortunately, I get this error whenever I receive a message:
Exception in thread "SMSLib-AsyncMessageProcessor : /dev/ttyS0"
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
at org.smslib.modem.ModemGateway.readMessagesTEXT(ModemGateway.java:
418)
at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:209)
at org.smslib.modem.AModemDriver
$AsyncMessageProcessor.run(AModemDriver.java:878)
Thanks
--
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.