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. Works great, thanks! However, is there any way to
View Tutorial          By: MisterCrow at 2013-04-30 11:56:49

2. i'm a student and new to all these HTML and JSP.
View Tutorial          By: sillee at 2009-08-13 03:22:14

3. setting on my nokia 7610 on mtn using operamini 4.
View Tutorial          By: DREAD at 2010-06-21 07:40:13

4. Sir. Please give an example which is small and und
View Tutorial          By: Rafik at 2011-08-17 19:45:04

5. Problem
The managed bean doesn't get update

View Tutorial          By: jsfuser at 2007-12-25 22:21:54

6. a pretty good site for learners
View Tutorial          By: chaitra at 2011-12-15 10:09:14

7. Does memmove care if the source is bytes and the d
View Tutorial          By: Paul at 2012-07-20 11:59:32

8. I want to creat a bilingual dictionary for mobile
View Tutorial          By: Maryam at 2011-01-25 02:28:44

9. keep it up!
View Tutorial          By: kamran at 2010-04-13 07:01:26

10. i wrote ocjp exam on oct 27,2012. But still i didn
View Tutorial          By: Yashwinkkumar R at 2013-02-17 09:05:29