JDK-8058205 : strange results of lookupPrintService for ipps device
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-09-11
  • Updated: 2016-03-07
  • Resolved: 2016-03-07
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
Duplicate :  
Description
I have a machine (incidentally with Ubuntu Linux) reporting 2 devices by lpstat -v:
device for XEROX-WorkCentre-4250-_xxxx: ipps://stt-mac-13.local:631/printers/XEROX_WorkCentre_4250__xxxx_
device for Xerox_by_3031: socket://xx.xx.xx.xx:9100

Now, if I'm calling 
PrintServiceLookup.lookupPrintServices(DocFlavor.SERVICE_FORMATTED.PAGEABLE, null)
I'm getting only one service (with the second printer). Apparently ipps: protocol is not supported in details so there's no attributes available.

What is more interesting, if I call
PrintServiceLookup.lookupPrintServices(null,null)
there are 3 services reported, not 2: an extra one for that ipps printer.

This is behavior of both jdk8 and 9: I cannot compile my test with 7 but expect perhaps the same after its adaptation.
Comments
My only guess here is that the ipps one is not responding in some way so that we cannot say it will support us sending a document to it even though its installed, so only (null,null) reports it. As to why we have 3 printers when lpstat -v reports two, somehow the name is truncated so it thinks its a different printer. How that happens I have no idea and would need to examine the actual system ..
17-09-2014