yes you are right n thanks for help. Resolved. But Now i am stuck with another prblm. It couldnt identify the port but when I am running with rxtx.it establish serial communication. this is what its showing..
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:
http://smslib.org
Version: 3.5.2
dada
1 2012-06-24 01:50:08,764 [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
9 2012-06-24 01:50:08,772 [main] INFO org.smslib.Service - Version: 3.5.2
10 2012-06-24 01:50:08,773 [main] INFO org.smslib.Service - JRE Version: 1.6.0_21
16 2012-06-24 01:50:08,779 [main] INFO org.smslib.Service - JRE Impl Version: 17.0-b17
16 2012-06-24 01:50:08,779 [main] INFO org.smslib.Service - O/S: Windows 7 / x86 / 6.1
24 2012-06-24 01:50:08,787 [main] DEBUG org.smslib.threading.AServiceThread - Initialized.
28 2012-06-24 01:50:08,791 [main] INFO org.smslib.queues.DefaultQueueManager - Queue directory not defined. Queued messages will not be saved to filesystem.
29 2012-06-24 01:50:08,792 [NotifyQueueManager] DEBUG org.smslib.threading.AServiceThread - Running...
29 2012-06-24 01:50:08,792 [NotifyQueueManager] DEBUG org.smslib.notify.NotifyQueueManager$NotificationQueueManager - NotifyQueueManager running...
30 2012-06-24 01:50:08,793 [main] DEBUG org.smslib.threading.AServiceThread - Initialized.
31 2012-06-24 01:50:08,794 [DelayQueueManager] DEBUG org.smslib.threading.AServiceThread - Running...
32 2012-06-24 01:50:08,795 [DelayQueueManager] DEBUG org.smslib.queues.AbstractQueueManager$DelayQueueManager - DelayQueueManager running...
32 2012-06-24 01:50:08,795 [main] DEBUG org.smslib.threading.AServiceThread - Initialized.
37 2012-06-24 01:50:08,800 [Thread-4] INFO org.smslib.modem.ModemGateway - GTW: modem.com1: Starting gateway, using Generic AT Handler.
37 2012-06-24 01:50:08,800 [Thread-4] INFO org.smslib.modem.SerialModemDriver - GTW: modem.com1: Opening: COM21 @9600
41 2012-06-24 01:50:08,804 [WatchDog] DEBUG org.smslib.threading.AServiceThread - Running...
69 2012-06-24 01:50:08,832 [Thread-4] INFO org.smslib.modem.SerialModemDriver - GTW: modem.com1: Closing: COM21 @9600
1038 2012-06-24 01:50:09,801 [NotifyQueueManager] DEBUG org.smslib.notify.NotifyQueueManager$NotificationQueueManager - NotifyQueueManager end...
1038 2012-06-24 01:50:09,801 [DelayQueueManager] DEBUG org.smslib.queues.AbstractQueueManager$DelayQueueManager - DelayQueueManager end...
1138 2012-06-24 01:50:09,901 [NotifyQueueManager] DEBUG org.smslib.threading.AServiceThread - Running...
1138 2012-06-24 01:50:09,901 [NotifyQueueManager] DEBUG org.smslib.notify.NotifyQueueManager$NotificationQueueManager - NotifyQueueManager running...
1238 2012-06-24 01:50:10,001 [WatchDog] DEBUG org.smslib.threading.AServiceThread - Stopped.
1238 2012-06-24 01:50:10,001 [main] INFO org.smslib.modem.ModemGateway - GTW: modem.com1: Stopping gateway...
1239 2012-06-24 01:50:10,002 [main] INFO org.smslib.modem.SerialModemDriver - GTW: modem.com1: Closing: COM21 @9600
1239 2012-06-24 01:50:10,002 [main] INFO org.smslib.modem.ModemGateway - GTW: modem.com1: Gateway stopped.
1240 2012-06-24 01:50:10,003 [NotifyQueueManager] DEBUG org.smslib.notify.NotifyQueueManager$NotificationQueueManager - NotifyQueueManager end...
1340 2012-06-24 01:50:10,103 [NotifyQueueManager] DEBUG org.smslib.threading.AServiceThread - Running...
1340 2012-06-24 01:50:10,103 [NotifyQueueManager] DEBUG org.smslib.notify.NotifyQueueManager$NotificationQueueManager - NotifyQueueManager running...
1341 2012-06-24 01:50:10,104 [NotifyQueueManager] DEBUG org.smslib.notify.NotifyQueueManager$NotificationQueueManager - NotifyQueueManager end...
1439 2012-06-24 01:50:10,202 [NotifyQueueManager] DEBUG org.smslib.threading.AServiceThread - Stopped.
org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException
at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:102)
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:276)