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. i really have to thank you for the wonderful fluid
View Tutorial          By: Joel Pereira at 2011-03-19 22:08:58

2. Hi

Where puts this code in ror app

View Tutorial          By: martin at 2013-01-31 08:51:12

3. Imports System.Web
Imports System.Net.Mail<

View Tutorial          By: Naresh at 2011-05-24 07:27:12

4. Error loading SolarisSerial: java.lang.Unsatisfied
View Tutorial          By: Sony at 2008-09-10 01:28:52

5. Very Good Example Dude!

Note for re

View Tutorial          By: Erwin at 2009-12-06 20:20:24

6. C++ is more than nyc & fun, de most interestin
View Tutorial          By: Themba at 2010-09-12 09:11:04

7. Well, this fix worked form me using Apache 2.2.11,
View Tutorial          By: Bruce at 2009-07-21 15:03:02

8. Hi
I am newly in java. I have one dought. I

View Tutorial          By: Saman at 2010-08-03 20:34:38

9. How can i use this code to send multiple sms using
View Tutorial          By: Shoaib at 2014-03-07 19:49:11

10. Here i posted a good example with spring. Here rea
View Tutorial          By: Vikash K Agarwal at 2011-11-02 12:02:50