From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3734 invoked from network); 7 Oct 1998 02:26:41 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 7 Oct 1998 02:26:41 -0000 Received: from xcski.com (d185d1c51.rochester.rr.com [24.93.28.81]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA15146 for ; Tue, 6 Oct 1998 22:22:31 -0400 Received: (from ptomblin@localhost) by xcski.com (8.8.7/8.8.7) id WAA29575; Tue, 6 Oct 1998 22:22:31 -0400 Message-ID: <19981006222230.A29054@xcski.com> Date: Tue, 6 Oct 1998 22:22:30 -0400 From: Paul Tomblin To: axp-list@redhat.com Subject: Incompatibility between Alpha JDK and Intel JDK Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 I have code that works fine on Intel Linux with the Blackdown JDK port, and works fine on NT and Solaris with the "real" JDK, but on Alpha it doesn't work quite right. > java -version java version "gat:05/12/98-02:14" The object in question is a Runnable that the run method loops doing a ServerSocket.accept(), and then spawns up subthreads to do something with the incoming connection. I have an RMI method to allow a client program to shutdown that connection by calling Thread.stop(). But if I try and start it again (which creates a new instance of Thread with this object, and does a Thread.start() on that Thread), I get a "java.net.BindException: Address already in use". This tells me that in spite of the fact that the thread was stopped, the ServerSocket.accept() is still out there tying up the socket. I even tried calling Thread.join() after Thread.stop() to make sure that the thread was really stopped. But no luck. If you need help tracking this down, I could try writing a simple test program, but I'm writing about this in case you know of the problem and have a simple solution. Other than this, the JDK version I'm using is pretty solid and seems very compatible with the other JDKs I'm using. Even does Swing fine (after I realized that the problems I was having with pop-ups was due to how sucky fvwm2 was and switched to Window Maker) -- Paul Tomblin, ptomblin@xcski.com. "and by God I *KNOW* what this network is for, and you can't have it." - Russ Allbery draws a line in the sand for Usenet. (http://www.xnet.com/~raven/Sysadmin/Rant.html)