-
Bug
-
Resolution: Fixed
-
P2
-
1.4.1
-
hopper
-
x86, sparc
-
linux_redhat_7.1, solaris_9
-
Verified
=============================================================
JDK version : Hopper b09
Tested OS : Solaris7 Sparc, Solaris8 Sparc, RedHatLinux7.1
locale : ja
=============================================================
When a "NO" button on the dialog which JOptionPane.showInternalxxx creates is clicked (when "option type" is "YES_NO_OPTION"), the exception as below is thrown.
======================================================================
java.lang.NullPointerException: NullPointerException
at sun.awt.motif.X11InputMethod.createXICNative(Native Method)
at sun.awt.motif.X11InputMethod.activate(X11InputMethod.java:265)
at sun.awt.im.InputContext.activateInputMethod(InputContext.java:342)
at sun.awt.im.InputContext.focusGained(InputContext.java:306)
at sun.awt.im.InputContext.dispatchEvent(InputContext.java:218)
at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:180)
at java.awt.Component.dispatchEventImpl(Component.java:3548)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:703)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:406)
at java.awt.Component.dispatchEventImpl(Component.java:3468)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Window.dispatchEventImpl(Window.java:1585)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.SequencedEvent.dispatch(SequencedEvent.java:91)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:446)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
======================================================================
To reproduce,
1. Extract JOptionPaneTest.tar
2. Launch JOptionPaneTest(attached)
> java JOptionPaneTest
3. Select "showInternalConfirmDialog(parent, message, title, option Type)" from dialog type
* YES_NO_OPTION is selected for "option type"
* ERROR_MESSAGE is selected for "message type"
4. Click "create" button.
Then, a confirm dialog as an InternalFrame appears.
5. Click "Yes" button on the dialog.
Then, the message "showInternalConfirmDialog :0" is displayed on a terminal and no error occurs.
6. repeat step 4.
7. Click "No" button on the dialog.
Then, the message "showInternalConfirmDialog :1" is displayed and the exception above is displayed.
* This is reproducible also on C locale.
* Trying the same test with the previous build, b08, the same phenomenon is seen.
* This is not reproducible with b07.
* When "YES_NO_CANCEL" is selected for "option type", the same phenomenon is seen by clicking "CALNEL" button. Clickin "NO" button does not cause the phenomenon.
This phenomenon is reproducible also with other showInternalxxx methods such as showInternalInputDialog or showInternalMessageDialog.
Please try other showInternalxxx methods on JOptionPaneTest as in the same way.
ex. Selecting showInternalMessageDialog(parent, message), a dialog only with "OK" button appears and clicking "OK" button, the same phenomenon is seen.
JDK version : Hopper b09
Tested OS : Solaris7 Sparc, Solaris8 Sparc, RedHatLinux7.1
locale : ja
=============================================================
When a "NO" button on the dialog which JOptionPane.showInternalxxx creates is clicked (when "option type" is "YES_NO_OPTION"), the exception as below is thrown.
======================================================================
java.lang.NullPointerException: NullPointerException
at sun.awt.motif.X11InputMethod.createXICNative(Native Method)
at sun.awt.motif.X11InputMethod.activate(X11InputMethod.java:265)
at sun.awt.im.InputContext.activateInputMethod(InputContext.java:342)
at sun.awt.im.InputContext.focusGained(InputContext.java:306)
at sun.awt.im.InputContext.dispatchEvent(InputContext.java:218)
at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:180)
at java.awt.Component.dispatchEventImpl(Component.java:3548)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:703)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:406)
at java.awt.Component.dispatchEventImpl(Component.java:3468)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Window.dispatchEventImpl(Window.java:1585)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.SequencedEvent.dispatch(SequencedEvent.java:91)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:446)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
======================================================================
To reproduce,
1. Extract JOptionPaneTest.tar
2. Launch JOptionPaneTest(attached)
> java JOptionPaneTest
3. Select "showInternalConfirmDialog(parent, message, title, option Type)" from dialog type
* YES_NO_OPTION is selected for "option type"
* ERROR_MESSAGE is selected for "message type"
4. Click "create" button.
Then, a confirm dialog as an InternalFrame appears.
5. Click "Yes" button on the dialog.
Then, the message "showInternalConfirmDialog :0" is displayed on a terminal and no error occurs.
6. repeat step 4.
7. Click "No" button on the dialog.
Then, the message "showInternalConfirmDialog :1" is displayed and the exception above is displayed.
* This is reproducible also on C locale.
* Trying the same test with the previous build, b08, the same phenomenon is seen.
* This is not reproducible with b07.
* When "YES_NO_CANCEL" is selected for "option type", the same phenomenon is seen by clicking "CALNEL" button. Clickin "NO" button does not cause the phenomenon.
This phenomenon is reproducible also with other showInternalxxx methods such as showInternalInputDialog or showInternalMessageDialog.
Please try other showInternalxxx methods on JOptionPaneTest as in the same way.
ex. Selecting showInternalMessageDialog(parent, message), a dialog only with "OK" button appears and clicking "OK" button, the same phenomenon is seen.
- duplicates
-
JDK-4671503 Regression: Disposing Undeocrated JFrame throws NPE
-
- Closed
-