Hi there,

Thanks for your help with this. I'm getting the same error as RaynovC:

Example: Send message from a serial gsm modem.
SMSLib: A Java API library for sending and receiving SMS via a GSM
modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0
License.
Web Site: http://smslib.org
Version: 3.4.6
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.
Exception in thread "Thread-3" java.lang.ExceptionInInitializerError
        at
org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
68)
        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:113)
        at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:187)
        at org.smslib.Service$1Starter.run(Service.java:321)
Caused by: java.lang.RuntimeException: CommPortIdentifier class not
found
        at
org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:
78)
        ... 4 more

I've lowered my connection speed to 23800 from 115200 and I'm still
having the same issue. I've tested my connection speed at 115200 in
hyperterminal and it works fine there.

Any help would be appreciated.
Thanks,
David


On Jul 10, 1:53 am, Thanasis <[email protected]> wrote:
> You are getting a serial-port related error.
> Can you try with a lower speed, say 115200?
>
> By the way, you are using an old SMSLib version. Please plan your upgrade!
>
> On 10 July 2010 09:43, RaynovC <[email protected]> wrote:
>
> > I find the problem. Now the problem is the message is unsent and also
> > an error with startService command. The error is:
> > 18 [Thread-3] INFO smslib - GTW: modem.com1: Starting gateway, using
> > Generic AT Handler.
> > 19 [Thread-3] INFO smslib - GTW: modem.com1: Opening: COM4 @460800
> > Exception in thread "Thread-3" java.lang.ExceptionInInitializerError
> >        at
> > org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
> > 68)
> >        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:111)
> >        at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:185)
> >        at org.smslib.Service$1Starter.run(Service.java:257)
> > Caused by: java.lang.RuntimeException: CommPortIdentifier class not
> > found
> >        at
> > org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:
> > 76)
> >        ... 4 more
> > if I close the startService command, its no problem. But the message
> > is unsent. somebody please help. Thanks
>
> > On Jul 10, 11:51 am, RaynovC <[email protected]> wrote:
> > > Dear all, I' having this problem with making a java program for
> > > sending SMS with SMLlib.
> > > I'm using SMSLib 3.4.4.
> > > The problem is:
> > > Error  "Unhandled exception type GatewayException" for class
> > > "addGateway".
> > > More similar problem for "startService", "sendMessage", and many more.
> > > Can anyone help me with this?
> > > I tried to surround with try/except command and there's no error, but
> > > nothing happen. The service is not started. Anyone have an example
> > > code that works for sending SMS? That would be so helpful.
> > > Thanks before.
>
> > --
> > 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.

-- 
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.

Reply via email to