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



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. very simple explanation......
easily unders

View Tutorial          By: saurabh at 2009-04-17 16:02:30

2. Thank alot
View Tutorial          By: Naganatarajan at 2010-01-07 05:54:17

3. thank you for this quick and easy demonstration. B
View Tutorial          By: rajesh at 2012-09-20 17:48:17

4. can you please explain this..!!

t =

View Tutorial          By: kalyan at 2011-06-30 00:01:10

5. Been looking at several website for a clear explan
View Tutorial          By: Jase at 2011-08-09 12:00:10

6. char *s;
s=(char *) melloc(sizeof(char)*3);

View Tutorial          By: URS at 2011-08-24 12:32:55

7. Hi This is very fine to understanding struts flo
View Tutorial          By: Abinash at 2011-06-28 08:27:18

8. i have asked for refercing the object of main clas
View Tutorial          By: deepesh at 2012-08-20 10:33:58

9. Thank you, Every thing is working fine...!!

View Tutorial          By: Purushothaman at 2009-04-10 07:18:38

10. int m,m2,n,n2;
for( m=0 , m2=0 ; m<

View Tutorial          By: muhammad abdullah at 2012-10-11 05:27:02