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.
