Hi folks,

I hit this error when I tried to run the SendMessage.java provided in
the download package.
I'm running in Windows XP SP2. The SMSLib I'm using is version 3.3.3
and running with JDK1.5.
I have properly install java comm package as per described in the
installation guide (copied the 3 files into dedicated path)

Then, I use Eclipse debug mode to start my trouble shooting line by
line.
I found out that problem is occur at the line
$> srv.startService(); [line 34].

I further down my investigation and finally I found out a line of code
that I feel strange in class org.smslib.helper.CommPortIdentifier.
$> port = new CommPortIdentifier(method.invoke(null, portName)); [line
208]

In my understanding, the 1st parameter of Method.invoke() should be a
method name to call instead of null. Is that possible that this is the
root of the my problem?

Below is the full error trace:
org.smslib.GatewayException: Comm library exception:
java.lang.RuntimeException: javax.comm.NoSuchPortException
        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:226)

Thanks for your sharing1 :)

Regards,
waikeong
--~--~---------~--~----~------------~-------~--~----~
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