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. hi,
while exporting data i am getting error

View Tutorial          By: akash at 2011-12-22 07:28:05

2. Hello, I have stupid questions, but I need to ask
View Tutorial          By: Johnson Edison at 2012-12-13 17:10:57

3. really nice explanation
View Tutorial          By: kuldeep at 2012-08-23 13:04:30

4. So inf0rmative!
View Tutorial          By: Pamela at 2008-11-08 07:29:24

5. Good piece of information explained wonderfully. !
View Tutorial          By: Juzar at 2009-07-23 00:24:40

6. Daniel, i think you need another func, also you ca
View Tutorial          By: רופא שיניים at 2009-08-15 16:48:07

7. can anyone tell how to send sms in asp.net using p
View Tutorial          By: dubail at 2013-04-06 14:17:44

8. Hi Ramlak, Can you please let me know to resolve t
View Tutorial          By: Braj at 2009-01-29 08:50:33

9. Thx, this helped a lot.

How can I I

View Tutorial          By: Marko at 2008-10-09 01:32:37

10. Don't forget the native type char, which is a 16 b
View Tutorial          By: Ron Stern at 2011-09-18 17:24:12