-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2, 6, 6u1
-
b10
-
x86
-
windows_xp, windows_vista
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2147270 | 6u2 | Dmitry Cherepanov | P2 | Resolved | Fixed | b01 |
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows Vista Ultimate, Version 6.0, Build 6000.
EXTRA RELEVANT SYSTEM CONFIGURATION :
Internet connected system.
A DESCRIPTION OF THE PROBLEM :
After closing a file dialogue opened from an applet, the browser showing the applet GUI stops responding. The same behaviour is shown regardless of whether a file is chosen from the dialogue, the "Cancel" button is pressed or the "Ok" button is pressed.
The problem only occurs when the dialogue window opened LAST is closed FIRST. For instance, assume that the same applet is run in two separate browsers B1 and B2. From B1 file dialogue F1 is opened. Subsequently, file dialogue F2 is opened from B2. Now, if F2 is closed before F1, browser B2 hangs. If, on the other hand, F1 is closed before F2 is closed, neither B1 nor B2 hangs.
Additionally, if the Java Console is open during the time when file dialogues are opened and closed, the problem does not occur.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Start an applet in a browser. The applet must contain functionality which opens a file dialogue.
2) Make sure that the Java Console is not open.
3) Open a file dialogue from the applet.
4) Terminate the file dialogue by either closing it or choosing a file.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
That the browser/applet should regain focus instead of locking up.
ACTUAL -
The browser hangs and is unresponsive. You cant even resize or close the browser window.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
nothing.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Not available.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
If you set focus on an application other than the browser and then select the browser again, it unlocks and you can continue.
If you have the process window active (after pressing ctrl-alt-del and starting it from there ) you wont get the problem
Description of the Problem: After closing a file dialogue opened from an applet, the browser showing the applet GUI stops responding. The same behaviour is shown regardless of whether a file is chosen from the dialogue, the "Cancel" button is pressed or the "Ok" button is pressed.
The problem only occurs when the dialogue window opened LAST is closed FIRST. For instance, assume that the same applet is run in two separate browsers B1 and B2. From B1 file dialogue F1 is opened. Subsequently, file dialogue F2 is opened from B2. Now, if F2 is closed before F1, browser B2 hangs. If, on the other hand, F1 is closed before F2 is closed, neither B1 nor B2 hangs.
Additionally, if the Java Console is open during the time when file dialogues are opened and closed, the problem does not occur.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Start an applet in a browser. The applet must contain functionality which opens a file dialogue.
2) Make sure that the Java Console is not open.
3) Open a file dialogue from the applet.
4) Terminate the file dialogue by either closing it or choosing a file.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
When the browser hangs, make a mouse click outside the browser. This causes the browser to reassume normal execution.
Source code of Test Case:
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Container;
import java.awt.FileDialog;
import java.awt.Frame;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/*
* Created on 11-01-2007
*/
/**
* This is an applet with a button which opens a file dialogue.
* @author Lars Elmegaard-Fessel
*/
public class TestApplet extends Applet implements ActionListener {
/**
* Initialization - set up panel and button.
*/
public void init(){
Panel panel = new Panel();
Button btn = new Button();
btn.setLabel("Open File Dialogue");
btn.addActionListener(this);
panel.add(btn);
add(panel,BorderLayout.CENTER);
}
/* (non-Javadoc)
* @see
java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent arg0) {
//Get the frame
Container c = this;
while (c != null && !(c instanceof Frame))
c = c.getParent();
//Open a dialogue.
FileDialog dialog = new FileDialog((Frame) c,
"Dialog",FileDialog.LOAD);
dialog.show();
}
}
Steps to run the test case:
Start the applet.
Press the "Open File Dialogue" button.
Close the file dialogue window.
Expected behaviour:
The file dialogue window is closed and the browser window containing the
applet regains focus.
Actual behaviour:
The browser hangs. It does not respond to mouse clicks or keyboard events.
Additionally, if the file dialogue window was closed while being in front
of the browser window, some of the file dialogue window remains in the
browser window.
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows Vista Ultimate, Version 6.0, Build 6000.
EXTRA RELEVANT SYSTEM CONFIGURATION :
Internet connected system.
A DESCRIPTION OF THE PROBLEM :
After closing a file dialogue opened from an applet, the browser showing the applet GUI stops responding. The same behaviour is shown regardless of whether a file is chosen from the dialogue, the "Cancel" button is pressed or the "Ok" button is pressed.
The problem only occurs when the dialogue window opened LAST is closed FIRST. For instance, assume that the same applet is run in two separate browsers B1 and B2. From B1 file dialogue F1 is opened. Subsequently, file dialogue F2 is opened from B2. Now, if F2 is closed before F1, browser B2 hangs. If, on the other hand, F1 is closed before F2 is closed, neither B1 nor B2 hangs.
Additionally, if the Java Console is open during the time when file dialogues are opened and closed, the problem does not occur.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Start an applet in a browser. The applet must contain functionality which opens a file dialogue.
2) Make sure that the Java Console is not open.
3) Open a file dialogue from the applet.
4) Terminate the file dialogue by either closing it or choosing a file.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
That the browser/applet should regain focus instead of locking up.
ACTUAL -
The browser hangs and is unresponsive. You cant even resize or close the browser window.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
nothing.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Not available.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
If you set focus on an application other than the browser and then select the browser again, it unlocks and you can continue.
If you have the process window active (after pressing ctrl-alt-del and starting it from there ) you wont get the problem
Description of the Problem: After closing a file dialogue opened from an applet, the browser showing the applet GUI stops responding. The same behaviour is shown regardless of whether a file is chosen from the dialogue, the "Cancel" button is pressed or the "Ok" button is pressed.
The problem only occurs when the dialogue window opened LAST is closed FIRST. For instance, assume that the same applet is run in two separate browsers B1 and B2. From B1 file dialogue F1 is opened. Subsequently, file dialogue F2 is opened from B2. Now, if F2 is closed before F1, browser B2 hangs. If, on the other hand, F1 is closed before F2 is closed, neither B1 nor B2 hangs.
Additionally, if the Java Console is open during the time when file dialogues are opened and closed, the problem does not occur.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Start an applet in a browser. The applet must contain functionality which opens a file dialogue.
2) Make sure that the Java Console is not open.
3) Open a file dialogue from the applet.
4) Terminate the file dialogue by either closing it or choosing a file.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
When the browser hangs, make a mouse click outside the browser. This causes the browser to reassume normal execution.
Source code of Test Case:
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Container;
import java.awt.FileDialog;
import java.awt.Frame;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/*
* Created on 11-01-2007
*/
/**
* This is an applet with a button which opens a file dialogue.
* @author Lars Elmegaard-Fessel
*/
public class TestApplet extends Applet implements ActionListener {
/**
* Initialization - set up panel and button.
*/
public void init(){
Panel panel = new Panel();
Button btn = new Button();
btn.setLabel("Open File Dialogue");
btn.addActionListener(this);
panel.add(btn);
add(panel,BorderLayout.CENTER);
}
/* (non-Javadoc)
* @see
java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent arg0) {
//Get the frame
Container c = this;
while (c != null && !(c instanceof Frame))
c = c.getParent();
//Open a dialogue.
FileDialog dialog = new FileDialog((Frame) c,
"Dialog",FileDialog.LOAD);
dialog.show();
}
}
Steps to run the test case:
Start the applet.
Press the "Open File Dialogue" button.
Close the file dialogue window.
Expected behaviour:
The file dialogue window is closed and the browser window containing the
applet regains focus.
Actual behaviour:
The browser hangs. It does not respond to mouse clicks or keyboard events.
Additionally, if the file dialogue window was closed while being in front
of the browser window, some of the file dialogue window remains in the
browser window.
- backported by
-
JDK-2147270 IE Browser hangs after opening a file dialog
-
- Resolved
-
- relates to
-
JDK-6488786 Vista: Modality is broken on vista 5840 for all native Dialogs.
-
- Closed
-