Thank you very much...it works perfect!!
Thank you for this project !!

On Wed, Aug 21, 2013 at 12:37 PM, SMSLib Discussion Group on behalf of
Thanasis Delenikas <[email protected]> wrote:

> Well, SMSServer does not support this, so you have to "hard-wire" it...
>
> Edit org.smslib.smsserver.SMSServer and locate line:
>
> gtw.create();
>
> in LoadConfiguration() method.
>
> After this line, add:
>
> ((ModemGateway) gtw.getGateway()).getATHandler().setStorageLocations("SM");
>
> Rebuild and run...
>
>
> On 21 August 2013 18:22, Humberto Zuluaga via SMSLib Discussion Group <
> smslib+noreply-apn2wqdcdyf_77ax5k3sifkui4aypjsxz4zkt9u_w_fvjk...@googlegroups.com
> > wrote:
>
>> Hello, thanks for your reply
>>
>> I am  trying to use SMSServer,  I need to capture SMS  and stored them in
>> a DB , such as mysql, for future analysis.
>> I am using Mac Os 10.8.4  and  had several problems with the comm.jar and
>> RXTXcomm.jar libraries , so I had to compile new RXTXcomm.jar and
>> rxtxSerial.jnilib for my machine , following the recommendations that I
>> found in
>> http://warrior-of-agape.blogspot.com/2013/02/serial-communication-in-java-16-for-mac.html
>>
>> After  that ,   the exception I got is the one  I posted here . I have
>> read several similar cases in this forum  and see you recommend to use
>> setStorageLocation with param SM, but could not find out in which java file
>> I should add that line !!
>>
>>  thanks for your help.
>>
>>
>>
>> On Wednesday, August 21, 2013 8:28:09 AM UTC-5, Thanasis Delenikas wrote:
>>>
>>> It seems that your modem does not like the "SR" memory location...
>>> Are you still running smsserver?
>>>
>>>
>>> On 20 August 2013 19:46, Humberto Zuluaga via SMSLib Discussion Group <
>>> smslib+noreply-APn2wQdcDyf_**77Ax5K3siFkUi4AYpJsXz4zKt9U_W_**
>>> [email protected]> wrote:
>>>
>>>>
>>>> Hi
>>>>
>>>> I removed all comm.jar that were located in some directories such as
>>>> /Library/Java/Extensions and /System/Library/Java/**Extensions and I
>>>> worked ! it recognised the modem and reads the inbound messages .
>>>> However , there is an exceptions while reading the messages , something
>>>> related to a STRING INDEX OUT OF RANGE, and the messages are not stored in
>>>> the DB!
>>>>
>>>> here is the message error:
>>>>
>>>> Thank you very much.
>>>>
>>>> 312258 2013-08-20 11:36:46,384 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.ModemGateway  - GTW: modem1: IN-DTLS: MI:4 REF:0 MAX:0
>>>> SEQ:0
>>>> 312258 2013-08-20 11:36:46,384 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.ModemGateway  - GTW: modem1: READ PDU:
>>>> 0791751330080089040AA123408935**3100003180021191450A0CCB32A81D**
>>>> 9E83ECE9B2FA0D
>>>> 312259 2013-08-20 11:36:46,385 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.ModemGateway  - GTW: modem1: 
>>>> ==============================
>>>> **===================
>>>> << SmsDeliveryPdu >>
>>>> Raw Pdu: 0791751330080089040AA123408935**3100003180021191450A0CCB32A81D
>>>> **9E83ECE9B2FA0D
>>>>
>>>> SMSC Address: [Length: 7 (07) octets, Type: 91 (10010001), Address:
>>>> 573103800098]
>>>> First Octet: 04 [TP-MTI: (SMS-DELIVER), TP-MMS: (Has more messages),
>>>> TP-RD: (allow duplicates), TP-SRI: (No Status Report), TP-SRR: (No Status
>>>> Report), TP-UDHI: (no UDH)]
>>>> Originator Address: [Length: 10 (0A), Type: 81 (10000001), Address:
>>>> 3204985313]
>>>> TP-PID: 00 (00000000)
>>>> TP-DCS: 00 (7-bit GSM Alphabet) (00000000)
>>>> TP-SCTS: Tue 20-Aug-2013 11:19:54 GMT-05:00
>>>>
>>>> User Data Length: 12 (0C) septets
>>>> User Data (pdu) : CB32A81D9E83ECE9B2FA0D
>>>> User Data (decoded): [Ke mas viejo]
>>>> ==============================**===================
>>>>
>>>> 312259 2013-08-20 11:36:46,385 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.ModemGateway  - GTW: modem1: IN-DTLS: MI:5 REF:0 MAX:0
>>>> SEQ:0
>>>> 312259 2013-08-20 11:36:46,385 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+CPMS="SR"(cr)
>>>> OK2267 2013-08-20 11:36:46,393 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.AModemDriver  - GTW: modem1: BUFFER: +CPMS: 
>>>> 0,100,6,15,6,15
>>>> 312267 2013-08-20 11:36:46,393 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.AModemDriver  - GTW: modem1: RECV :+CPMS:
>>>> 0,100,6,15,6,15(cr)OK(cr)
>>>> 312267 2013-08-20 11:36:46,393 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+CMGL=4(cr)
>>>> 312288 2013-08-20 11:36:46,414 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.AModemDriver  - GTW: modem1: BUFFER: +CMS ERROR: 500
>>>> 312289 2013-08-20 11:36:46,415 [SMSServer - InboundPollingThread] DEBUG
>>>> org.smslib.modem.AModemDriver  - GTW: modem1: RECV :+CMS ERROR: 500(cr)
>>>> 312294 2013-08-20 11:36:46,420 [SMSServer - InboundPollingThread] ERROR
>>>> org.smslib.smsserver.SMSServer  - SMSServer: reading messages exception!
>>>> java.lang.**StringIndexOutOfBoundsExceptio**n: String index out of
>>>> range: -12
>>>>  at java.lang.String.substring(**String.java:1958)
>>>> at org.smslib.modem.ModemGateway.**readMessagesPDU(ModemGateway.**
>>>> java:552)
>>>>  at org.smslib.modem.ModemGateway.**readMessages(ModemGateway.**
>>>> java:213)
>>>> at org.smslib.Service.**readMessages(Service.java:501)
>>>>  at org.smslib.Service.**readMessages(Service.java:389)
>>>> at org.smslib.smsserver.**SMSServer.readMessages(**SMSServer.java:368)
>>>>  at org.smslib.smsserver.**SMSServer$**InboundPollingThread.run(**
>>>> SMSServer.java:265)
>>>> 313535 2013-08-20 11:36:47,661 [QueueManager [modem1]] DEBUG
>>>> org.smslib.threading.**AServiceThread  - Running...
>>>> 315515 2013-08-20 11:36:49,641 [WatchDog] DEBUG 
>>>> org.smslib.threading.**AServiceThread
>>>>  - Running...
>>>> 318537 2013-08-20 11:36:52,663 [QueueManager [modem1]] DEBUG
>>>> org.smslib.threading.**AServiceThread  - Running...
>>>> 323538 2013-08-20 11:36:57,664 [QueueManager [modem1]] DEBUG
>>>> org.smslib.threading.**AServiceThread  - Running...
>>>> 328538 2013-08-20 11:37:02,664 [QueueManager [modem1]] DEBUG
>>>> org.smslib.threading.**AServiceThread  - Running...
>>>> 330517 2013-08-20 11:37:04,643 [WatchDog] DEBUG 
>>>> org.smslib.threading.**AServiceThread
>>>>  - Running...
>>>>
>>>>
>>>>
>>>>
>>>> On Tuesday, August 20, 2013 10:42:51 AM UTC-5, Thanasis Delenikas wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Can you check that you are using *one* of RxTx and JavaComm and *not
>>>>> both*?
>>>>>
>>>>>
>>>>> On 13 August 2013 01:30, Humberto Zuluaga via SMSLib Discussion Group
>>>>> <smslib+noreply-APn2wQdcDyf_**77**Ax5K3siFkUi4AYpJsXz4zKt9U_W_**FV**
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hello all
>>>>>>
>>>>>> I 've compiled the SMSServer.jar and smsserver-3.5.3.jar
>>>>>> successfully. I am using a modem ZTE mf190. When I launch the SMSServer I
>>>>>> get the following error:
>>>>>>
>>>>>> Any help will be appreciate!!
>>>>>>
>>>>>> THX
>>>>>>
>>>>>> java -cp .:smsserver-3.5.3.jar:R 
>>>>>> -Djava.library.path="/Library/****Java/Extensions/"
>>>>>> -Dsmsserver.configfile=**SMSServ**er.conf  org.smslib.smsserver.**
>>>>>> SMSServe**r
>>>>>> 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
>>>>>>
>>>>>> SMSLib API version: 3.5.3
>>>>>> SMSServer version: 3.5.3
>>>>>> 0      2013-08-12 16:39:53,294 [main] INFO  org.smslib.Service  -
>>>>>> 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
>>>>>> 4      2013-08-12 16:39:53,298 [main] INFO  org.smslib.Service  -
>>>>>> Version: 3.5.3
>>>>>> 4      2013-08-12 16:39:53,298 [main] INFO  org.smslib.Service  - JRE
>>>>>> Version: 1.7.0-ea
>>>>>> 7      2013-08-12 16:39:53,301 [main] INFO  org.smslib.Service  - JRE
>>>>>> Impl Version: 21.0-b17
>>>>>> 7      2013-08-12 16:39:53,301 [main] INFO  org.smslib.Service  -
>>>>>> O/S: Mac OS X / x86_64 / 10.8.4
>>>>>> 65     2013-08-12 16:39:53,359 [main] INFO  org.smslib.smsserver.**
>>>>>> SMSServe**r  - SMSServer: added gateway modem1 / Default Serial
>>>>>> Modem Gateway.
>>>>>> 73     2013-08-12 16:39:53,367 [main] INFO  org.smslib.smsserver.**
>>>>>> SMSServe**r  - SMSServer: added interface db1 / Default database
>>>>>> interface. / INOUTBOUND
>>>>>> 620    2013-08-12 16:39:53,914 [main] INFO  org.smslib.smsserver.**
>>>>>> interfac**es.Interface  - SMSServer: interface: org.smslib.smsserver.
>>>>>> **interface**s.Database started.
>>>>>> 622    2013-08-12 16:39:53,916 [main] INFO  org.smslib.queues.**
>>>>>> DefaultQueu**eManager  - Queue directory not defined. Queued
>>>>>> messages will not be saved to filesystem.
>>>>>> 624    2013-08-12 16:39:53,918 [main] DEBUG org.smslib.threading.**
>>>>>> AServiceT**hread  - Initialized.
>>>>>> 624    2013-08-12 16:39:53,918 [NotifyQueueManager] DEBUG
>>>>>> org.smslib.threading.**AServiceT**hread  - Running...
>>>>>> 624    2013-08-12 16:39:53,918 [NotifyQueueManager] DEBUG
>>>>>> org.smslib.notify.**NotifyQueueM**anager$**NotificationQueueManage**r
>>>>>>  - NotifyQueueManager running...
>>>>>> 625    2013-08-12 16:39:53,919 [main] DEBUG org.smslib.threading.**
>>>>>> AServiceT**hread  - Initialized.
>>>>>> 625    2013-08-12 16:39:53,919 [DelayQueueManager] DEBUG
>>>>>> org.smslib.threading.**AServiceT**hread  - Running...
>>>>>> 626    2013-08-12 16:39:53,920 [DelayQueueManager] DEBUG
>>>>>> org.smslib.queues.**AbstractQueu**eManager$**DelayQueueManager  -
>>>>>> DelayQueueManager running...
>>>>>> 626    2013-08-12 16:39:53,920 [main] DEBUG org.smslib.threading.**
>>>>>> AServiceT**hread  - Initialized.
>>>>>> 629    2013-08-12 16:39:53,923 [WatchDog] DEBUG org.smslib.threading.
>>>>>> **AServiceT**hread  - Running...
>>>>>> 630    2013-08-12 16:39:53,924 [Thread-4] INFO
>>>>>>  org.smslib.modem.ModemGateway  - GTW: modem1: Starting gateway, using
>>>>>> Generic AT Handler.
>>>>>> 630    2013-08-12 16:39:53,924 [Thread-4] INFO  org.smslib.modem.**
>>>>>> SerialModemD**river  - GTW: modem1: Opening: /dev/tty.ZTEUSBATPort_
>>>>>> @19200
>>>>>>
>>>>>> java.io.IOException: Error instantiating class gnu.io.RXTXCommDriver
>>>>>> gnu.io.RXTXCommDriver cannot be cast to javax.comm.CommDriver
>>>>>> at javax.comm.CommPortIdentifier.****loadDriver(CommPortIdentifier.**
>>>>>> **java:238)
>>>>>>  at javax.comm.CommPortIdentifier.****<clinit>(CommPortIdentifier.**
>>>>>> ja**va:109)
>>>>>>  at java.lang.Class.forName0(**Nativ**e Method)
>>>>>> at java.lang.Class.forName(Class.****java:186)
>>>>>>  at org.smslib.helper.**CommPortIden**tifier.<clinit>(**
>>>>>> CommPortIdenti**fier.java:66)
>>>>>>  at org.smslib.modem.**SerialModemDr**iver.connectPort(**
>>>>>> SerialModemDr**iver.java:69)
>>>>>> at org.smslib.modem.AModemDriver.****connect(AModemDriver.java:114)
>>>>>>  at org.smslib.modem.ModemGateway.****startGateway(ModemGateway.**
>>>>>> java**:189)
>>>>>> at org.smslib.Service$1Starter.**ru**n(Service.java:277)
>>>>>> Exception in thread "Thread-4" java.lang.**UnsatisfiedLinkError**:
>>>>>> com.sun.comm.SunrayInfo.**isSess**ionActive()Z
>>>>>> at com.sun.comm.SunrayInfo.**isSess**ionActive(Native Method)
>>>>>>  at com.sun.comm.Portmapping.**regis**terCommPorts(Portmapping.**
>>>>>> java:**155)
>>>>>> at com.sun.comm.Portmapping.**refre**shPortDatabase(**Portmapping.**
>>>>>> java:100)
>>>>>>  at javax.comm.CommPortIdentifier.****<clinit>(CommPortIdentifier.**
>>>>>> ja**va:138)
>>>>>> at java.lang.Class.forName0(**Nativ**e Method)
>>>>>>  at java.lang.Class.forName(Class.****java:186)
>>>>>> at org.smslib.helper.**CommPortIden**tifier.<clinit>(**CommPortIdenti
>>>>>> **fier.java:66)
>>>>>>  at org.smslib.modem.**SerialModemDr**iver.connectPort(**
>>>>>> SerialModemDr**iver.java:69)
>>>>>> at org.smslib.modem.AModemDriver.****connect(AModemDriver.java:114)
>>>>>>  at org.smslib.modem.ModemGateway.****startGateway(ModemGateway.**
>>>>>> java**:189)
>>>>>> at org.smslib.Service$1Starter.**ru**n(Service.java:277)
>>>>>> 15629  2013-08-12 16:40:08,923 [WatchDog] DEBUG org.smslib.threading.
>>>>>> **AServiceT**hread  - Running...
>>>>>> 30631  2013-08-12 16:40:23,925 [WatchDog] DEBUG org.smslib.threading.
>>>>>> **AServiceT**hread  - Running...
>>>>>>  45631  2013-08-12 16:40:38,925 [WatchDog] DEBUG org.smslib.threading.
>>>>>> **AServiceT**hread  - Running...
>>>>>>
>>>>>>
>>>>>>
>>>>>>  --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "SMSLib Discussion Group" group.
>>>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>>>> **ms**gid/smslib/604c9b9b-2276-**4383-**beb1-d038ef567e77%**
>>>>>> 40googlegrou**ps.com?hl=en<https://groups.google.com/d/msgid/smslib/604c9b9b-2276-4383-beb1-d038ef567e77%40googlegroups.com?hl=en>
>>>>>> .
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "SMSLib Discussion Group" group.
>>>> To view this discussion on the web visit https://groups.google.com/d/**
>>>> msgid/smslib/a8f2f873-6c53-**4648-9f1c-a9c8736ae497%**
>>>> 40googlegroups.com<https://groups.google.com/d/msgid/smslib/a8f2f873-6c53-4648-9f1c-a9c8736ae497%40googlegroups.com>
>>>> .
>>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "SMSLib Discussion Group" group.
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/smslib/9df3e020-4a5a-40a8-9f90-ff1e5b4a02c1%40googlegroups.com
>> .
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "SMSLib Discussion Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/smslib/CABkOnhMmAafB2FzC%2B-mY1Ha0c7dVen7Nm4qt9BWOuPwi_j5e6A%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/smslib/CAPR3pZ%3DbR%2BfhdsYpoe5N_n74dTN39i%2BL39aV6rrUag3Hd-dotw%40mail.gmail.com.
  • [smslib] gnu.io.RX... Humberto Zuluaga via SMSLib Discussion Group
    • Re: [smslib] ... SMSLib Discussion Group on behalf of Thanasis Delenikas
      • Re: [smsl... Humberto Zuluaga via SMSLib Discussion Group
        • Re: [... SMSLib Discussion Group on behalf of Thanasis Delenikas
          • R... Humberto Zuluaga via SMSLib Discussion Group
            • ... SMSLib Discussion Group on behalf of Thanasis Delenikas
              • ... SMSLib Discussion Group on behalf of Humberto Zuluaga
                • ... SMSLib Discussion Group on behalf of Thanasis Delenikas

Reply via email to