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. I executed this program with the help of below cod
View Tutorial          By: leela at 2011-09-08 12:16:24

2. @bibiki, you are right for simpler conditions what
View Tutorial          By: Marcin at 2012-04-05 02:34:13

3. introduction is very clear i get wat answer i want
View Tutorial          By: kalyan at 2013-07-02 09:23:40

4. Comment: yes i understood too:D:D perfect and brei
View Tutorial          By: eman at 2009-04-21 23:57:26

5. Hats off man !!! Very Simple & Straightforward
View Tutorial          By: Nitesh at 2013-01-06 00:50:53

6. You are so great at helping people. ;0
View Tutorial          By: Aaton at 2015-04-24 14:06:57

7. plz send me java prograams
View Tutorial          By: simmy at 2009-10-26 01:57:55

8. What about GraphicsDemo (class...?) mentioned in l
View Tutorial          By: Achi at 2008-01-08 04:21:57

9. hi MR. A.Balaji
can u help me how you have

View Tutorial          By: mjnanthini at 2010-10-03 23:04:35

10. Nice example of System.arraycopy()function. Thank
View Tutorial          By: Rahul Raj at 2015-08-17 03:11:44