Hi,
Pl have look on below issue.
http://code.google.com/p/smslib/issues/detail?id=371

It may be the problem of your modem or mobile unable to execute AT+COPS
command.

Pl paste  the log with debug mode also plan your smslib upgrading to 3.4.6.

Hope it helps,
as...@chennai
-- 
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.


On Mon, Jul 26, 2010 at 5:01 PM, Daya Shanker <[email protected]> wrote:

> please provide some help.
>
> Regards.
> Daya
>
>
> On Fri, Jul 23, 2010 at 2:47 PM, j2ee <[email protected]> wrote:
>
>> Hello,
>>
>> Can any body tell about the problem coming while running
>> SendMessage.java example. following trace are coming:
>>
>> SMSLib: A Java API library for sending and receiving SMS via a GSM
>> modem or other supported gateways.
>> This software is distributed under the terms of the Apache v2.0
>> License.
>> Web Site: http://smslib.org
>> Version: 3.4.5
>> INFO - SMSLib: A Java API library for sending and receiving SMS via a
>> GSM modem or other supported gateways.
>> This software is distributed under the terms of the Apache v2.0
>> License.
>> Web Site: http://smslib.org
>> INFO - Version: 3.4.5
>> INFO - JRE Version: 1.6.0
>> INFO - JRE Impl Version: 1.6.0-b105
>> INFO - O/S: Linux / i386 / 2.6.18-128.el5
>> DEBUG - Initialized.
>> DEBUG - Initialized.
>> DEBUG - DelayQueueManager running...
>> DEBUG - NotifyQueueManager running...
>> DEBUG - Initialized.
>> INFO - GTW: modem1: Starting gateway, using Generic AT Handler.
>> DEBUG - GTW: modem1: Connecting Port .. Daya ..
>> INFO - GTW: modem1: Using polled serial port mode.
>> INFO - GTW: modem1: Opening: /dev/ttyUSB0 @115200
>> INFO - GTW: modem1: PortId is setting : Daya
>> Experimental:  JNI_OnLoad called.
>> Stable Library
>> =========================================
>> Native lib Version = RXTX-2.1-7
>> Java lib Version   = RXTX-2.1-7
>> RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
>>  getPortIdentifier entered ; Daya ..
>>  getPortIdentifier: calling getMethod()  entered : Daya ..
>>  getPortIdentifier: calling CommPortIdentifier()  entered :
>> Daya ..getPortIdentifier
>>  getPortIdentifier: called CommPortIdentifier()  entered : Daya ..
>> INFO - GTW: modem1: PortId is set : Daya
>> INFO - GTW: modem1: SerialPort is set : Daya
>> INFO - GTW: modem1: In port is set : Daya
>> INFO - GTW: modem1: Out port is set : Daya
>> INFO - GTW: modem1: set Port Reader : Daya
>> DEBUG - Initialized.
>> DEBUG - GTW: modem1: Port Connected .. Daya ..
>> DEBUG - Initialized.
>> DEBUG - GTW: modem1: KeepAlive .. Daya ..
>> DEBUG - Initialized.
>> DEBUG - GTW: modem1: CNMIEmulatorProcessor .. Daya ..
>> DEBUG - ** disabled **
>> DEBUG - GTW: modem1: ModemReader thread started.
>> DEBUG - GTW: modem1: Modem Reader .. Daya ..
>> DEBUG - GTW: modem1: AsyncNotifier thread started.
>> DEBUG - GTW: modem1: AsyncNotifier .. Daya ..
>> DEBUG - GTW: modem1: AsyncMessageProcessor thread started.
>> DEBUG - GTW: modem1: AsyncMessageProcessor .. Daya ..
>> DEBUG - GTW: modem1: clearBuffer() called.
>> DEBUG - GTW: modem1: clearBuffer.. Daya ..
>> DEBUG - GTW: modem1: SEND :(27)
>> DEBUG - GTW: modem1: SEND :+++
>> DEBUG - GTW: modem1: SEND :ATZ(cr)
>> DEBUG - GTW: modem1: clearBuffer() called.
>> DEBUG - GTW: modem1: reset .. Daya ..
>> DEBUG - GTW: modem1: SEND :ATZ(cr)
>> DEBUG - GTW: modem1: sync .. Daya ..
>> DEBUG - GTW: modem1: SEND :ATE0(cr)
>> DEBUG - GTW: modem1: clearBuffer() called.
>> DEBUG - GTW: modem1: echoOff .. Daya ..
>> DEBUG - GTW: modem1: SEND :AT+CPIN?(cr)
>> DEBUG - GTW: modem1: BUFFER: +CPIN: READY
>> DEBUG - GTW: modem1: RECV :+CPIN: READY(cr)
>> DEBUG - GTW: modem1: SEND :ATE0(cr)
>> DEBUG - GTW: modem1: clearBuffer() called.
>> DEBUG - GTW: modem1: SEND :AT+CLIP=1(cr)
>> DEBUG - GTW: modem1: BUFFER: OK
>> DEBUG - GTW: modem1: RECV :OK(cr)
>> DEBUG - GTW: modem1: SEND :AT+COPS=0(cr)
>> DEBUG - ** disabled **
>> DEBUG - GTW: modem1: Buffer contents on timeout:
>> DEBUG - Stopped.
>> DEBUG - Stopped.
>> DEBUG - GTW: modem1: AsyncNotifier thread ended.
>> DEBUG - GTW: modem1: AsyncMessageProcessor thread ended.
>> DEBUG - GTW: modem1: ModemReader thread ended.
>> DEBUG - Stopped.
>> INFO - GTW: modem1: Closing: /dev/ttyUSB0 @115200
>> DEBUG - Stopped.
>> DEBUG - Stopped.
>> INFO - GTW: modem1: Stopping gateway...
>> DEBUG - NotifyQueueManager end...
>> java.lang.NullPointerException
>>        at
>> org.smslib.modem.SerialModemDriver.disconnectPort(SerialModemDriver.java:
>> 115)
>>        at org.smslib.modem.AModemDriver.disconnect(AModemDriver.java:292)
>>        at org.smslib.modem.ModemGateway.stopGateway(ModemGateway.java:197)
>>        at org.smslib.Service.stopService(Service.java:338)
>>        at org.smslib.Service.startService(Service.java:217)
>>        at examples.modem.SendMessage.doIt(SendMessage.java:34)
>>        at examples.modem.SendMessage.main(SendMessage.java:77)
>> DEBUG - NotifyQueueManager running...
>> DEBUG - NotifyQueueManager end...
>> DEBUG - NotifyQueueManager running...
>>
>>
>> Please help me about the problem
>>
>> Regards.
>> Daya
>>
>> --
>> 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]<smslib%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/smslib?hl=en.
>>
>>
>
>
> --
> Thanks & Regds.
> *****************************
> Daya Shanker Chaubey
> Research Engineer
> IN Group
> C-DOT Delhi
>
>  --
> 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]<smslib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/smslib?hl=en.
>

-- 
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