Q1) Yes. if there are messages in the table and on the modem and I stop and restart the system will hang. Q2) Right I'm only using one modem..
________________________________ From: Thanasis <[email protected]> To: SMSLib User Group <[email protected]> Sent: Monday, March 23, 2009 3:20:31 PM Subject: [smslib] Re: Error Queue.peek() - should be during shutdown when Stopping SMSServer and threads Hi, Some questions pls: 1) Is this a standard behavior? Do you always get this crash? 2) There is only one modem active, right? On Mar 23, 6:09 pm, sbyrdsell <[email protected]> wrote: > When stopping SMSServer and threads I get Queue.peek() - should be > during shutdown. > After this error the application to hangs. > > Log: > > 03/22/09 10:03:39 DEBUG smslib:75 - WatchDog stopped. > 03/22/09 10:03:39 INFO smslib:61 - Message Queued in DB on 2009-03-22 > 20:57:41.0 > 03/22/09 10:03:39 INFO smslib:61 - > =========================================================================== > ==== > << OutboundMessage >> > Shows all Messages in table > > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: IN-DTLS: MI:30 REF:0 > MAX:0 SEQ:0 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > MAINLIST: 10 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: CheckMpMsgList(): > SUBLIST[0]: 2 > 03/22/09 10:03:42 INFO smslib:61 - GTW: modem1: Stopping gateway... > 03/22/09 10:03:42 INFO smslib:61 - GTW: modem1: QueueManager stopped. > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: Trying to shutdown > keepAlive thread... > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: Trying to shutdown > asyncNotifier thread... > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: Trying to shutdown > asyncMessageProcessor thread... > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: Trying to shutdown > modemReader thread... > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: Trying to shutdown > syncMessageProcessor thread... > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: SEND :AT > +CPMS="SM"(cr) > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: ModemDriver: > KeepAlive thread ended. > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: AsyncNotifier thread > ended. > 03/22/09 10:03:42 DEBUG smslib:75 - GTW: modem1: AsyncMessageProcessor > thread ended. > 03/22/09 10:03:42 WARN smslib:69 - GTW: modem1: Re-throwing > InterruptedException in Queue.peek() - should be during shutdown... > java.lang.InterruptedException > at java.lang.Object.wait(Native Method) > at org.smslib.modem.AModemDriver$CharQueue.peek(AModemDriver.java: > 555) > at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:324) > at org.smslib.modem.athandler.ATHandler.switchStorageLocation > (ATHandler.java:257) > at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java: > 379) > at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147) > at org.smslib.modem.AModemDriver$CNMIEmulatorProcessor.run > (AModemDriver.java:987) > 03/22/09 10:03:42 WARN smslib:69 - GTW: modem1: GetResponse() > Interrupted. > java.lang.InterruptedException > at org.smslib.modem.AModemDriver$CharQueue.peek(AModemDriver.java: > 565) > at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:324) > at org.smslib.modem.athandler.ATHandler.switchStorageLocation > (ATHandler.java:257) > at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java: > 379) > at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147) > at org.smslib.modem.AModemDriver$CNMIEmulatorProcessor.run > (AModemDriver.java:987) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
