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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. very nice but i want some more exapmles
View Tutorial By: prasad lengare at 2010-10-03 23:12:47
2. hie
can u plz tell how i maintain my rms f
View Tutorial By: diya at 2010-04-30 01:38:06
3. Thank You very much :)
View Tutorial By: RaghuCK at 2010-09-09 13:53:26
4. I have loaded allthe 5 java files.But how to imple
View Tutorial By: devi at 2008-04-01 01:02:28
5. Good start for me. At least I now know what i am s
View Tutorial By: eoaddai at 2011-12-23 20:53:35
6. How can I execute the JSP program?
Please
View Tutorial By: Suresh at 2013-01-04 06:43:10
7. Great! Thanks :)
View Tutorial By: Shivang at 2010-10-10 11:53:54
8. can we print only second by using the date functio
View Tutorial By: mukesh kumar at 2011-07-27 02:31:02
9. Real Life example of using Volatile
*******
View Tutorial By: Mayank at 2011-01-25 15:44:21
10. I've been learning C++/C for the past year or so,
View Tutorial By: William Semple at 2013-01-05 17:53:30