Do you by any chance have both JavaComm and RxTx jar files
available???

On Dec 11, 8:48 am, Simon <[email protected]> wrote:
> I have been using 57600 baud rate. I have tried out 19200 and 115200,
> and the error persists.
>
> Here is the SendMessage.javahttp://pastebin.com/fb9f2745
>
> Simon.
>
> On Dec 10, 10:32 pm, Thanasis <[email protected]> wrote:
>
>
>
> > Are you using a "non-standard" baud rate? Try to use one of the
> > standards: 19200, 57600, 115200, etc
>
> > On Dec 10, 6:45 pm, Simon <[email protected]> wrote:
>
> > > Here is another error. My kernel seems not to accept the parameters.
> > > What parameters should I use?
>
> > > ---------------------------------------------------------------------------
> > >  -
> > > 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.4
> > > log4j:WARN No appenders could be found for logger (smslib).
> > > log4j:WARN Please initialize the log4j system properly.
> > > org.smslib.GatewayException: Comm library exception:
> > > java.lang.RuntimeException: java.io.IOException: Not all params are
> > > supported by kernel
> > >         at org.smslib.modem.SerialModemDriver.connectPort
> > > (SerialModemDriver.java:96)
> > >         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)
> > > ---------------------------------------------------------------------------
> > >  -
>
> > > Regards,
> > > Simon.
> > > On Dec 9, 12:10 pm, Simon <[email protected]> wrote:
>
> > > > Thanks. :)
> > > > The error is gone.
> > > > Simon.
>
> > > > On Dec 8, 10:21 pm, Thanasis <[email protected]> wrote:
>
> > > > > You probably forgot to also copy "log4j-1.2.15.jar" (or whatever is
> > > > > currently available) from the main log4j package.
>
> > > > > On Dec 8, 7:58 pm, Simon <[email protected]> wrote:
>
> > > > > > Am using RxTx with SMSLib v 3.4.4 on OpenSUSE 10.3 .
>
> > > > > > I have added log4jlogger-2.0.jar to $JAVA_HOME/jre/lib/ext,
> > > > > > nonetheless, the error persists.
>
> > > > > > Regards,
> > > > > > Simon.
> > > > > > On Dec 8, 7:28 pm, Simon <[email protected]> wrote:
>
> > > > > > > Hello,
>
> > > > > > > I have run the SendMessage.java , however, I get problems at 
> > > > > > > runtime.
> > > > > > > Here is the error. How can I solve this?
>
> > > > > > > ---------------------------------------------------------------------------
> > > > > > >  -------------
> > > > > > > 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.4
> > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError: 
> > > > > > > org/apache/
> > > > > > > log4j/Level
> > > > > > >         at 
> > > > > > > org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
> > > > > > >         at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
> > > > > > >         at 
> > > > > > > org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:
> > > > > > > 111)
> > > > > > >         at 
> > > > > > > org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
> > > > > > >         at 
> > > > > > > org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
> > > > > > >         at org.smslib.helper.Logger.<init>(Logger.java:34)
> > > > > > >         at org.smslib.Service.<init>(Service.java:100)
> > > > > > >         at examples.modem.SendMessage.doIt(SendMessage.java:27)
> > > > > > >         at examples.modem.SendMessage.main(SendMessage.java:77)
>
> > > > > > > ---------------------------------------------------------------------------
> > > > > > >  ------------------------
>
> > > > > > > Regards,
> > > > > > > Simon.

--

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.


Reply via email to