Please do this: Edit ModemGateway.java. Line 564 should read:
if (getService().getKeyManager().getKey(msg.getOriginator()) != null) msg = new InboundEncryptedMessage((SmsDeliveryPdu) pdu, memIndex, memLocation); Remark the line, recompile and try once more. On Mar 3, 5:54 pm, Luis Fernandes <[email protected]> wrote: > look at the error : > 3/Mar/2010 16:50:56 org.smslib.helper.Logger logError > SEVERE: GTW: modem.com1: Unhandled SMS in inbox, skipping... > java.lang.NullPointerException > at org.smslib.crypto.KeyManager.getKey(KeyManager.java:103) > at > org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:565) > at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:207) > at org.smslib.Service.readMessages(Service.java:481) > at org.smslib.Service.readMessages(Service.java:369) > at testes_sms.ReadMessages.doIt(ReadMessages.java:99) > at testes_sms.ReadMessages.main(ReadMessages.java:169) > > the error point to : > > this.srv.readMessages(msgList, MessageClasses.ALL); > > msgList = new ArrayList<InboundMessage>(); > *this.srv.readMessages(msgList, MessageClasses.ALL);* > for (InboundMessage msg : msgList){ > > //System.out.println(msg); > this.srv.deleteMessage(msg); > } > > 2010/3/3 Luis Fernandes <[email protected]> > > > > > > > HI, > > > the message that i trying to read is a simple text message, the class read > > the message but throw me errors > > > I try to do this, i go to the sms gateway and delete all sms that are in > > inbox. But i receive the same log when i try to read the messages > > > 2010/3/3 Thanasis <[email protected]> > > > Hi, > > >> If you are not using encryption, I don't know what this is... The PDU > >> I see in the logs appears corrupted. > > >> Do you know what is this message that you are trying to read? Is it > >> something that you've send from a phone? > >> Is it possible for you to clear the SIM from all messages and try > >> again? > > >> -- > >> 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]<smslib%[email protected]> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/smslib?hl=en. > > > -- > > Luis Claudio > > >http://agentelu.blogspot.com/ > > +244 923416616 > > -- > Luis Claudiohttp://agentelu.blogspot.com/ > +244 923416616 -- 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.
