JDK-8071532 : [TEST_BUG] java/awt/print/PrinterJob/ImagePrinting/NullClipARGB.java fails with PrinterException: No print service found
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2015-01-24
  • Updated: 2015-02-09
  • Resolved: 2015-02-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Relates :  
Description
Test name(s):java/awt/print/PrinterJob/ImagePrinting/NullClipARGB.java 
JDK tested: 8u45b04, 8u45b01,9b46
OS tested:Linux
Is it a regression? No 
Regression introduced in release/build: N/A 
                          
Is it platform specific? No 
                 
The is failure reproduced:Linux

----------System.err:(18/1078)----------
java.lang.RuntimeException: java.awt.print.PrinterException: No print service found.
	at NullClipARGB.main(NullClipARGB.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.awt.print.PrinterException: No print service found.
	at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1351)
	at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1323)
	at NullClipARGB.main(NullClipARGB.java:41)
	... 6 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: java.awt.print.PrinterException: No print service found.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.awt.print.PrinterException: No print service found.

Comments
Closing this issue as machine specific issue as mentioned in mail by Phil Race that test cant be skipped like this as its needed to install printers on system doing client testing rather than changing tests to 'pass'.Either that or enhance jtreg so there is a way to flag that a test was not really run. So this change should not be made.
09-02-2015

I would add "System.out.println("Test is skipped, no print service found on the host.");" to the suggested fix.
27-01-2015

Test introduced in 8u40 b15.
26-01-2015

does it failed on 8u40? 8u20? 8 GA?
26-01-2015