Listing Print Queue in Java stops after 1 minute after SMB error

SteveP cups.bugs at
Fri Jan 25 05:09:08 PST 2008

I am using the Java printing API call PrintServiceLookup.lookupPrintServices to find out the list of available printers on a Linux system (Redhat)

Using Java 1.5 tt only lists the default printer. (Java 1.4.2 lists all the printers - Sun changed 1.5 to make a http call to cups to get the list of print queues_

However, if I restart CUPS, then I do see the list of printers for 60 seconds UNTIL there is an error accessing a samba printer.

After this point, only the default is shown again.

The error_log shows:
I [25/Jan/2008:13:59:30 +0100] Full reload complete.
I [25/Jan/2008:13:59:30 +0100] Started backend /usr/lib64/cups/backend/smb (PID 21488) for job 3.
I [25/Jan/2008:13:59:30 +0100] Started backend /usr/lib64/cups/backend/smb (PID 21489) for job 4.
E [25/Jan/2008:13:59:30 +0100] [Job 4] Connection failed with error NT_STATUS_LOGON_FAILURE

More information about the cups-devel mailing list