Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7470
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Occasional Java Comm PortInUseException |
| Date | 2011-08-29 09:01 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <f08bf8cd-3d72-426d-8cd9-e4e916244f27@glegroupsg2000goo.googlegroups.com> (permalink) |
| References | <52fe615c-e7d5-4c06-ba6c-7d91c84f49b2@t20g2000prf.googlegroups.com> <4ba207f9-126e-44bd-8392-60b9b378e74c@glegroupsg2000goo.googlegroups.com> <799a43e9-bb1c-4a67-b8ce-77f8a5514691@h23g2000pra.googlegroups.com> |
fred wrote: >Lew wrote: >> fred wrote: >>> I am seeing an occasional PortInUseException being thrown by some >>> driver code that uses the Java serial library. When thrown the >>> message displays that the port is in use by an unknown Windows >>> application. The port is definitely not being used by any other >>> application however. The problem occurs on about 1 out of every 3 >>> reboots. Does anyone have any suggestions on how to solve this? >> >> Your assertion that "the port is definitely not being used by any other application" is suspect on the face of it. What makes you so damn certain, especially in the face of that error message? >> >> You also don't quote the error message, which makes it harder to give you advice. >> >> You might have a port in a TIME_WAIT state, or some other hidden problem that looks like the port is in use to your code >> >> Speaking of which, what is your code? >> http://sscce.org/ >> What does netstat tell you at the time of the error? > > Note that it is a serial port I am talking about, not a network port. Well, that's an important point. What about that SSCCE? You have to give enough information for someone to help you. It helps if you spell things out in explicit detail and don't ignore requests for further information, like for an http://sscce.org/ -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
Occasional Java Comm PortInUseException fred <fredbasset1000@gmail.com> - 2011-08-28 12:55 -0700
Re: Occasional Java Comm PortInUseException Lew <lewbloch@gmail.com> - 2011-08-28 13:24 -0700
Re: Occasional Java Comm PortInUseException fred <fredbasset1000@gmail.com> - 2011-08-29 08:27 -0700
Re: Occasional Java Comm PortInUseException Lew <lewbloch@gmail.com> - 2011-08-29 09:01 -0700
csiph-web