🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12004

Re: java.lang.IllegalMonitorStateException

#12004
From: Robert R. Rowntree
Date: Sat, 06 Mar 1999 00:00
47 lines
2278 bytes
You probably know this but the exception occurs when code trys to use
classes or objects that require syncronization.

Regards, R.Rowntree rrowntree@toronix.com
Shannon Brown wrote in message <36DDC3EC.78EA26D5@ptdprolog.net>...
>JBuilder 2.01 (non- JFC 1.1 beta version)
>Java Application (not a Applet)
>Platform Windows NT 4.0 SP 4
>Running stanbdlone -- not from within JBuilder
>JDK 1.1.7
>Using Swing 1.0
>
>java.lang.IllegalMonitorStateException
>
>The above error is thrown when I try to do the following:
>I have a normal frame that has a form on it.  When the user presses
>submit, and a field is missing, I want an error dialogue to appear.  I
>can get everything to work but the following.  When the user presses the
>OK button on the dialogue window, the
>java.lang.IllegalMonitorStateException is thrown.  Note this now only
>occurs the very first time the  error box appears.  I placed code in try
>catch blocks, etc.  and the problem does not interfere with operations.
>I do wonder why this is ahppening and what can i do to prevent it from
>occurring?
>
>(I researched the Internet and found a few  old postings (1996)
>remotely related to java.lang.IllegalMonitorStateException but no
>explainations.  The API is also vague.)
>
>Thanks in advance.
>Shannon
>
>
>--
>|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
>
>Shannon Brown, President <<< shannonbrown@rubicongulch.com >>>
>     Rubicon Gulch Software LLC
>     38 Doe Run Road Suite 260
>     Manheim PA 17545
>     http://www.rubicongulch.com
>|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
>
>
>
Technical Details
Message-ID: <7brv9v$a5m8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36DDC3EC.78EA26D5@ptdprolog.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3bfd3bcd3c69cb
X-Google-Attributes: gid111d45,public
From: "Robert R. Rowntree" <rrowntree@toronix.com>
Subject: Re: java.lang.IllegalMonitorStateException
Date: 1999/03/06
Message-ID: <7brv9v$a5m8@forums.borland.com>
X-Deja-AN: 451986712
References: <36DDC3EC.78EA26D5@ptdprolog.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing