JDK-6516881 : Java does not find a printer on a cups system
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2007-01-24
  • Updated: 2011-02-16
  • Resolved: 2007-01-24
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java 1.4xxx  1.5xxx  1.6xx  all version's I tryed.

ADDITIONAL OS VERSION INFORMATION :
Ubuntu  6.10, debian, edgy -   in fact any new version of debian.

EXTRA RELEVANT SYSTEM CONFIGURATION :
Problem exists on java 1.4, 1.5, and 1.6  All can't find the printer..
but work on old version of debian sage, but not any new version's.

A DESCRIPTION OF THE PROBLEM :
Java does not find any printer's on the cups system

It appears that when there is a link from /usr/lib/libcups.so -> /usr/lib/libcups.so.2, the printing dialog can find any printers, all version of
Java I have tried 1.4, 1.5, and 1.6 have this problem.

Not sure what your code is looking for, but I expect it's thinks there is only a old version of cups on the system when it finds libcups.so, and does not look for libcups.so.2 and give's up ?

So system's which print ok, and I have tried are  Debain (3.1)Sage, and Ubuntu (6.06)Dapper,  none have the link,   System which don't work are Debian
4.0(etch), and Ubuntu 6.10(Edgy) which have the link.

Removing the link from /usr/lib/libcups.so -> /usr/lib/libcups.so.2 fix's the problem. On the none working systems. And printing Dialog works as it
should.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
try printering from ubuntu  6.10.. etc.


---------- BEGIN SOURCE ----------
As for the test  code,  any thing which brings up 
the  list of printer's to select from will  show the
problem I expect.
---------- END SOURCE ----------

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
I wish..

Comments
EVALUATION In 1.5 & 1.6, the reason why removing the link works is that we do not use CUPS at all and we use the fallback mechanism of querying printers. The reason why CUPS would not work is documented in 6500903. Although this is not technically a duplicate of that bug, the fix addresses the libcups.so.2 link issues so I would still be marking this as a duplicate.
24-01-2007