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. i have a shimmer accelerometer(bluetooth). i need
View Tutorial          By: jason at 2012-03-22 04:05:08

2. frnds i want serial communication over beaglebone
View Tutorial          By: Rajneesh at 2015-04-12 11:23:16

3. chat
View Tutorial          By: zahra zare at 2009-05-10 07:07:57

4. It is clear but at the starting code there is a wr
View Tutorial          By: Kiranmoy Pradhan at 2015-08-20 21:55:15

5. Thanks for the syntax, this has really helped me u
View Tutorial          By: Ketobbey at 2010-04-30 19:01:29

6. What a wonderful site for beginners? Now I can pra
View Tutorial          By: Kafedha Rwezaula at 2010-06-03 04:39:59

7. you example does not run it errors can you pls fix
View Tutorial          By: dionesia at 2009-08-24 05:27:37

8. i am getting an exceptions... pls help me..

View Tutorial          By: FEBI at 2014-03-08 06:01:44

9. Its working ,,, gud stuff.
View Tutorial          By: Atul at 2011-07-21 10:34:44

10. not work
View Tutorial          By: kkbb at 2011-03-12 03:52:06