I've managed to fix that problem (thanks) and also right now I'm using
version 3.4.6. Now the other problem occured. :(

The error is:
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
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/log4j/Logger
        at org.smslib.helper.Logger.<init>(Logger.java:34)
        at org.smslib.Service.<init>(Service.java:104)
        at main.doIt(main.java:26)
        at main.main(main.java:76)

FYI main.java line:26 is "srv = new Service();"
And line 76 is the main program which is "app.doIt();"

This stuff is really new for me (especially in java language). So, I'm
sorry if I'm asking some stupid question :p
Also, can you tell me how to view log? I've copy the slf4j in my project.
Last question, when should I use AT command at this application?
Thanks Thanasis.

On 7/10/10, 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.
>
>

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