[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: <cups@easysw.com> Subject: [cups.general] Printing from Java apps I am still unable to print from Java programmes. I am using CUPS 1.2.5 and the jdk1.5.0_6, on Slackware Linux kernel 2.6.13. I still get a "Print Service not Found" message (from the best programme, nothing at all from others). .. -------------------------------------------------------------------------- -------------------------------------------------------------------------- Date: Mon, 04 Dec 2006 12:19:41 +0100 From: ... To: <cups@easysw.com> Subject: [cups.general] Java printing with CUPS To answer my own question (Printing from Java apps, posted yesterday): I found that I can print with the J2SDKv1.4.2_05, but not with any later version (including the latest release candidate JDK1.6.0. After installing the older version of SDK, all my Java apps now print. .. -------------------------------------------------------------------------- -- 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 #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 <cups@easysw.com> Subject: Re: [cups.general] Java printing with CUPS .. I have now checked the Sun website and found bug reports that are of interest to CUPS users: see http://bugs.sun.com/bugdatabase/index.jsp Bug 5109523 states that printing is OK with Sun java 1.4.2 but that the 1.5.0 PrintService does not return any printers (as I found myself). One workaround is explained by (my quotes) "I found that I could get a list of printers if I specify (or default to) AuthType None in cupsd.conf, but when I specify AuthType BasicDigest, I get no printers. I am referring here to the AuthType in <Location /> (i.e. the root cups Location).....However, this problem did not occur using 1.4.2 for some reason..... .. Other comments (see also bug 5087907) suggest a problem of interpretation of IPv4 and IPv6 format addresses, and this was said to have been fixed. At this point, I was left with the option of using the old Sun java 1.4.2 (thus being deprived of changes in more recent versions). My solution was to switch from Sun to the IBM j2SE v 5.0 (their most recent version). With this, printer discovery works and there are no problems printing from any Java apps. .. ---------------------------------------------------------------------------- We have no AuthType for <Location /> in our default cupsd.conf (neither for Suse Linux nor for openSUSE) which is equivalent to "AuthType None". -- 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 #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 <mike@easysw.com> To: <cups@easysw.com> Subject: Re: [cups.general] Java printing with CUPS .. I've actually had some discussions with Sun the other day; the issue is that the default server address in CUPS 1.2 is a domain socket, which Java does not support. They will be implementing a fix for that (fallback to localhost IP socket), but in the meantime you can create/update an /etc/cups/client.conf file containing: ServerName localhost to force your Java applications to use IP instead of domain sockets. ----------------------------------------------------------------------------- -- 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 #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 <cups@easysw.com> Subject: Re: [cups.general] Java printing with CUPS .. Many thanks, Michael, that works fine with Sun jdk 1.5.x (which was a problem before). ------------------------------------------------------------------------- -- 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| |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 <dbornkessel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dbornkessel@novell.com |bnc-team-java@forge.provo.novell.com Status|ASSIGNED |NEW --- Comment #17 from daniel bornkessel <dbornkessel@novell.com> 2007-06-25 01:53:46 MST --- assigning to Java mailing list ... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=213362#c18 Christian Widmer <christian.widmer@student.uni-tuebingen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christian.widmer@student.uni-tuebingen.de Priority|P5 - None |P2 - High Platform|x86 |x86-64 Version|Alpha 5 plus |Final --- Comment #18 from Christian Widmer <christian.widmer@student.uni-tuebingen.de> 2007-08-09 09:36:38 MST --- I have the same problem with Freemind (Mindmapping tool written in Java). I have JAVA 6 installed on my system, which doesn't resolve the issue. Unfortunately, editing the client.conf doesn't fix the problem for me. What works, is that after editing the file, my printers show up again in Freemind's print dialog. When I try to print, though, only the two characters "IB" are printed on my Samsung ML-4600 laser printer, leaving the rest of the page empty. This is followed by an error message on a separate piece of paper, a couple minutes later (actually being printed out): "PCL6 Error - Incomplete Session by time out Position: 0x55 (85) System: GP/os_hook Line: 1674 Version: PCL6 2.30 04-13-2001" Trying to print on my other printer (HP 1220c), has no effect at all. Neither does it print nor give any kind of error message. Also, the print dialog in Eclipse doesn't show for some reason, not sure if this is related. Hope this will be fixed. Cheers, Chris -- 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.
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 <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvyskocil@novell.com Status|NEW |NEEDINFO Info Provider| |rschulz@sonic.net --- Comment #19 from Michal Vyskocil <mvyskocil@novell.com> 2008-07-10 02:35:38 MDT --- I've tested the printing on 11.0 under java-1_6_0-openjdk and java-1_6_0-sun and everything works fine (also with remote printers). Since all of supported distributions contains the same version of Sun Java, I expected, that is should works in older releases too. The printing from jedit, freemind, netbeans works well with cups. The eclipse has some problem (bnc#407861), but this seems to be a different problem as "No print service found." The oxygenxml needs a registration, but it includes its own JRE, so its not important. My /etc/cups/client.conf doesn't contain the "ServerName localhost" $ grep localhost /etc/cups/client.conf # local server ("localhost"), if so configured. The value can be $ grep localhost /etc/sysconfig/cups $ If you've still this problems, please attach the logs from /var/log/cups/ (error_log, access_log). 2Chris: your problem is different. Was the printing work with latest Java? -- 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.
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 <mvyskocil@novell.com> 2008-07-21 05:52:30 MDT --- * ping * -- 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.
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 <christian.widmer@student.uni-tuebingen.de> 2008-07-23 15:49:39 MDT --- Printing using Freemind still doesn't work on my openSuse 10.2 box (even when using java 1.6). However, it seems to work perfectly on my laptop with openSuse 10.3. I haven't tried printing with openSuse 11.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.
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 <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|rschulz@sonic.net | Resolution| |NORESPONSE --- Comment #22 from Michal Vyskocil <mvyskocil@novell.com> 2008-09-17 01:09:48 MDT --- 2Chris: your problem seems to be between cups and Java. Because we ship the Sun binaries only in 10.2, I cannot help you. I don't have a problems in printing on 10.3, 11.0 and alpha of 11.1 2Randall: Please, feel free to reopen if you have any new information. Thank you -- 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.
participants (1)
-
bugzilla_noreply@novell.com