-
Bug
-
Resolution: Fixed
-
P3
-
9
FULL PRODUCT VERSION :
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) Server VM (build 9+181, mixed mode, emulated-client)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.14393]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Printer driver: Brother HL-2240D series
A DESCRIPTION OF THE PROBLEM :
Printing to my network printer "Brother HL-2240D series" failed with a NPE. I use the PrinterJob API. See the stacktrace below. To other printers like CutePDF it is working.
The passed attributeset contains the follow values:
{class javax.print.attribute.standard.MediaPrintableArea=(12.7,12.7)->(184.626,271.621)mm, class javax.print.attribute.standard.Media=iso-a4, class javax.print.attribute.standard.PageRanges=1, class javax.print.attribute.standard.OrientationRequested=portrait, class javax.print.attribute.standard.JobName=Report1, class javax.print.attribute.standard.Chromaticity=monochrome}
REGRESSION. Last worked in version 8u152
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.NullPointerException
at java.desktop/sun.print.RasterPrinterJob.setAttributes(RasterPrinterJob.java:1240)
at java.desktop/sun.awt.windows.WPrinterJob.setAttributes(WPrinterJob.java:696)
at java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1510)
at com.inet.viewer.PrinterJobProgress.run(PrinterJobProgress.java:134)
at java.base/java.lang.Thread.run(Thread.java:844)
REPRODUCIBILITY :
This bug can be reproduced always.
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) Server VM (build 9+181, mixed mode, emulated-client)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.14393]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Printer driver: Brother HL-2240D series
A DESCRIPTION OF THE PROBLEM :
Printing to my network printer "Brother HL-2240D series" failed with a NPE. I use the PrinterJob API. See the stacktrace below. To other printers like CutePDF it is working.
The passed attributeset contains the follow values:
{class javax.print.attribute.standard.MediaPrintableArea=(12.7,12.7)->(184.626,271.621)mm, class javax.print.attribute.standard.Media=iso-a4, class javax.print.attribute.standard.PageRanges=1, class javax.print.attribute.standard.OrientationRequested=portrait, class javax.print.attribute.standard.JobName=Report1, class javax.print.attribute.standard.Chromaticity=monochrome}
REGRESSION. Last worked in version 8u152
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.NullPointerException
at java.desktop/sun.print.RasterPrinterJob.setAttributes(RasterPrinterJob.java:1240)
at java.desktop/sun.awt.windows.WPrinterJob.setAttributes(WPrinterJob.java:696)
at java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1510)
at com.inet.viewer.PrinterJobProgress.run(PrinterJobProgress.java:134)
at java.base/java.lang.Thread.run(Thread.java:844)
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-8193355 Getting NullPointerException in RasterPrinterJob class while accessing the print () of Printable interface
- Closed
- relates to
-
JDK-8048328 CUPS Printing does not report supported printer resolutions.
- Resolved
-
JDK-8221411 NullPointerException in RasterPrinterJob without PrinterResolution
- Resolved