-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b43
-
x86
-
windows_xp
-
Verified
I am running an application which opens up 2 frames and a window. I am opening a dialog on clicking a menu on one of the frames. This dialog is application modal and it blocks all the windows. I am excluding the dialog from Application Modality. On clicking a button on this dialog, I am trying to open a file dialog.
The following exception is thrown on Win32 when I exclude the dialog from app modality and trying to open a file dialog:
java.lang.NullPointerException: null pData
at sun.awt.windows.WWindowPeer.modalDisable(Native Method)
at sun.awt.windows.WWindowPeer.setModalBlocked(WWindowPeer.java:187)
at java.awt.Window.setModalBlocked(Window.java:964)
at java.awt.Dialog.blockWindow(Dialog.java:1408)
at java.awt.Dialog.modalShow(Dialog.java:1289)
at java.awt.Dialog.conditionalShow(Dialog.java:871)
at java.awt.Dialog.show(Dialog.java:940)
at java.awt.Component.show(Component.java:1318)
at java.awt.Component.setVisible(Component.java:1271)
at FileDialogTest.actionPerformed(FileDialogTest.java:67)
at java.awt.Button.processActionEvent(Button.java:388)
at java.awt.Button.processEvent(Button.java:356)
at java.awt.Component.dispatchEventImpl(Component.java:4215)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:592)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:175)
at java.awt.Dialog$1.run(Dialog.java:960)
at java.awt.Dialog.show(Dialog.java:998)
at java.awt.Component.show(Component.java:1318)
at java.awt.Component.setVisible(Component.java:1271)
at FileDialogTest.actionPerformed(FileDialogTest.java:64)
at java.awt.MenuItem.processActionEvent(MenuItem.java:623)
at java.awt.MenuItem.processEvent(MenuItem.java:582)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:595)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:171)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:166)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:119)
This is not reproducible on Solaris10 but on SolSparc10-JDS, the file dialog gets opened below the app modal dialog.
Here is the PIT build:
java version "1.6.0-awt.pit-int-jcg-win-03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-jcg-win-03-java2d_06_may_2005_09_06-b00)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode)
I have attached a sample test. Execute on Win32. You would see 2 frames and a window. Click on the menu shown on one of the frames. A Dialog will be opened. Click the Open button on the dialog. You will get the above exception.
###@###.### 2005-05-17 17:37:27 GMT
The following exception is thrown on Win32 when I exclude the dialog from app modality and trying to open a file dialog:
java.lang.NullPointerException: null pData
at sun.awt.windows.WWindowPeer.modalDisable(Native Method)
at sun.awt.windows.WWindowPeer.setModalBlocked(WWindowPeer.java:187)
at java.awt.Window.setModalBlocked(Window.java:964)
at java.awt.Dialog.blockWindow(Dialog.java:1408)
at java.awt.Dialog.modalShow(Dialog.java:1289)
at java.awt.Dialog.conditionalShow(Dialog.java:871)
at java.awt.Dialog.show(Dialog.java:940)
at java.awt.Component.show(Component.java:1318)
at java.awt.Component.setVisible(Component.java:1271)
at FileDialogTest.actionPerformed(FileDialogTest.java:67)
at java.awt.Button.processActionEvent(Button.java:388)
at java.awt.Button.processEvent(Button.java:356)
at java.awt.Component.dispatchEventImpl(Component.java:4215)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:592)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:175)
at java.awt.Dialog$1.run(Dialog.java:960)
at java.awt.Dialog.show(Dialog.java:998)
at java.awt.Component.show(Component.java:1318)
at java.awt.Component.setVisible(Component.java:1271)
at FileDialogTest.actionPerformed(FileDialogTest.java:64)
at java.awt.MenuItem.processActionEvent(MenuItem.java:623)
at java.awt.MenuItem.processEvent(MenuItem.java:582)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:595)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:171)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:166)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:119)
This is not reproducible on Solaris10 but on SolSparc10-JDS, the file dialog gets opened below the app modal dialog.
Here is the PIT build:
java version "1.6.0-awt.pit-int-jcg-win-03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-jcg-win-03-java2d_06_may_2005_09_06-b00)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode)
I have attached a sample test. Execute on Win32. You would see 2 frames and a window. Click on the menu shown on one of the frames. A Dialog will be opened. Click the Open button on the dialog. You will get the above exception.
###@###.### 2005-05-17 17:37:27 GMT
- relates to
-
JDK-6269251 Font2DTest:${JAVA_HOME}/demo/jfc/Font2DTest throws NullPointerException on all windows platforms
-
- Closed
-