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



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. the example program is very simple to understand a
View Tutorial          By: Zubilu at 2010-10-06 00:19:13

2. Hi,
this is excellent stuff and I highly ap

View Tutorial          By: Nanda at 2007-11-02 04:58:30

3. MSComm1.Settings="9600,n,8,1"

View Tutorial          By: ali at 2012-02-25 21:52:21

4. Hi you can find inheritance example in Java in the
View Tutorial          By: Mashoud at 2008-04-26 20:12:37

5. This is by far the easiest way I have yet seem, ma
View Tutorial          By: doahh at 2010-03-08 11:23:48

6. it is very good service.
View Tutorial          By: rajesh at 2009-11-14 02:48:18

7. write a program to prepare the student marks for s
View Tutorial          By: belgreen frodo at 2015-03-31 05:41:05

8. your code helps a lot.....
thanx......

View Tutorial          By: beh at 2009-08-19 06:06:20

9. super
View Tutorial          By: chalamareddy at 2012-10-08 18:08:29

10. i want to knew about byte datatype. why did not by
View Tutorial          By: pankaj kr tiwari at 2011-12-02 04:37:43