JDK-6971973 : Print Service Lookup does not find lpd printers.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u15
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux_redhat_4.0
  • CPU: x86
  • Submitted: 2010-07-25
  • Updated: 2011-10-26
  • Resolved: 2011-10-25
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 6
6-poolResolved
Related Reports
Relates :  
Description
Customer has both ipp and lpd type printers enabled on his system. (See lpstat output in attached java_print_issue.zip file.)  When customer runs Java GUI app (like Netbeans), the Java print service only finds the ipp printers plus the default printer (if default printer is lpd, it finds it, but all other lpd printers are not found).

When customer prints from other GUI applications, such as Gedit and open office, the Printer Selection drop-down menus list all enabled printers, both ipp and all lpd.  See screen shots in attached java_print_issue.zip file.  However, you can see the Netbeans screen shots show only the ipp printers plus the default lpd printer.

The attached Java test case, TestCase_src.zip also produces the same results outside of Netbeans, using only the Java classes.  See the attached TestCaseSnapshot.jpg showing the same problem occurs from the test case run.

Comments
EVALUATION We did not get response from customer. This problem most likely caused by incorrect CUP configuration. Closed
25-10-2011

EVALUATION By using CUPS service on lpd printer, with this case (on customer's environment) we could not get Attributes since getOutputSteam from URI throw ConnectException. We can use UnixPrintService instead of IPPPrintService to get print names.
02-12-2010