nguyenbahuong / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

i get this bug every time i receive message on my gsm help me plz #466

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
run: 
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
gateway id=modem.com1
>>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: STARTING
>>> Gateway Status change for modem.com1, OLD: STARTING -> NEW: STARTED
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:541)
        at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:208)
        at org.smslib.modem.AModemDriver$AsyncMessageProcessor.run(AModemDriver.java:878)

Original issue reported on code.google.com by eng.moh....@gmail.com on 25 Feb 2012 at 11:24

GoogleCodeExporter commented 9 years ago
Please upload or send me a log - I need to see the PDUs.

This usually happens when you have a message in your inbox that SMSLib cannot 
read (like a vcard or something).

Original comment by T.Delenikas on 27 Feb 2012 at 2:34

GoogleCodeExporter commented 9 years ago
run: 
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
gateway id=modem.com1
>>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: STARTING
>>> Gateway Status change for modem.com1, OLD: STARTING -> NEW: STARTED
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:541)
        at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:208)
        at org.smslib.modem.AModemDriver$AsyncMessageProcessor.run(AModemDriver.java:878)
----------------
-this error happen every time i receive message to usb modem 
-the code is attached

Original comment by eng.moh....@gmail.com on 6 Mar 2012 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago
You need to setup log4j and set its level to DEBUG.
I don't need the code, I need the debug log :)

Original comment by T.Delenikas on 7 Mar 2012 at 8:19

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 22 Mar 2012 at 9:09