[434] in java-interest

home help back first fref pref prev next nref lref last post

Re: NetworkServer

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Wed Jun 21 17:16:49 1995

Date: Wed, 21 Jun 1995 13:51:06 -0700
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: gzoller@imonics.com
Cc: java-interest@java.Eng.Sun.COM


Hi GregZ,

> I'm trying to find a reliable way to stop a NetworkServer instance.
> It'd be very nice if this class had a stop() method that would 
> terminate NetworkServer's run() method and free the port. :-)

This is pretty hard to do reliably. The problem is that the stop()
method is not neccessarily guaranteed to kick a thread out of a
system call. We're hoping to fix this in the beta release.

> This all compiled fine.  When I ran it and called NetworkServer's
> new stop() method, I got this message:
> 
> java.lang.IncompatibleClassChangeException net.NetworkServer: method stop()V not found
>         at AppServer.destroy(AppServer.java:141)

This looks like you haven't compiled all your classes properly.
Try recompiling everything from scratch.

Have fun,

	Arthur van Hoff (avh@eng.sun.com)
	http://java.sun.com/people/avh/
	Sun Microsystems Inc, M/S UPAL02-301,
	100 Hamilton Avenue, Palo Alto CA 94301, USA
	Tel: +1 415 473 7242, Fax: +1 415 473 7104
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post