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_fvjk...@googlegroups.com > 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: > 0791751330080089040AA1234089353100003180021191450A0CCB32A81D9E83ECE9B2FA0D > 312259 2013-08-20 11:36:46,385 [SMSServer - InboundPollingThread] DEBUG > org.smslib.modem.ModemGateway - GTW: modem1: > ================================================= > << SmsDeliveryPdu >> > Raw Pdu: > 0791751330080089040AA1234089353100003180021191450A0CCB32A81D9E83ECE9B2FA0D > > 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.StringIndexOutOfBoundsException: 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_**77Ax5K3siFkUi4AYpJsXz4zKt9U_W_** >> [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=**SMSServer.conf org.smslib.smsserver.** >>> SMSServer >>> 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.**SMSServer >>> - SMSServer: added gateway modem1 / Default Serial Modem Gateway. >>> 73 2013-08-12 16:39:53,367 [main] INFO org.smslib.smsserver.**SMSServer >>> - SMSServer: added interface db1 / Default database interface. / INOUTBOUND >>> 620 2013-08-12 16:39:53,914 [main] INFO >>> org.smslib.smsserver.**interfaces.Interface >>> - SMSServer: interface: org.smslib.smsserver.**interfaces.Database >>> started. >>> 622 2013-08-12 16:39:53,916 [main] INFO >>> org.smslib.queues.**DefaultQueueManager >>> - 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.**AServiceThread >>> - Initialized. >>> 624 2013-08-12 16:39:53,918 [NotifyQueueManager] DEBUG >>> org.smslib.threading.**AServiceThread - Running... >>> 624 2013-08-12 16:39:53,918 [NotifyQueueManager] DEBUG >>> org.smslib.notify.**NotifyQueueManager$**NotificationQueueManager - >>> NotifyQueueManager running... >>> 625 2013-08-12 16:39:53,919 [main] DEBUG >>> org.smslib.threading.**AServiceThread >>> - Initialized. >>> 625 2013-08-12 16:39:53,919 [DelayQueueManager] DEBUG >>> org.smslib.threading.**AServiceThread - Running... >>> 626 2013-08-12 16:39:53,920 [DelayQueueManager] DEBUG >>> org.smslib.queues.**AbstractQueueManager$**DelayQueueManager - >>> DelayQueueManager running... >>> 626 2013-08-12 16:39:53,920 [main] DEBUG >>> org.smslib.threading.**AServiceThread >>> - Initialized. >>> 629 2013-08-12 16:39:53,923 [WatchDog] DEBUG >>> org.smslib.threading.**AServiceThread >>> - 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.**SerialModemDriver >>> - 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.** >>> java:109) >>> at java.lang.Class.forName0(**Native Method) >>> at java.lang.Class.forName(Class.**java:186) >>> at org.smslib.helper.**CommPortIdentifier.<clinit>(** >>> CommPortIdentifier.java:66) >>> at org.smslib.modem.**SerialModemDriver.connectPort(** >>> SerialModemDriver.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.**run(Service.java:277) >>> Exception in thread "Thread-4" java.lang.**UnsatisfiedLinkError: >>> com.sun.comm.SunrayInfo.**isSessionActive()Z >>> at com.sun.comm.SunrayInfo.**isSessionActive(Native Method) >>> at com.sun.comm.Portmapping.**registerCommPorts(Portmapping.**java:155) >>> at com.sun.comm.Portmapping.**refreshPortDatabase(** >>> Portmapping.java:100) >>> at javax.comm.CommPortIdentifier.**<clinit>(CommPortIdentifier.** >>> java:138) >>> at java.lang.Class.forName0(**Native Method) >>> at java.lang.Class.forName(Class.**java:186) >>> at org.smslib.helper.**CommPortIdentifier.<clinit>(** >>> CommPortIdentifier.java:66) >>> at org.smslib.modem.**SerialModemDriver.connectPort(** >>> SerialModemDriver.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.**run(Service.java:277) >>> 15629 2013-08-12 16:40:08,923 [WatchDog] DEBUG >>> org.smslib.threading.**AServiceThread >>> - Running... >>> 30631 2013-08-12 16:40:23,925 [WatchDog] DEBUG >>> org.smslib.threading.**AServiceThread >>> - Running... >>> 45631 2013-08-12 16:40:38,925 [WatchDog] DEBUG >>> org.smslib.threading.**AServiceThread >>> - 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/** >>> msgid/smslib/604c9b9b-2276-**4383-beb1-d038ef567e77%** >>> 40googlegroups.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 > . > -- 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/CABkOnhMXcXzREXH%3DQZA3O7C8ftBCuCZ3uVF34BUMruYF0Exhfg%40mail.gmail.com.
