Why PrinterState always returns null?
问题 I'm not to be able to get the PrinterState of my Printers. I have tested the following code on Linux and on Windows (7) with different Printers (Samsung, Brother (only on Linux), Zebra, ...). But in every case the PrinterState and the PrinterStateReasons objects are null. private void dumpPrinterState() { PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null); //get printers for (PrintService printService : printServices) { log.info("---- printer: " + printService);