I've run into a strange issue where printers manufactured by Brother (one in particular is the Brother HL-2140 printer) do not appear in the PrintService array returned in the following code:
PrintService[] printers = PrintServiceLookup.lookupPrintServices(DocFlavor.BYTE_ARRAY.AUTOSENSE, new HashPrintRequestAttributeSet());
So far, this is the only type of printer that will not work. I have tried manually printing from other programs, such as Adobe Acrobat Reader, and this works fine with the Brother printers. For some reason, java's PrintServiceLookup just cannot find the Brother printers, which in my case causes lookupPrintServices() to return null. Any suggestions as to what I can do to fix this problem? Unfortunately, I do not have direct access to the client site with the Brother printers, nor do I have a Brother printer set up in the office, so this is rather hard to duplicate on my own.