Hello, Generally speaking, this issue looks like a variation of Tracker Issue 296 (http://code.google.com/p/smslib/issues/detail?id=296). To make the long tracker story short, it seems that under some circumstances (still not very clear), queued messages remain queued for ever and SMSServer requires a restart in order to resume operation.
In your case I see other bad things as well: it seems that every command sent by SMSLib (CPIN, CNMI) is rejected by your modem. I assume that your modem got stuck and enters a "strange" state. Try to see if there is any reset command for your modem and add it in the ATHandler you are using. What modem are you using? Is there any soft-reset AT command available? On Jan 2, 10:14 am, Suresh Meti <[email protected]> wrote: > Hi, > We were using SMSLib 3.4.1 as Windows Service using Windows Service > Wrapper. > The issue faced was some messages were in the queue indefinetily till > the service was restarted. > Subsequently we upgraded to 3.4.4 where as it states in the release > notes, this problem is sorted out. > But now with SMSLib 3.4.4, the service gets stopped and requires the > modem reset and the service restart. > The log at the time of stopping the service is as follows > > 111869453 [SMSServer - OutboundPollingThread] INFO smslib - SMSServer: > sending asynchronously... [0] > INFO | jvm 1 | 2010/01/01 18:50:20 | 111876531 [QueueManager > [modem1]] WARN smslib - GTW: modem1: Queue exception, marking gateway > for reset. > INFO | jvm 1 | 2010/01/01 18:50:20 | org.smslib.TimeoutException: > No response from device. > INFO | jvm 1 | 2010/01/01 18:50:20 | at > org.smslib.modem.AModemDriver$CharQueue.get(AModemDriver.java:537) > INFO | jvm 1 | 2010/01/01 18:50:20 | at > org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:329) > INFO | jvm 1 | 2010/01/01 18:50:20 | at > org.smslib.modem.athandler.ATHandler.sendMessage(ATHandler.java:313) > INFO | jvm 1 | 2010/01/01 18:50:20 | at > org.smslib.modem.ModemGateway.sendMessagePDU(ModemGateway.java:470) > INFO | jvm 1 | 2010/01/01 18:50:20 | at > org.smslib.modem.ModemGateway.sendMessage(ModemGateway.java:241) > INFO | jvm 1 | 2010/01/01 18:50:20 | at org.smslib.AGateway > $QueueManager.process(AGateway.java:508) > INFO | jvm 1 | 2010/01/01 18:50:20 | at > org.smslib.threading.AServiceThread.run(AServiceThread.java:117) > INFO | jvm 1 | 2010/01/01 18:50:23 | 111879641 [SMSServer - > OutboundPollingThread] INFO smslib - SMSServer: sending > asynchronously... [1] > INFO | jvm 1 | 2010/01/01 18:50:29 | 111886031 [WatchDog] WARN > smslib - Gateway: modem1 restarting. > INFO | jvm 1 | 2010/01/01 18:50:29 | 111886031 [WatchDog] INFO > smslib - GTW: modem1: Stopping gateway... > INFO | jvm 1 | 2010/01/01 18:50:29 | 111886031 [WatchDog] INFO > smslib - GTW: modem1: Closing: COM1 @115200 > INFO | jvm 1 | 2010/01/01 18:50:29 | 111886031 [WatchDog] INFO > smslib - GTW: modem1: Gateway stopped. > INFO | jvm 1 | 2010/01/01 18:50:29 | 111886031 [WatchDog] INFO > smslib - GTW: modem1: Starting gateway, using Generic AT Handler. > INFO | jvm 1 | 2010/01/01 18:50:29 | 111886031 [WatchDog] INFO > smslib - GTW: modem1: Opening: COM1 @115200 > INFO | jvm 1 | 2010/01/01 18:50:33 | 111889875 [SMSServer - > OutboundPollingThread] INFO smslib - SMSServer: sending > asynchronously... [1] > INFO | jvm 1 | 2010/01/01 18:50:35 | 111891453 [WatchDog] WARN > smslib - GTW: modem1: Erroneous CPIN response, proceeding with > defaults. > INFO | jvm 1 | 2010/01/01 18:50:37 | 111893875 [WatchDog] WARN > smslib - GTW: modem1: Retrying the detection of CNMI, modem busy? > INFO | jvm 1 | 2010/01/01 18:50:40 | 111896875 [WatchDog] WARN > smslib - GTW: modem1: Retrying the detection of CNMI, modem busy? > INFO | jvm 1 | 2010/01/01 18:50:43 | 111899875 [WatchDog] WARN > smslib - GTW: modem1: Retrying the detection of CNMI, modem busy? > INFO | jvm 1 | 2010/01/01 18:50:44 | 111900125 [SMSServer - > OutboundPollingThread] INFO smslib - SMSServer: sending > asynchronously... [1] > INFO | jvm 1 | 2010/01/01 18:50:46 | 111902875 [WatchDog] WARN > smslib - GTW: modem1: CNMI detection failed, proceeding with defaults. > INFO | jvm 1 | 2010/01/01 18:50:46 | 111902875 [WatchDog] WARN > smslib - GTW: modem1: Callback indications were *not* set succesfully! > INFO | jvm 1 | 2010/01/01 18:50:46 | 111902875 [WatchDog] INFO > smslib - GTW: modem1: Closing: COM1 @115200 > INFO | jvm 1 | 2010/01/01 18:50:46 | 111902875 [WatchDog] ERROR > smslib - Error while starting Gateway: modem1 > INFO | jvm 1 | 2010/01/01 18:50:46 | org.smslib.GatewayException: > The GSM modem does not support the PDU protocol. > INFO | jvm 1 | 2010/01/01 18:50:46 | at > org.smslib.modem.AModemDriver.connect(AModemDriver.java:191) > INFO | jvm 1 | 2010/01/01 18:50:46 | at > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:185) > INFO | jvm 1 | 2010/01/01 18:50:46 | at org.smslib.Service > $WatchDog.process(Service.java:1468) > INFO | jvm 1 | 2010/01/01 18:50:46 | at > org.smslib.threading.AServiceThread.run(AServiceThread.java:117) > > and subsequently > > 112012812 [WatchDog] WARN smslib - Gateway: modem1 restarting. > INFO | jvm 1 | 2010/01/01 18:52:36 | 112012812 [WatchDog] INFO > smslib - GTW: modem1: Stopping gateway... > INFO | jvm 1 | 2010/01/01 18:52:36 | 112012812 [WatchDog] INFO > smslib - GTW: modem1: Closing: COM1 @115200 > INFO | jvm 1 | 2010/01/01 18:52:36 | 112012812 [WatchDog] INFO > smslib - GTW: modem1: Gateway stopped. > INFO | jvm 1 | 2010/01/01 18:52:36 | 112012812 [WatchDog] INFO > smslib - GTW: modem1: Starting gateway, using Generic AT Handler. > INFO | jvm 1 | 2010/01/01 18:52:36 | 112012812 [WatchDog] INFO > smslib - GTW: modem1: Opening: COM1 @115200 > INFO | jvm 1 | 2010/01/01 18:52:41 | 112018031 [WatchDog] WARN > smslib - GTW: modem1: Erroneous CPIN response, proceeding with > defaults. > INFO | jvm 1 | 2010/01/01 18:52:44 | 112020453 [WatchDog] WARN > smslib - GTW: modem1: Retrying the detection of CNMI, modem busy? > INFO | jvm 1 | 2010/01/01 18:52:47 | 112023062 [SMSServer - > OutboundPollingThread] INFO smslib - SMSServer: sending > asynchronously... [1] > INFO | jvm 1 | 2010/01/01 18:52:47 | 112023453 [WatchDog] WARN > smslib - GTW: modem1: Retrying the detection of CNMI, modem busy? > INFO | jvm 1 | 2010/01/01 18:52:50 | 112026453 [WatchDog] WARN > smslib - GTW: modem1: Retrying the detection of CNMI, modem busy? > INFO | jvm 1 | 2010/01/01 18:52:53 | 112029453 [WatchDog] WARN > smslib - GTW: modem1: CNMI detection failed, proceeding with defaults. > INFO | jvm 1 | 2010/01/01 18:52:53 | 112029453 [WatchDog] WARN > smslib - GTW: modem1: Callback indications were *not* set succesfully! > INFO | jvm 1 | 2010/01/01 18:52:53 | 112029453 [WatchDog] INFO > smslib - GTW: modem1: Closing: COM1 @115200 > INFO | jvm 1 | 2010/01/01 18:52:53 | 112029453 [WatchDog] ERROR > smslib - Error while starting Gateway: modem1 > INFO | jvm 1 | 2010/01/01 18:52:53 | org.smslib.GatewayException: > The GSM modem does not support the PDU protocol. > INFO | jvm 1 | 2010/01/01 18:52:53 | at > org.smslib.modem.AModemDriver.connect(AModemDriver.java:191) > INFO | jvm 1 | 2010/01/01 18:52:53 | at > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:185) > INFO | jvm 1 | 2010/01/01 18:52:53 | at org.smslib.Service > $WatchDog.process(Service.java:1468) > INFO | jvm 1 | 2010/01/01 18:52:53 | at > org.smslib.threading.AServiceThread.run(AServiceThread.java:117) > INFO | jvm 1 | 2010/01/01 18:52:57 | 112033344 [SMSServer - > OutboundPollingThread] INFO smslib - SMSServer: sending > asynchronously... [1] > INFO | jvm 1 | 2010/01/01 18:53:07 | 112043594 [SMSServer - > OutboundPollingThread] INFO smslib - SMSServer: sending > asynchronously... [1] > > repeats till the modem and the service are reset. > > What could be the problem and the solution for it? > Thanks in advance.. -- You received this message because you are subscribed to the Google Groups "SMSLib for Java 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.
