nguyenbahuong / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

No Such Port Exception #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I run the SendMessage example program on Windows/XP using NetBeans 6.5 
I get an exception:

org.smslib.GatewayException: Comm library exception: 
java.lang.RuntimeException: javax.comm.NoSuchPortException

Here's my gateway construction line, the only line I changed in the 
program: 

SerialModemGateway gateway = new SerialModemGateway("SAMBA USB Modem 
Driver", "COM5", 57600, "Falcom", "Samba");

As you can see, I'm using using a Falcom SAMBA 56. I had previously tested 
the device/connection using the Microsoft HyperTerminal. I can successfully 
send and receive SMS messages using manual AT commands.

I've attached the diagnostics output from NetBeans.

Original issue reported on code.google.com by ronncoleman@gmail.com on 4 Aug 2009 at 3:56

Attachments:

GoogleCodeExporter commented 9 years ago
If you are sure that COM5 is your port, then the only alternate error source 
that I 
can think of is the incorrect installation of javacomm...

Original comment by ad...@smslib.org on 4 Aug 2009 at 7:33

GoogleCodeExporter commented 9 years ago
Thanks for your quick reply. I fixed the problem. It appears one has to copy 
comm.jar, javax.comm.properties, and win32com.dll to their respective JDK/jre 
directories, the 
instructions of which I subsequently found at 
http://smslib.org/doc/installation/. 
However, I was following the README instructions in javacomm20-win32.zip which 
seem to 
be incomplete or possibly wrong for NetBeans. Yet the test program, BlackBox, 
works 
fine outside of NetBeans using the instructions in README. So there is a little 
confusion here.

Original comment by ronncoleman@gmail.com on 5 Aug 2009 at 10:09

GoogleCodeExporter commented 9 years ago
Yeah, I know. Don't forget that JavaComm v2 is a pretty old package, so don't 
expect 
its docs to be up to date. We are fortunate enough that it still works!

Original comment by ad...@smslib.org on 6 Aug 2009 at 5:06

GoogleCodeExporter commented 9 years ago
When I run the SendMessage program on XP then I get an exception:

org.smslib.GatewayException: Comm library exception: 
java.lang.RuntimeException: javax.comm.NoSuchPortException

Here's my gateway construction line

SerialModemGateway gateway = new SerialModemGateway("modem.com6", "COM6", 
57600, "Nokia", "6303");

So plz help me to remove this error

Original comment by vinayakr...@gmail.com on 15 Jun 2013 at 11:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
SAme error =\

Original comment by leandrot...@gmail.com on 30 Aug 2013 at 2:47