-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b38
-
x86
-
windows, windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2156783 | 5.0-pool | Sean Coffey | P2 | Closed | Cannot Reproduce |
Bug Info:
=========
Font2DTest:${JAVA_HOME}/demo/jfc/Font2DTest throws NullPointerException while selecting Page Setup option in File menu.
JDK Info:
=========
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b35)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode, sharing)
Steps to Reproduce:
===================
1. Open Font2DTest(JAVA_HOME/demo/jfc/Font2DTest) demo application.
${JAVA_HOME}/bin/java -jar ${JAVA_HOME$}/demo/jfc/Font2DTest/Font2DTest.jar
2. Click on File Menu and then choose Page Setup option.
Expected Result:
================
Page Setup window should open.
Actual Result:
==============
Page Setup window has been opened but it throws NullPointerException in the console.
Error Log:
==========
Exception occurred during event dispatching:
java.lang.NullPointerException: null pData
at sun.awt.windows.WComponentPeer.nativeHandleEvent(Native Method)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:273)
at java.awt.Component.dispatchEventImpl(Component.java:4291)
at java.awt.Container.dispatchEventImpl(Container.java:2025)
at java.awt.Window.dispatchEventImpl(Window.java:1809)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:591)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:247)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:168)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:158)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:538)
at java.awt.Component.show(Component.java:1318)
at java.awt.Component.setVisible(Component.java:1271)
at sun.awt.windows.WPrinterJob.pageDialog(WPrinterJob.java:389)
at FontPanel.doPageSetup(FontPanel.java:327)
at Font2DTest.actionPerformed(Font2DTest.java:839)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
63)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2183)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
135)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1176)
at java.awt.Component.processMouseEvent(Component.java:5776)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3198)
at java.awt.Component.processEvent(Component.java:5541)
at java.awt.Container.processEvent(Container.java:1967)
at java.awt.Component.dispatchEventImpl(Component.java:4215)
at java.awt.Container.dispatchEventImpl(Container.java:2025)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4219
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3893)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3823)
at java.awt.Container.dispatchEventImpl(Container.java:2011)
at java.awt.Window.dispatchEventImpl(Window.java:1809)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:591)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:247)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:154)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:115)
###@###.### 2005-05-12 08:11:58 GMT
This is a regression introduced in Mustang-b35. Not reproducible on b34. Looks like only AWT has integrated some fixes in b35 and not 2D. This is reproducible with a small test given below:
----------------
import java.awt.print.*;
public class FrameDisposeTest {
public static void main(String args[]) {
PrinterJob pj = PrinterJob.getPrinterJob();
pj.pageDialog(pj.defaultPage());
pj.printDialog();
}
}
----------------
Not reproducible with cross platform print / page dialogs
replace
pj.pageDialog() with
pj.pageDialog(new javax.print.attribute.HashPrintRequestAttributeSet());
Native print / page dialogs not usable.
This is reproducible with FileDialogs also. Moving to classes_awt.
###@###.### 2005-05-12 09:44:37 GMT
###@###.### 2005-05-12 14:24:39 GMT
=========
Font2DTest:${JAVA_HOME}/demo/jfc/Font2DTest throws NullPointerException while selecting Page Setup option in File menu.
JDK Info:
=========
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b35)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode, sharing)
Steps to Reproduce:
===================
1. Open Font2DTest(JAVA_HOME/demo/jfc/Font2DTest) demo application.
${JAVA_HOME}/bin/java -jar ${JAVA_HOME$}/demo/jfc/Font2DTest/Font2DTest.jar
2. Click on File Menu and then choose Page Setup option.
Expected Result:
================
Page Setup window should open.
Actual Result:
==============
Page Setup window has been opened but it throws NullPointerException in the console.
Error Log:
==========
Exception occurred during event dispatching:
java.lang.NullPointerException: null pData
at sun.awt.windows.WComponentPeer.nativeHandleEvent(Native Method)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:273)
at java.awt.Component.dispatchEventImpl(Component.java:4291)
at java.awt.Container.dispatchEventImpl(Container.java:2025)
at java.awt.Window.dispatchEventImpl(Window.java:1809)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:591)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:247)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:168)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:158)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:538)
at java.awt.Component.show(Component.java:1318)
at java.awt.Component.setVisible(Component.java:1271)
at sun.awt.windows.WPrinterJob.pageDialog(WPrinterJob.java:389)
at FontPanel.doPageSetup(FontPanel.java:327)
at Font2DTest.actionPerformed(Font2DTest.java:839)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
63)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2183)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
135)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1176)
at java.awt.Component.processMouseEvent(Component.java:5776)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3198)
at java.awt.Component.processEvent(Component.java:5541)
at java.awt.Container.processEvent(Container.java:1967)
at java.awt.Component.dispatchEventImpl(Component.java:4215)
at java.awt.Container.dispatchEventImpl(Container.java:2025)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4219
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3893)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3823)
at java.awt.Container.dispatchEventImpl(Container.java:2011)
at java.awt.Window.dispatchEventImpl(Window.java:1809)
at java.awt.Component.dispatchEvent(Component.java:4049)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:591)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:247)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:154)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:115)
###@###.### 2005-05-12 08:11:58 GMT
This is a regression introduced in Mustang-b35. Not reproducible on b34. Looks like only AWT has integrated some fixes in b35 and not 2D. This is reproducible with a small test given below:
----------------
import java.awt.print.*;
public class FrameDisposeTest {
public static void main(String args[]) {
PrinterJob pj = PrinterJob.getPrinterJob();
pj.pageDialog(pj.defaultPage());
pj.printDialog();
}
}
----------------
Not reproducible with cross platform print / page dialogs
replace
pj.pageDialog() with
pj.pageDialog(new javax.print.attribute.HashPrintRequestAttributeSet());
Native print / page dialogs not usable.
This is reproducible with FileDialogs also. Moving to classes_awt.
###@###.### 2005-05-12 09:44:37 GMT
###@###.### 2005-05-12 14:24:39 GMT
- backported by
-
JDK-2156783 Font2DTest:${JAVA_HOME}/demo/jfc/Font2DTest throws NullPointerException on all windows platforms
-
- Closed
-
- duplicates
-
JDK-6275134 PIT: NullPointerException thrown during print action in jaws application
-
- Closed
-
- relates to
-
JDK-6271829 PIT: NullPointerException thrown when excluding a dialog from app modal and opening a FileDlg, Win32
-
- Closed
-
-
JDK-6253926 REG:Java logo changes to Printer logo when installing a new printer through java, WinXP
-
- Closed
-