Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : Manidhar

Comment Added at : 2013-11-03 10:54:04

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi,
When i tried to run the program i am getting the below error message. Please let me know how we can identify the port number of my modem.

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.pgowa.sms.SerialConnection.openConnection(SerialConnection.java:71)
at com.pgowa.sms.Sender.send(Sender.java:45)
at com.pgowa.sms.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.pgowa.sms.SerialConnection.openConnection(SerialConnection.java:88)
at com.pgowa.sms.Sender.send(Sender.java:45)
at com.pgowa.sms.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Unknown Source)


Thanks & Regards,
Manidhar


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. Good example...easy to read and understand...
View Tutorial          By: Codventure at 2009-09-11 00:07:06

2. THANK YOU.. YO SO HELP ME :D
View Tutorial          By: xgamer at 2015-08-06 06:45:52

3. If the compiler takes care of this pointer implici
View Tutorial          By: Bhanu Noah at 2012-03-15 16:20:05

4. if(isset($_POST["check1"]=="1"
View Tutorial          By: krunal at 2012-11-22 10:30:19

5. BIG Thanks for such wonderful tutorial :) :) :)
View Tutorial          By: dhruva at 2013-07-10 08:56:27

6. Thanks. But I've also had to use $JAVA_HOME/jre/li
View Tutorial          By: Alex at 2010-03-15 04:17:09

7. very helpful to me.thanks.very very useful to me.
View Tutorial          By: viji at 2007-12-21 03:17:14

8. Thanks heaps, I had the file already there but it
View Tutorial          By: Jb at 2009-05-14 08:13:08

9. Problem
The managed bean doesn't get update

View Tutorial          By: jsfuser at 2007-12-25 22:21:54

10. I have initialized a int array while declaring.
View Tutorial          By: Prashanth at 2011-09-15 11:16:40