Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : pablo

Comment Added at : 2014-08-03 16:10:55

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
I am receiving an error as
Error java.lang.NullPointerException
The code is

package p1;
import javax.comm.*;
import p1.SMSClient;
public class test{

private static int sendMessage;

/**
* @param args
*/
public static void main(String[] args) {
try{
SMSClient obj=new SMSClient();
int n=obj.sendMessage("9062322456", "test");
}
catch(Exception e){System.out.println("Error " +e);}

//Error java.lang.NullPointerException
}
}


I would also like to knwo where is the smsc number in these four files and where can i find it in ??
Is it the operators code??


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. The code gives the following exception :-
<

View Tutorial          By: swetha at 2009-03-12 07:19:23

2. ok this is gud example to build an abstract class.
View Tutorial          By: ashish at 2011-12-01 06:22:32

3. how to import myownclass into another class same p
View Tutorial          By: rana at 2013-04-19 17:32:08

4. I'm sorry I've misunderstood, join() guarantees th
View Tutorial          By: Junkie Zhang at 2012-01-10 06:02:00

5. It takes me time to understand the process of the
View Tutorial          By: Abdullah Ibrahim at 2012-04-11 00:38:23

6. it is good
View Tutorial          By: kamal at 2009-11-01 19:58:54

7. works too with deepnet security platform as to imp
View Tutorial          By: biloute at 2013-05-29 11:04:51

8. its very helpful for us...and useful too.
View Tutorial          By: roy at 2011-06-15 15:32:22

9. very good example....but not explained well, begin
View Tutorial          By: ashish at 2012-06-06 17:34:57

10. Thank you very much for your help,
this co

View Tutorial          By: AA at 2011-09-09 14:24:45