Hi,
I connected a phone (LG KP220) to my desktop(using blue tooth dongle)
and started java SMS Server. It connected properly to the phone. I
could send out an SMS as well as read all the SMS on the phone. Then I
kept the server running for a while. I noticed that after some 10 mins
the phone's LCD screen lit up saying the serial connection
disconnected. So, I tried reading SMS again at this point and SMS
Server throws an exception in the log file. The SMS Server tries to
reopen the serial connection and it gets the exception.
Here is what I think may be happening. For some reason the COM port
connection is lost (either the phone is closing it or server is
closing it or Windows is closing it). The SMSServer tries to restart
the modem gateway again but now it gets an exception (Port used by
unknown application). This I confirmed by setting a breakpoint in the
connectPort method of SerialModemDriver.java.
Following is the corresponding server log
[SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway: modem1
restarting.
[SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway: modem1
restarting.
[SMSLib-WatchDog] ERROR org.smslib - WatchDog: error while starting
Gateway: modem1
org.smslib.GatewayException: Comm library exception:
java.lang.reflect.InvocationTargetException
at org.smslib.modem.SerialModemDriver.connectPort
(SerialModemDriver.java:92)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:111)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
at org.smslib.Service$WatchDog.run(Service.java:1194)
[SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway: modem1
restarting.
[SMSLib-WatchDog] ERROR org.smslib - WatchDog: error while starting
Gateway: modem1
org.smslib.GatewayException: Comm library exception:
java.lang.reflect.InvocationTargetException
at org.smslib.modem.SerialModemDriver.connectPort
(SerialModemDriver.java:92)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:111)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
at org.smslib.Service$WatchDog.run(Service.java:1194)
[SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway: modem1
restarting.
[SMSLib-WatchDog] ERROR org.smslib - WatchDog: error while starting
Gateway: modem1
org.smslib.GatewayException: Comm library exception:
java.lang.reflect.InvocationTargetException
at org.smslib.modem.SerialModemDriver.connectPort
(SerialModemDriver.java:92)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:111)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
at org.smslib.Service$WatchDog.run(Service.java:1194)
[SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway: modem1
restarting.
[SMSLib-WatchDog] ERROR org.smslib - WatchDog: error while starting
Gateway: modem1
org.smslib.GatewayException: Comm library exception:
java.lang.reflect.InvocationTargetException
at org.smslib.modem.SerialModemDriver.connectPort
(SerialModemDriver.java:92)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:111)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
at org.smslib.Service$WatchDog.run(Service.java:1194)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SMSLib Users 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
-~----------~----~----~----~------~----~------~--~---