[hardy] Printing in Java applications with OpenJDK doesn't work

Bug #228588 reported by Jan Rathmann
2
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Currently it seems that I am not able to print anything from Java applications (tested on ArgoUML and jEdit):

- If I click on "print", the Java print dialog appears in a normal way
- If I confirm the printing now, then the Cups printer icon appears in the tray, but it doesn't disappear after a few seconds as usual, it remains there
- If you click on it to view the printing queue you can see that the previously started job is stopped and cannot be started, so you have to cancel it to get rid of it.

I'm gonna attaching a detailed Cups error log of an attempt to print with a Java application.

Printing with "normal" applications like Firefox, Evince, etc. works fine. So I also tried to print into a postscript file (can be enabled in the Java printing dialog) to print if from another (non-java) application. The result was quite interesting:

- Evince wasn't able to display the output postscript file correctly, it showed a thumbnail preview of the page content on the left but the main page view remained empty (The thumbnail looked correct allthough).
- When I tried to print the document, now funnily the same behaviour as described above happened (as if Evince was also a Java application ;-) ).

So I would guess that there is something wrong with the postscripts created by the Java print dialog?

My printer is a Canon Pixma iP4000 which is plugged on a Windows machine and accessed via network. As a JVM I'm using OpenJDK, I also installed sun-java-5 and 6 to see if printings works with one of them, but the result was even worse, I ran into this bug:
https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/156191/comments/12

Kind regards,
Jan

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :
Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :
Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :

Oh I forgot, maybe I should add that I run the AMD64-Version of Hardy.

Revision history for this message
Matthias Klose (doko) wrote :

please could you recheck with 6b10 from intrepid or from the hardy openjdk PPA?

Changed in openjdk-6:
status: New → Incomplete
Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :

Sure, can you give me the link to the PPA for Hardy?

Kind regards,
Jan

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :

Yesterday update-manager found a new version of openjdk in Hardy-proposed, so I guess that's the version I should test. I did so, but printing still doesn't work (behaviour didn't change as well).
When the first alphas of Intrepid will be released, I can also do some testing there.

Kind regards,
Jan

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :

Intrepid seems to be also affected. If I can do some further testing or provide any further informations, just let me know.

Kind regards,
Jan

Connor Imes (ckimes)
Changed in openjdk-6:
status: Incomplete → New
Revision history for this message
Matthias Klose (doko) wrote :

this works at least in jaunty and karmic.
more current openjdk packages for hardy can be found here:
https://launchpad.net/~openjdk/+archive/ppa?field.series_filter=hardy

Changed in openjdk-6 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.