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.
