Comment on Tutorial - List all the serial and parallel ports in your system using Java By Ashish



Comment Added by : Srinivasa Rao

Comment Added at : 2009-04-02 05:17:20

Comment on Tutorial : List all the serial and parallel ports in your system using Java By Ashish
By running ListPorts, I am not getting any output and while running smsCliend I am getting the bellow exception. Can you plz help me to resolve the issue.

Exception details :
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. In the above example..where you make the GC1 objec
View Tutorial          By: prasad at 2014-12-11 11:12:28

2. I have a problem with PortInUseException. I wrote
View Tutorial          By: robert at 2009-12-28 08:37:49

3. hi Emiley J.,
i am geting this error while

View Tutorial          By: jugal at 2009-02-20 02:14:23

4. Can u plz send me woking application (Send sms) J
View Tutorial          By: Ritanshu Goel at 2012-09-22 05:52:49

5. the way of explanation is really good. there is a
View Tutorial          By: Arul at 2009-01-09 00:13:46

6. Excellent.
Just one question... What is the

View Tutorial          By: HeilGates at 2010-08-04 13:38:12

7. Is System.gc() required with finalize method??
View Tutorial          By: QsRealm at 2012-02-11 08:28:16

8. Oh, Thanks for your code, but I think you should a
View Tutorial          By: Songokute at 2013-01-29 13:55:13

9. it is very useful to others............,thanx
View Tutorial          By: jey at 2012-01-06 08:53:22

10. Excellent tutorial thank you very much.

View Tutorial          By: Edd at 2012-01-15 10:49:00