Hello every body , i'm a student and i'm trying to use the SMSlib of java to send and receive message with (an ONDA_ M01 SERIAL DB15_DB9 gsm modem) thought my application i used to use the free code inder src folder of the library but i got some exceptions like :
in receiving :
run:
Example: Read messages from a serial gsm modem.
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: SMSLib
Version: 3.5.3
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for more info.
>>> Gateway Status change for modem.com37, OLD: STOPPED -> NEW: RESTART
>>> Gateway Status change for modem.com37, OLD: RESTART -> NEW: STOPPING
>>> Gateway Status change for modem.com37, OLD: STOPPING -> NEW: STOPPED
org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException
at org.smslib.modem.SerialModemDriver.connectPort(Ser ialModemDriver.java:102)
at org.smslib.modem.AModemDriver.connect(AModemDriver .java:114)
at org.smslib.modem.ModemGateway.startGateway(ModemGa teway.java:189)
at org.smslib.Service$1Starter.run(Service.java:277)
BUILD SUCCESSFUL (total time: 6 seconds)
in sending :
run:
Example: Send message from a serial gsm modem.
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: SMSLib
Version: 3.5.3
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for more info.
org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException
at org.smslib.modem.SerialModemDriver.connectPort(Ser ialModemDriver.java:102)
at org.smslib.modem.AModemDriver.connect(AModemDriver .java:114)
at org.smslib.modem.ModemGateway.startGateway(ModemGa teway.java:189)
at org.smslib.Service$1Starter.run(Service.java:277)
BUILD SUCCESSFUL (total time: 1 second)
i'll be very thankful if someone could help to solve these problems: (Poignée de main):