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



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. I get theses errors and apparrently it cannot find
View Tutorial          By: Abhaya at 2013-02-20 22:42:18

2. Imports Excel = Microsoft.Office.Interop.Excel

View Tutorial          By: Nilesh at 2014-12-01 13:45:25

3. it works well thanks
View Tutorial          By: Zahran at 2011-12-08 03:07:07

4. Hi santhosh,
Try it ou

View Tutorial          By: Kiran at 2011-12-14 04:31:29

5. hi!
how can i add variable form object to a

View Tutorial          By: rushi at 2015-07-16 08:18:58

6. Following line
if (strcmp(dp->

View Tutorial          By: Sebastiaan Jaarsma at 2012-12-24 19:28:43

7. nice info 4me
View Tutorial          By: baru at 2015-07-24 08:52:03

8. hey Mounika..did u solve ur problem ??if u did ple
View Tutorial          By: agnas at 2008-04-28 23:59:37

9. thanks - this really helped!!
View Tutorial          By: mike at 2012-06-14 19:45:17

10. thanks 4 d inf..
View Tutorial          By: Ankur Saxena at 2012-02-10 15:31:33