[Bug 213362] New: Printing From Java Applications Fails With "No print service found."
https://bugzilla.novell.com/show_bug.cgi?id=213362 Summary: Printing From Java Applications Fails With "No print service found." Product: openSUSE 10.2 Version: Alpha 5 plus Platform: x86 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: dbornkessel@novell.com ReportedBy: rschulz@sonic.net QAContact: qa@suse.de I am unable to print from Java applications. Both jEdit 4.3pre7 (a programmer's editor -- http://jedit.org/) and <oXygen/> 7.2 (an XML editor -- http://www.oxygenxml.com/) report "No print service found." when printing is attempted (this is true for both the "Page Setup" and "Print" commands). (Eclipse does not enable its Print command. It's unknown whether this is related.) The symptom appears to be 100% reproducible. There is no perceptible delay in receiving this response. I have configured a remote CUPS printer and can successfully print to that printer from other applications. To reproduce: Launch a Java application that supports printing. Issue its "Page Setup" command (if any) or its "Print" command. The "No print service found." alert should appear immediately. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsmeix@novell.com ------- Comment #1 from jsmeix@novell.com 2006-10-19 00:03 MST ------- There is a predecessor bug #197490 for Suse Linux 10.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 rschulz@sonic.net changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major ------- Comment #2 from rschulz@sonic.net 2006-11-27 09:29 MST ------- This problem persists through the RC1 release of openSUSE 10.2. Is anybody looking into this at all? Printing from Java applications is important. RRS -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362
------- Comment #3 from jsmeix@novell.com 2006-12-04 04:36 MST -------
For the log:
--------------------------------------------------------------------------
Date: Sun, 03 Dec 2006 15:43:45 +0100
From: ...
To:
https://bugzilla.novell.com/show_bug.cgi?id=213362 ------- Comment #4 from jsmeix@novell.com 2006-12-04 04:39 MST ------- Only for information (I don't know if it has anything to do with this bug): http://www.cups.org/str.php?L2076 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362
------- Comment #5 from jsmeix@novell.com 2006-12-07 04:28 MST -------
Only for information:
----------------------------------------------------------------------------
Date: Thu, 07 Dec 2006 09:49:17 +0100
From: ...
To: Mirror of cups.general Newsgroup
https://bugzilla.novell.com/show_bug.cgi?id=213362
------- Comment #6 from jsmeix@novell.com 2006-12-07 05:29 MST -------
Here is the actual reason and a workaround
(mail from the CUPS main author):
-----------------------------------------------------------------------------
Date: Thu, 07 Dec 2006 07:11:04 -0500
From: Michael Sweet
https://bugzilla.novell.com/show_bug.cgi?id=213362 ------- Comment #7 from jsmeix@novell.com 2006-12-07 07:28 MST ------- The workaround in comment #6 affects any CUPS client software. Another possible workaround which can be limited only for Java applications is to set/export the environment variable "CUPS_SERVER=localhost" before a Java application is started. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 ------- Comment #8 from rschulz@sonic.net 2006-12-07 09:12 MST ------- Hallelujah! The /etc/cups/client.conf "ServerName localhost" work-around fixes the same symptom on my 10.0 installation, too! Woo-Hoo! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 dbornkessel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #9 from dbornkessel@novell.com 2006-12-08 08:08 MST ------- ok ... assigning this bug to me, but I can only wait for the Java folks if I understand correctly? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362
------- Comment #10 from jsmeix@novell.com 2006-12-11 03:15 MST -------
Yes, we can only wait until it is fixed in Java.
And as a workaround our users should see comment #6 and comment #7.
By the way:
The workaround according to comment #6 works also for the user
who had described the problem on the CUPS mailing list:
-------------------------------------------------------------------------
Date: Fri, 08 Dec 2006 09:18:50 +0100
From: ...
To: Mirror of cups.general Newsgroup
https://bugzilla.novell.com/show_bug.cgi?id=213362 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |harlanm@davistl.com ------- Comment #11 from jsmeix@novell.com 2007-01-25 01:38 MST ------- *** Bug 238535 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 jamesrome@alum.mit.edu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamesrome@alum.mit.edu ------- Comment #12 from jamesrome@alum.mit.edu 2007-02-18 12:04 MST ------- I tried an /etc/cups/client.conf file containing: ServerName localhost That worked. But the file mysteriously became blank again! Does cupsd or yast2 modify this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 ------- Comment #13 from jamesrome@alum.mit.edu 2007-02-18 12:08 MST ------- Another dumb question: Why can't you issue a "patch" that creates the appropriate client.conf file (or adds this line to an existing one)? That would have saved me a day of time! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 dbornkessel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jsmeix@novell.com ------- Comment #14 from dbornkessel@novell.com 2007-02-19 09:42 MST ------- @jsmeix: would that cause trouble for cups? Could I -- as a work around -- add this entry automatically when installing java? And would it remain? Do you have an idea how to automatically make this work by only installing java and without the need to look in our bugzilla for it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jsmeix@novell.com | ------- Comment #15 from jsmeix@novell.com 2007-02-21 03:00 MST ------- Something like -------------------------------------------------------------------------- if ! grep "^ServerName" /etc/cups/client.conf &>/dev/null then echo "# Use localhost but no domain socket" >>/etc/cups/client.conf echo "# to print from Java applications:" >>/etc/cups/client.conf echo "ServerName localhost" >>/etc/cups/client.conf fi --------------------------------------------------------------------------- should not cause trouble. Note the test so that an existing active ServerName entry (which usually points to a remote server) is not overwritten. It is YaST which empties /etc/cups/client.conf see bug #247273. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362 ------- Comment #16 from teverson@novell.com 2007-03-19 07:53 MST ------- Found one new thing, in testing and troubleshooting on this issue. Had the same problem occurring last week, and if I only added the "ServerName localhost" entry to /etc/cups/client.conf, I was still unable to see printers, and still received the 'No print service found.' error, from GW and GWIM clients. This morning, I tested, and found that setting my specific IP in the ServerName line allowed printing to work, after I restarted the GroupWise client. After further digging and testing, I found that something had modified the localhost entry in my /etc/hosts file. Upon correction of the file, and restart of GroupWise and GroupWise Instant Messenger clients, the issue was resolved. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213362#c17
daniel bornkessel
https://bugzilla.novell.com/show_bug.cgi?id=213362#c18
Christian Widmer
https://bugzilla.novell.com/show_bug.cgi?id=213362
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=213362#c19
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=213362
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=213362#c20
--- Comment #20 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=213362
User christian.widmer@student.uni-tuebingen.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=213362#c21
--- Comment #21 from Christian Widmer
https://bugzilla.novell.com/show_bug.cgi?id=213362
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=213362#c22
Michal Vyskocil
participants (1)
-
bugzilla_noreply@novell.com