Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7469
| From | fred <fredbasset1000@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Occasional Java Comm PortInUseException |
| Date | 2011-08-29 08:27 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <799a43e9-bb1c-4a67-b8ce-77f8a5514691@h23g2000pra.googlegroups.com> (permalink) |
| References | <52fe615c-e7d5-4c06-ba6c-7d91c84f49b2@t20g2000prf.googlegroups.com> <4ba207f9-126e-44bd-8392-60b9b378e74c@glegroupsg2000goo.googlegroups.com> |
On Aug 28, 1:24 pm, Lew <lewbl...@gmail.com> wrote: > On Sunday, August 28, 2011 12:55:18 PM UTC-7, fred wrote: > > Hi All, > > > 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? > > -- > Lew Note that it is a serial port I am talking about, not a network port.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next 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