IllegalMonitorStateException

Pascal Bourguignon kaffe@rufus.w3.org
Sun, 26 Jul 98 02:40:08 +0200


--NeXT-Mail-853664380-5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hello!

I'm a little new to Java, so excuse me if this is a silly question:
I get this IllegalMonitorStateException with a stack showing only objects =
from the java packages. Wouldn't that mean that there's a bug in Sun's code =
(whose source is not generaly available)?=20
[I don't have the source for this boost tool, either :-(]
However, if it's a problem relating to kaffe, what could I do about it?

__Pascal Bourguignon__

[pascal@triton]$ ./boost
java.lang.IllegalMonitorStateException
        at java/awt/MediaTrackerEntry.imageUpdate(286)
        at java/awt/Image.stateChange(527)
        at java/awt/Image.createFromFile(382)
        at java/awt/Image.createFromURL(405)
        at java/awt/Image$Initializer.startProduction(261)
        at java/awt/Image$Initializer.run(191)
        at java/lang/Thread.run(122)
[pascal@triton]$ kaffe -version
Kaffe Virtual Machine
Copyright (c) 1996, 1997, 1998
Transvirtual Technologies, Inc.  All rights reserved
Engine: Just-in-time   Version: 1.00   Java Version: 1.1
[pascal@triton]$ rpm -q kaffe
kaffe-1.0.b1-1


public class IllegalMonitorStateException
extends _RuntimeException_

Thrown to indicate that a thread has attempted to wait on an object's =
monitor or to notify other threads waiting on an object's monitor without =
owning the specified monitor.

Since:
JDK1.0
See Also:
_notify_, _notifyAll_, _wait_, _wait_, _wait_

--NeXT-Mail-853664380-5
Content-Type: text/enriched; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hello!


I'm a little new to Java, so excuse me if this is a silly question:

I get this IllegalMonitorStateException with a stack showing only objects =
from the java packages. Wouldn't that mean that there's a bug in Sun's code =
(whose source is not generaly available)?=20

[I don't have the source for this boost tool, either :-(]

However, if it's a problem relating to kaffe, what could I do about it?


__Pascal Bourguignon__


[pascal@triton]$ ./boost

java.lang.IllegalMonitorStateException

        at java/awt/MediaTrackerEntry.imageUpdate(286)

        at java/awt/Image.stateChange(527)

        at java/awt/Image.createFromFile(382)

        at java/awt/Image.createFromURL(405)

        at java/awt/Image$Initializer.startProduction(261)

        at java/awt/Image$Initializer.run(191)

        at java/lang/Thread.run(122)

[pascal@triton]$ kaffe -version

Kaffe Virtual Machine

Copyright (c) 1996, 1997, 1998

Transvirtual Technologies, Inc.  All rights reserved

Engine: Just-in-time   Version: 1.00   Java Version: 1.1

[pascal@triton]$ rpm -q kaffe

kaffe-1.0.b1-1



<bigger>public class
<bold> IllegalMonitorStateException

</bold>extends
=20
<underline>_
</underline>RuntimeException_


</bigger><smaller>
</smaller><bigger>Thrown to indicate that a thread has attempted to wait on =
an object's monitor or to notify other threads waiting on an object's =
monitor without owning the specified monitor.

<bold>

</bold></bigger><smaller>
<bold></bold></smaller><bigger><bold>Since:

</bold>JDK1.0

<bold>See Also:

</bold><underline>_notify_
</underline>,
=20
<underline>_
</underline>notifyAll_
,
=20
<underline>_
</underline>wait_
,
=20
<underline>_
</underline>wait_
,
=20
<underline>_
</underline>wait_

<center>
</center></bigger>

--NeXT-Mail-853664380-5--