Re: java.net.BindException on Mac OS 10.3.4
From: Mike Baranczak (mbaranczak_at__REMOVE_THIS_users.sourceforge.net)
Date: Tue, 01 Jun 2004 19:40:48 GMT
In article <firstname.lastname@example.org>,
Peter Ammon <email@example.com> wrote:
> Mike Baranczak wrote:
> > I have a strange problem which I only noticed today. I can't open a
> > server socket at all using Java. I always get a BindException, even when
> > I know for a fact that the port is not in use. This only affects Java
> > apps; Apache is working fine, so's CVS, and I can listen on any port I
> > want with netcat.
> > This seems to affect all Java programs, not just the ones I wrote. Those
> > same programs were working fine just a few days ago (I have both JBoss
> > and Jetty installed, but most of the time they're not running.)
> > Could this have anything to do with the latest OS update?
> > -MB
> If a program is messily terminated, I believe Mac OS X will prevent any
> app from listening on the same port for a while, to avoid receiving
> stale data.
Except that this affected ALL the ports I tried. And like I said, it
only affected Java - those same ports worked with netcat.
This problem went away after rebooting, and I haven't been able to
duplicate it. I'll just put this one down as bad network mojo.