My Oracle Support Banner

PrintServiceLookup.lookupDefaultPrintService() or lookupPrintServices(null,null) on Mac OSX Do Not Return PrintService Correctly Sometimes but Return Null Instead (Doc ID 2250327.1)

Last updated on FEBRUARY 12, 2019

Applies to:

Java SE JDK and JRE - Version 8 to 8
Apple Mac OS X (Intel) (64-bit)

Symptoms

On MacOSX 10.11, PrintServiceLookup.lookupDefaultPrintService() and PrintServiceLookup.lookupPrintServices(null,null) sometimes could return null instead of PrintService even if a printer is set up appropriately as a default printer.

 This issue does Not occur on Windos10 + JDK8.

$ java -showversion PrintServiceChecker |head
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b31)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b31, mixed mode)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.