Hi,
I'm using smslib-v3.4.0-src.zip javacomm commons-net-2.0 on
Linux 2.6.27.19 with a GSM USB Modem
Manufacturer: BenQ
Model: M22A
Sending and receiving with smstools3 works fine.
For SendMessage.java I'm using
gateway = new SerialModemGateway("modem.com1", "/dev/ttyUSB0", 9600,
"BenQ", "M22A");
which sends the SMS as expected.
For ReceiveMessage.java
gateway = new SerialModemGateway("modem.com1", "/dev/ttyUSB0", 9600,
"BenQ", "M22A");
When the SMS arrives I get:
Now Sleeping - Press <enter> to fill up queue manager.
Exception in thread "SMSLib-AsyncMessageProcessor : modem.com1"
java.lang.StringIndexOutOfBoundsException: String index out of range:
-12
at java.lang.String.substring(String.java:1938)
at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:
474)
at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:179)
at org.smslib.modem.AModemDriver$AsyncMessageProcessor.run
(AModemDriver.java:869)
I have dumped the line which fails:
26244 [SMSLib-AsyncMessageProcessor : modem.com1] ERROR smslib - GTW:
modem.com1: ERROR line='+CMS ERROR: 320':
java.lang.StringIndexOutOfBoundsException: String index out of range:
-12
What can I do?
Thanks
Marcel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---