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. your second last example in above code (Character
View Tutorial          By: rupam shaw at 2013-04-24 08:36:05

2. hello,
i have completed my bsc(computer sci

View Tutorial          By: Geeta at 2012-07-25 13:35:07

3. Can you please send me complete sample code of cha
View Tutorial          By: Brajesh at 2011-04-21 05:48:17

4. When the Value Is Returned To The Method Then How
View Tutorial          By: nitin deep singh at 2011-08-09 11:43:07

5. j = 0;
while(--j)
{

View Tutorial          By: alistair at 2012-01-28 06:05:48

6. Thanks
View Tutorial          By: Cecilia at 2012-08-07 05:05:51

7. Do you happen to have the code of if statement for
View Tutorial          By: James at 2012-06-04 09:02:31

8. Gracias, it worked.
View Tutorial          By: Eduardo at 2009-09-09 12:16:30

9. This has tread error , copy and paster hole code a
View Tutorial          By: Daniel at 2015-01-21 16:24:36

10. can we do it this procedure by iteration i know th
View Tutorial          By: sattar at 2010-05-03 03:00:20