Hi,
I just tried smslib 3.3.2 and was still not able to catch modem errors
in my application. Here is an example from Debian, the one
I posted before was from Windows:
Exception in thread "Thread-3" java.io.IOException: Erro getting
StatusFlags in call to ioctl(TIOCMGET)
at com.sun.comm.LinuxSerial.nativeGetStatusFlags(Native
Method)
at com.sun.comm.LinuxSerial.access$1500(LinuxSerial.java:14)
at com.sun.comm.LinuxSerial$SSCheckStatusThread.run
(LinuxSerial.java:649)
368494 [SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway:
gsmmodem restarting.
417504 [SMSLib-WatchDog] ERROR org.smslib - WatchDog: error while
starting Gateway: gsmmodem
org.smslib.TimeoutException: No response from device.
at org.smslib.modem.AModemDriver$CharQueue.get
(AModemDriver.java:514)
at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:
312)
at org.smslib.modem.athandler.ATHandler.getSimStatus
(ATHandler.java:130)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
127)
at org.smslib.modem.ModemGateway.startGateway
(ModemGateway.java:126)
at org.smslib.Service$WatchDog.run(Service.java:1179)
432506 [SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway:
gsmmodem restarting.
481509 [SMSLib-WatchDog] ERROR org.smslib - WatchDog: error while
starting Gateway: gsmmodem
org.smslib.TimeoutException: No response from device.
at org.smslib.modem.AModemDriver$CharQueue.get
(AModemDriver.java:514)
at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:
312)
at org.smslib.modem.athandler.ATHandler.getSimStatus
(ATHandler.java:130)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
127)
at org.smslib.modem.ModemGateway.startGateway
(ModemGateway.java:126)
at org.smslib.Service$WatchDog.run(Service.java:1179)
496509 [SMSLib-WatchDog] WARN org.smslib - WatchDog: Gateway:
gsmmodem restarting.
.....
Shouldn't this already be fixed, or do I remember wrong?
I also tested setSMSCNumber() with a 12 digit number, and that
problems seems to be solved now,
/ Hakan
On 9 Nov, 20:35, Digiloo <[EMAIL PROTECTED]> wrote:
> Thanks!
>
> / Digiloo
>
> On 9 Nov, 20:01, Thanasis <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > As said on a similar thread, the latest smslib uses reflection to detect the
> > installed comm library and we have overlooked the correct propagation of
> > errors from the lower app levels. Sorry for this, it will be fixed.
>
> > 2008/11/9 Digiloo <[EMAIL PROTECTED]>
>
> > > Sorry, I had configured a nonextisting commport.
>
> > > But should'nt that kind of error give a more understandable error?
>
> > > / Hakan
>
> > > On 9 Nov, 14:12, Digiloo <[EMAIL PROTECTED]> wrote:
> > > > Hi,
>
> > > > I just download the latest version of smpplib and got the following
> > > > problem;
>
> > > > 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:110)
> > > > at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:
> > > > 126)
> > > > at org.smslib.Service$1Starter.run(Service.java:222)
>
> > > > I use java.1.5.0_16 and run under Windows, and I have copied comm.jar,
> > > > javax.comm.properties and win32comm.dl both to jdk and jre directories
> > > > according to the instructions
>
> > > > .Any idea why this happens?
>
> > > > / Digiloo- Dölj citerad text -
>
> > - Visa citerad text -- Dölj citerad text -
>
> - Visa citerad text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---