Description of problem: Since upgrading cups to 1.2.2 on Fedora Core 5 the printers don't accepting jobs from Java. In Fedora Core 6 and Cups 1.2.4-9 it's still the same. The command "lpoptions" don't show any printers Version-Release number of selected component (if applicable): 1.2.4-9 How reproducible: Steps to Reproduce: 1. If the language in /etc/sysconfig/i18n is de_DE it doesn't prints. 2. If the language in /etc/sysconfig/i18n is en_EN it prints!! 3. The command lpoptions don't show any printers Actual results: Expected results: Additional info:
I need some more information: 1. 'lpoptions' isn't for listing printers -- try 'lpstat -s'. What does it say? 2. How exactly are you printing? Are you running the java program from the command line? 3. Does printing from other applications work? Does a test page work?
1. It shows the printer, but the lpoptions command normaly shows the printers too and additional the status (printer is accepting jobs). Can it be that javaprinting uses this command for getting available printers?! On the other side it is strange that the printer prints from java applications if the language settings in i18n is english.... 2. The javaprogramm runs with JavaWebStart and there were no printing-problems until cups 1.2.2 3. Yes, printing from all other applications works and the test page works too.
Which implementation of Java are you using? You can find out precisely what it's up to by running this: strace -p 400 if 400 is the PID of the process. I'd like to see the strace output from when it tries to print.
I've tested several versions: Sun JRE 1.5.0_02 and now also the newest Version Sun JRE 1.5.0_09 The strace -p shows only: futex(0xa5839d3c, FUTEX_WAIT, 1, NULL and when i start printing nothing happens in strace-output.
How about if you run 'tail -f /var/log/cups/error_log' as root while getting the application to print?
I [06/Nov/2006:12:18:32 +0100] cupsdAcceptClient: skipping getpeercon() I [06/Nov/2006:12:18:32 +0100] cupsdAcceptClient: skipping getpeercon() I [06/Nov/2006:12:18:32 +0100] cupsdAcceptClient: skipping getpeercon() I [06/Nov/2006:12:18:33 +0100] cupsdAcceptClient: skipping getpeercon() I [06/Nov/2006:12:18:34 +0100] cupsdAcceptClient: skipping getpeercon()
Please edit /etc/cups/cupsd.conf and change the 'LogLevel' line to read: LogLevel debug2 Then restart CUPS: /sbin/service cups stop >/var/log/cups/error_log /sbin/service cups start Print your job and then please attach the /var/log/cups/error_log file here. Thanks.
Created attachment 140474 [details] Cups error log
See attachment for further information
It never submits the job for printing. We just get: D [06/Nov/2006:14:54:59 +0100] CUPS-Get-Printers D [06/Nov/2006:14:54:59 +0100] Get-Jobs ipp://localhost:631/printers/Brother D [06/Nov/2006:14:54:59 +0100] CUPS-Get-Printers D [06/Nov/2006:14:54:59 +0100] Get-Jobs ipp://localhost:631/printers/Brother D [06/Nov/2006:14:54:59 +0100] CUPS-Get-Printers D [06/Nov/2006:14:54:59 +0100] Get-Jobs ipp://localhost:631/printers/Brother D [06/Nov/2006:14:54:59 +0100] CUPS-Get-Printers D [06/Nov/2006:14:54:59 +0100] Get-Jobs ipp://localhost:631/printers/Brother D [06/Nov/2006:14:55:00 +0100] CUPS-Get-Printers D [06/Nov/2006:14:55:00 +0100] Get-Jobs ipp://localhost:631/printers/Brother Additionally, I *have* been able to get print output from a Java web applet running under Sun's jre1.5.0_09 package. The 'lpoptions' is not for listing printers, and never has been. It shows default printer options, and is working correctly here.
Did you set the language in i18n to German (de_DE)? In english i can print too. I've "googled" for this problem and found: In german: http://www.fedorablog.de/archives/104-Java-druckt-nicht-mehr-auf-Fedora.html And another discussion at sun. The bugreport starts with an other problem but at the middle and the bottom they tell the same problems. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181488
Then the solution is for Sun to fix their Java implementation. Not a Fedora bug. For what it's worth, the behaviour seems to be as if they are parsing the output of 'lpstat', but forgot to set LC_MESSAGES in the environment and don't understand the translated text ('System Standardziel' instead of 'system default destination' etc).
And why it works with cups 1.2.1 ?
The German translation wasn't introduced until 1.2.2.