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



Comment Added by : Akanksha

Comment Added at : 2014-01-20 10:31:31

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

I am using this code and getting following error:-

recipient: +919940138758 message: hi
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.xchanging.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.xchanging.sms.Sender.send(Sender.java:46)
at com.xchanging.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.xchanging.sms.SerialConnection.openConnection(SerialConnection.java:89)
at com.xchanging.sms.Sender.send(Sender.java:46)
at com.xchanging.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)
*****************************************************************

I changed the message center number but i dont know where to find port number because i don't have modem rather i am connected via LAN.

So can anyone help me with this please!!!! its kind of urgent


View Tutorial



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. very nicely explained,
thank you

View Tutorial          By: Amin at 2010-04-14 09:40:30

2. thanx very much...
View Tutorial          By: Rajesh at 2015-10-09 08:57:36

3. You don't have to call the constructors. When you
View Tutorial          By: Watson at 2011-05-04 10:44:23

4. I changed import javax.comm.*; for this line impo
View Tutorial          By: Julen at 2010-07-18 18:39:25

5. you can use multiple switch statements depending o
View Tutorial          By: moshood at 2012-04-01 13:24:41

6. can any plz tell me how to create a calculator in
View Tutorial          By: sam at 2010-11-13 06:53:04

7. hai
View Tutorial          By: ayyannan at 2011-01-21 21:27:35

8. it really helped me...thank you...
View Tutorial          By: ram at 2015-01-22 20:12:01

9. Hello there , i am unable to understand read and w
View Tutorial          By: deepak at 2014-12-10 14:04:42

10. it help me lot 2 understand what is struts-config
View Tutorial          By: Amit Tomar at 2010-11-27 09:27:15