i check liao, there is no other mobile bundled applications is
activated. Any way to check the port is being hold by which programs?

On Apr 2, 2:11 pm, Thanasis <[email protected]> wrote:
> If you are running any mobile bundled applications (like outlook /
> contact synchronizers, etc) you should disable those apps, as they
> maybe the ones holding your comm port.
>
> On Apr 2, 6:15 am, seedarren <[email protected]> wrote:
>
> > how to check whether the port is used by which application? How to
> > check whether it got connected using Hyperterminal or not?
>
> > On Apr 2, 12:46 am, "Eko Budy Karuniawan" <[email protected]>
> > wrote:
>
> > > javax.comm.PortInUseException: Port currently owned by Unknown Windows
> > > Application
>
> > > it seems your port is used by other application.
> > > e.g : you are still opened/connected using Hyperterminal, and at the same
> > > time you are running the SendMessage.java program.
>
> > > Regards,
> > > EB
>
> > > -----Original Message-----
> > > From: [email protected] [mailto:[email protected]] On Behalf 
> > > Of
>
> > > seedarren
> > > Sent: Wednesday, April 01, 2009 4:32 PM
> > > To: SMSLib User Group
> > > Subject: [smslib] Re: Urgent - CommTest.java to locate port
>
> > > hi, now i test to run SendMessage.java by connecting my gsm mobile
> > > using usb port. I get the following exception:
>
> > > 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.3.3
> > > org.smslib.TimeoutException: No response from device.
> > >         at
> > > org.smslib.modem.AModemDriver$CharQueue.get(AModemDriver.java:519)
> > >         at 
> > > org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:317)
> > >         at 
> > > org.smslib.modem.athandler.ATHandler.getSimStatus(ATHandler.java:
> > > 130)
> > >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:127)
> > >         at 
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
> > >         at org.smslib.Service$1Starter.run(Service.java:222)
> > > 0 [SMSLib-WatchDog] WARN org.smslib  - WatchDog: Gateway: modem.com7
> > > restarting.
> > > 2078 [SMSLib-WatchDog] ERROR org.smslib  - WatchDog: error while
> > > starting Gateway: modem.com7
> > > org.smslib.GatewayException: Comm library exception:
> > > java.lang.RuntimeException: javax.comm.PortInUseException: Port
> > > currently owned by Unknown Windows Application
> > >         at org.smslib.modem.SerialModemDriver.connectPort
> > > (SerialModemDriver.java:92)
> > >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:110)
> > >         at 
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
> > >         at org.smslib.Service$WatchDog.run(Service.java:1179)
> > > 17109 [SMSLib-WatchDog] WARN org.smslib  - WatchDog: Gateway:
> > > modem.com7 restarting.
> > > 19109 [SMSLib-WatchDog] ERROR org.smslib  - WatchDog: error while
> > > starting Gateway: modem.com7
> > > org.smslib.GatewayException: Comm library exception:
> > > java.lang.RuntimeException: javax.comm.PortInUseException: Port
> > > currently owned by Unknown Windows Application
> > >         at org.smslib.modem.SerialModemDriver.connectPort
> > > (SerialModemDriver.java:92)
> > >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:110)
> > >         at 
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
> > >         at org.smslib.Service$WatchDog.run(Service.java:1179)
> > > 34109 [SMSLib-WatchDog] WARN org.smslib  - WatchDog: Gateway:
> > > modem.com7 restarting.
> > > 36109 [SMSLib-WatchDog] ERROR org.smslib  - WatchDog: error while
> > > starting Gateway: modem.com7
> > > org.smslib.GatewayException: Comm library exception:
> > > java.lang.RuntimeException: javax.comm.PortInUseException: Port
> > > currently owned by Unknown Windows Application
> > >         at org.smslib.modem.SerialModemDriver.connectPort
> > > (SerialModemDriver.java:92)
> > >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:110)
> > >         at 
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
> > >         at org.smslib.Service$WatchDog.run(Service.java:1179)
>
> > > Do you know what is the issue about?
>
> > > On Apr 1, 5:16 pm, seedarren <[email protected]> wrote:
> > > > yaa, can liao, bcoz previously i jz install in JDK dir. after install
> > > > in jre dir, it can detects port.Thanks
>
> > > > On Apr 1, 5:04 pm, Thanasis <[email protected]> wrote:
>
> > > > > 99.99% of these problems rate to the Javacomm installation.
>
> > > > > So, I would assume that a similar issue affects you.
> > > > > Make sure that the 3 javacomm files are in the appropriate directories
> > > > > (both in JDK and JRE).
>
> > > > > On Apr 1, 11:51 am, seedarren <[email protected]> wrote:
>
> > > > > > hi, plz help me regarding this issue, plz... i have tried numerous
> > > > > > time but could not work, plz help... its URGENT
>
> > > > > > On Mar 26, 12:27 pm, seedarren <[email protected]> wrote:
>
> > > > > > > hi, i have make sure all the 3 files in correct place, but still
> > > cant
> > > > > > > detect any port, anyway to troubleshoot?
>
> > > > > > > On Mar 14, 3:44 am, Thanasis <[email protected]> wrote:
>
> > > > > > > > JavaComm is three files, not one. Make sure everything is in
> > > place.
>
> > > > > > > > On Mar 13, 3:21 am, seedarren <[email protected]> wrote:
>
> > > > > > > > > Thanasis, do you have idea?
>
> > > > > > > > > On Mar 12, 10:13 am, seedarren <[email protected]> wrote:
>
> > > > > > > > > > i try to use console to run the following command: and it 
> > > > > > > > > > hit
> > > > > > > > > > exception like this:
>
> > > > > > > > > > E:\Installer\Development
> > > Tools\SMS\SMSLib\smslib-v3.3.3-bin\dist
> > > > > > > > > > \classes>java mi
> > > > > > > > > > sc.CommTest
>
> > > > > > > > > > Searching for devices...
> > > > > > > > > > Exception in thread "main"
> > > java.lang.ExceptionInInitializerError
> > > > > > > > > >         at
> > > misc.CommTest.getCleanPortIdentifiers(CommTest.java:30)
> > > > > > > > > >         at misc.CommTest.main(CommTest.java:36)
> > > > > > > > > > Caused by: java.lang.RuntimeException: CommPortIdentifier
> > > class not
> > > > > > > > > > found
> > > > > > > > > >         at org.smslib.helper.CommPortIdentifier.<clinit>
> > > > > > > > > > (CommPortIdentifier.java
> > > > > > > > > > :77)
> > > > > > > > > >         ... 2 more
>
> > > > > > > > > > Is it means it could not detect my comm.jar put in 
> > > > > > > > > > C:\Program
> > > Files
> > > > > > > > > > \Java\jdk1.6.0_03\jre\lib\ext? How i going to set the
> > > classpath to be
> > > > > > > > > > able to find comm.jar and other relevant files?
>
> > > > > > > > > > On Mar 11, 8:58 pm, Thanasis <[email protected]> wrote:
>
> > > > > > > > > > > I think that the virtual ports are present even if nothing
> > > is attached
> > > > > > > > > > > on the USB port - this is for windows, Linux has different
> > > behaviour.
>
> > > > > > > > > > > On Mar 11, 12:08 pm, seedarren <[email protected]>
> > > wrote:
>
> > > > > > > > > > > > But at least i got plug in mouse in usb ports, so it
> > > should return the
> > > > > > > > > > > > ports as well although mouse is not gsm phone. Is that
> > > true?
>
> > > > > > > > > > > > On Mar 10, 4:20 pm, Thanasis <[email protected]>
> > > wrote:
>
> > > > > > > > > > > > > SMSLib does not directly support USB ports.
> > > > > > > > > > > > > However, USB ports are mapped to virtual comm ports, 
> > > > > > > > > > > > > so
> > > they can be
> > > > > > > > > > > > > used.
>
> > > > > > > > > > > > > Check if you need any special modem drivers for your
> > > phone.
> > > > > > > > > > > > > If you run any sort of phone application (those 
> > > > > > > > > > > > > managing
> > > contacts,
> > > > > > > > > > > > > etc), be sure to disable it first.
>
> > > > > > > > > > > > > On Mar 10, 5:58 am, seedarren <[email protected]>
> > > wrote:
>
> > > > > > > > > > > > > > hi, i have checked that all this 3 related files are
> > > in place. I plug
> > > > > > > > > > > > > > in my gsm phone with computer using usb port and i 
> > > > > > > > > > > > > > run
> > > my program
> > > > > > > > > > > > > > using eclipse. Plz help, is it smslib does not 
> > > > > > > > > > > > > > support
> > > usb?
>
> > > > > > > > > > > > > > On Feb 27, 5:43 pm, Thanasis <[email protected]>
> > > wrote:
>
> > > > > > > > > > > > > > > Since the commtest finds nothing (no ports, etc), 
> > > > > > > > > > > > > > > It
> > > *seems* to be a
> > > > > > > > > > > > > > > JavaComm installation problem. Check that all 
> > > > > > > > > > > > > > > three
> > > (3) javacomm
> > > > > > > > > > > > > > > related files are in place.
>
> > > > > > > > > > > > > > > On Feb 27, 10:53 am, seedarren
> > > <[email protected]> wrote:
>
> > > > > > > > > > > > > > > > Hi,
>
> > > > > > > > > > > > > > > >        I got a problem and i do not know why. I
> > > have connect my
> > > > > > > > > > > > > > > > Samsung SGH X700 phone to PC using usb cable.  I
> > > am using Window.
> > > > > > > > > > > > > > > > Through device manager, i found out that the
> > > samsung modem is detected
> > > > > > > > > > > > > > > > as PORT7. I try to run CommTest, but it does not
> > > return me any port
> > > > > > > > > > > > > > > > info.
> > > > > > > > > > > > > > > > Output of the program:
> > > > > > > > > > > > > > > > Searching for devices...
>
> > > > > > > > > > > > > > > > Test complete.
>
> > > > > > > > > > > > > > > > May i know why? Is it my phone not supported? Or
> > > is it my installation
> > > > > > > > > > > > > > > > problem? Plz help! It is urgent! Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to