🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14826

Re: Console window under NT crashes, what can it be?

#14826
From: Gabriel Lima
Date: Wed, 28 Jul 1999 00:00
69 lines
2899 bytes
> Gabriel:
>
> Well, the trace is a monitor dump (you can get them from consoles via
> Shift+F1 if memory serves) telling you that there was a deadlock.  What
> you are supposed to do is try to figure out what two items were locked
> (unless it's the type where every thread is simply saying "you go
> first") and relate it to your code.
>
> Since I have to guess, I'd start with making sure that nothing from your
> JDK 1.1 world can be seen (no JFC 1.03 libraries, etc.) on the classpath
> for your 1.2 app.
>
> -Rich

Hi (and thanks to Rich for the tip).

I have however discovered that the problem is not JBuilder related,
but JDK related. I created a small application (a JFrame with two
buttons, one of wchich closes the application), and the monitor
dump occurs both when I run the app in JBuilder and with
the Sun jdk 1.2.2.

I have executed the program on two different machines (both with
NT4), and the problem shows up on both machines.
I had however previously jdk 1.1 on both machines, but I uninstalled it
before upgrading to jdk 1.2, and I have even checked the
registry, and Jdk 1.1 is nowhere to be seen.

I have pasted the source code for my app below.
Thanks to all in advance, take care.

Gabriel

****************************************
(Test.java)
****************************************
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class Test {
  public static void main(String[] args) {
    Test test = new Test();
    test.run();
  }

  void run() {
    JFrame frame = new JFrame();
    frame.getContentPane().setLayout(new BorderLayout());
    JButton b1 = new JButton("Button 1");
    ActionListener a = new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println("Button 1");
      }
    };
    b1.addActionListener (a);

    JButton b2 = new JButton ("Button 2");
    b2.addActionListener (new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.exit(0);
      }
    });
  frame.getContentPane().add("East", b1);
  frame.getContentPane().add("West", b2);
  frame.setSize(300,200);
  frame.setVisible(true);
  }
****************************************
Technical Details
Message-ID: <379FB59D.2F965BE5@enea.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <379F9F6A.4900C619@enea.se> <379F2205.1C7D1E9@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c55d5a64addeb59f
X-Google-Attributes: gidf74b3,public
From: Gabriel Lima <Gabriel.Lima@enea.se>
Subject: Re: Console window under NT crashes, what can it be?
Date: 1999/07/28
Message-ID: <379FB59D.2F965BE5@enea.se>
X-Deja-AN: 506249926
Content-Transfer-Encoding: 7bit
References: <379F9F6A.4900C619@enea.se> <379F2205.1C7D1E9@inprise.com>
To: Rich Wilkman <rwilkman@inprise.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language