Hi,
I new to SIM lib

I m using Ubuntu 8.10 while running the ReadMessage sample i got a
NUll pointer exception
java -cp .:smslib-3.3.3.jar examples.modem.ReadMessages

java.lang.NullPointerException
        at examples.modem.ReadMessages.doIt(ReadMessages.java:124)
        at examples.modem.ReadMessages.main(ReadMessages.java:169)

Things i have done:

I have put necessary Communication api jars to jre/lib and jre/lib/ext

I have put other depedent jars :activation.jar ,commens-net ,log4j and
java mail jars to the jre/lib/ext

and i have add my device to javax.comm.properties too like follows

# Paths to server-side serial port devices
serpath0 = /dev/ttyS0
serpath1 = /dev/ttyS1
serpath2 = /dev/ttyUSB0

I m using a HUAWEI E220 modem

following is the change i have done to ReadMessages.java

SerialModemGateway gateway = new SerialModemGateway("modem.ttyUSB0", "/
dev/ttyUSB0", 115200, "HUAWEI", "E220");

but when try to run i get the above error.
Can you help me in this

thank you,

Charith


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to