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

mailprotik@gmail.com


View Tutorial



Ask a Question

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. can you provide the full class from start to begin
View Tutorial          By: mohit at 2011-12-01 09:56:22

2. Great examples Eric! Really helped me out a lot, m
View Tutorial          By: Markus at 2008-11-12 05:27:05

3. hai sir... this is ROSHAN I am searching for voice
View Tutorial          By: roshan at 2013-09-25 08:12:55

4. thank you, this best for student like us,
View Tutorial          By: Srinath at 2012-05-12 15:04:03

5. Hi I am new to struts framework. Can u tell how to
View Tutorial          By: Nithya at 2012-11-27 14:03:46

6. good
View Tutorial          By: Devil vampire at 2009-03-23 12:20:03

7. sUPER eXPLAnation
View Tutorial          By: Surendra at 2015-06-13 07:23:56

8. It's very use full to me ....
Thans a lot..

View Tutorial          By: Raxit at 2011-12-30 03:57:03

9. nice information, thanks dost.
View Tutorial          By: Bhargavi Menpara at 2013-02-12 08:11:23

10. I want an example...to get multiple values using S
View Tutorial          By: Madhu at 2015-07-13 19:57:14