Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157126 - Java 1.5 refuses to print via cups with "No printer service found" error
Summary: Java 1.5 refuses to print via cups with "No printer service found" error
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-04 12:30 UTC by Tom Simnett
Modified: 2007-07-17 17:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Simnett 2006-12-04 12:30:29 UTC
With some help from #gentoo-java, I've been investigating this and come to a hack/workaround.

By deleting (or moving) /usr/lib/libcups.so to somewhere else, printing starts working again.

Obviously this is less than ideal as it means the same process must be gone through to make it work when cups is upgraded.

Cheers,

Tom
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-12-04 12:49:45 UTC
This fix was suggested in a few places, but none seem to have an explanation as to what is causing it.

http://ubuntuforums.org/showthread.php?t=298379
http://freemind.sourceforge.net/wiki/index.php/FreeMind_on_Linux#Why_do_I_get_a_.22No_print_service_found.22_whenever_I_attempt_to_print.3F

I did an strace with and without the libcups.so. It seems it is trying to open libcups.so. If it does find it and open it, it seems to bail, and you get 'No printer service found'. Without libcups.so, it doesn't find it, and it just works.

Comment 2 Mario Fetka (geos_one) 2007-03-06 16:51:01 UTC
(In reply to comment #0)

CUPS 1.2 returns by default to java the local socket 
and java wants to make network request to /var..../cups.socket

its clear that it cant find a printer.

more at 
http://www.cups.org/articles.php?L433+I0+TFAQ+P1+Qjava

wfg
Mario 
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-07 17:47:52 UTC
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500903

the sun bug about this that is linked in the cups bug is fixed, what does this mean for us?
Comment 4 Tom Simnett 2007-04-10 13:18:10 UTC
I can confirm that creating the environment variable CUPS_SERVER=localhost works using en_GB.UTF8 locale.

Sounds like there isn't much needed but adding a file/entry for this to /etc/env.d/

Tom
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-06-18 22:49:25 UTC
(In reply to comment #3)
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500903
> 
> the sun bug about this that is linked in the cups bug is fixed, what does this
> mean for us?
 
According to that, it's fixed in sun-jdk/sun-jre-bin 1.5.0.12 and 1.6.0.01. Someone please verify :)
Comment 6 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-07-17 16:42:24 UTC
I just ran into this the other day where I had to move libcups.so again, leaving the .2 and others alone in /usr/lib. However I can't replicate that today. I just tested with 1.5.0.12, 1.6.0.2, and OpenJDK 1.7 alpha 13.  And I can't replicate. My printer showed up every time in OO.o. I guess it's resolved? Just wish I could replicate what I saw just the other day. Might have been starting cups after OO.o the other day.
Comment 7 Heiko Baums 2007-07-17 17:14:44 UTC
For me it's now working with dev-java/sun-jdk-1.5.0.12 and net-print/cups-1.2.12.
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-07-17 17:58:49 UTC
OK so let's close it. These versions are going stable for security anyway.