[2857] in java-interest
timed read
daemon@ATHENA.MIT.EDU (Anselm.BairdSmith)
Wed Oct 18 10:03:33 1995
Date: Wed, 18 Oct 1995 12:44:13 +0100
From: "Anselm.BairdSmith" <Anselm.Baird_Smith@inria.fr>
To: java-interest@java.sun.com
Hi,
Still looking for having a read() block only for a given duration,
however I have switched to beta now (using the latest patched
version).
Thread-1 is blocked in a read(), I am trying to interrupt() it:
class Foo {
Thread thread ;
// blah
public void handleTimer () {
thread.interrupt() ;
// etc
}
}
This compiles fine, but at runtime I get the following exception:
-----
java.lang.NoSuchMethodError
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Error.<init>(Error.java)
at java.lang.LinkageError.<init>(LinkageError.java)
at java.lang.IncompatibleClassChangeError.<init>(IncompatibleClassChangeError.java)
at java.lang.NoSuchMethodError.<init>(NoSuchMethodError.java)
at java.lang.Thread.interrupt(Thread.java)
at httpd.Client.handleTimerEvent(Client.java:107)
at timers.EventManager.run(EventManager.java:214)
-----
Any clue about what's happening ?
Thanks,
Anselm.
Anselm.BairdSmith@inria.fr - http://www.inria.fr/koala/abaird.html
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com