Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.
Comment Added by : Protik Basu
Comment Added at : 2008-10-31 05:30:36
Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Dear All, I am getting the following exception for a code which connects a GSM Mobile and sends a SMS to the recipient I want... But I am getting the following exception
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:72)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:91)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Thread.java:595)
...
As per my knowledge the code is unable to generate the
portId using CommPortIdentifier.getPortIdentifier(String Port_name) method..I am using the port_name="COM1"..Please help..u can revert back at my mail id whichi is
[email protected]
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
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
MultiLevel Inheritance sample in Java
Archived Comments
1. this is i got error msg when i run a my program .
View Tutorial By: anbu at 2009-04-08 02:41:17
2. Can u tall me about the job market of J2ME.
View Tutorial By: mimdad07 at 2009-06-26 14:40:26
3. it's cool
View Tutorial By: RInam Shah at 2011-06-20 02:48:20
4. Hi, You need to place a control on your form
View Tutorial By: Ranjit at 2010-02-09 02:29:40
5. hi! this coding is very helpful for me thanks .
View Tutorial By: bhuvaneshwari at 2009-10-18 23:52:58
6. The following line in the code
((NewThread)
View Tutorial By: Carlos at 2009-11-18 14:34:51
7. Hi,
I am using this code and gettin
View Tutorial By: Akanksha at 2014-01-20 10:31:31
8. i have created a UI in swing now i want to read th
View Tutorial By: Ashish Gaurkhede at 2014-09-08 08:21:04
9. Hi,
My problem is with daybook. In
View Tutorial By: Priyesh at 2011-07-06 06:34:33
10. how to connect jdbc in java on mysql
View Tutorial By: saravana kumar at 2012-01-30 06:06:57