Bug 618258
Summary: | Printing from java fails when job-state-reasons contains printer-stopped | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Tim Waugh <twaugh> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 6.0 | CC: | aph, jakub, mfranc, pmuller | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | gcc-4.4.5-5.el6 | Doc Type: | Bug Fix | ||||
Doc Text: |
Previously, if a Java application built with gcj attempted to submit a print job to a print queue that was disabled, the process would enter a busy loop. This update fixes this issue by first checking if the print queue is null before attempting to send it a print job.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-05-19 13:57:44 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Tim Waugh
2010-07-26 14:06:39 UTC
Created attachment 434427 [details]
print.java
When examining it under gdb it seems to be due to the 'printer-stopped' string in the job-state-reasons attribute. Fixed by: 2010-07-30 Andrew Haley <aph> * javax/print/attribute/standard/JobStateReasons.java (add): Fix infinite recursion with call to super. Index: classpath/javax/print/attribute/standard/JobStateReasons.java =================================================================== --- classpath/javax/print/attribute/standard/JobStateReasons.java (revision 159065) +++ classpath/javax/print/attribute/standard/JobStateReasons.java (working copy) @@ -129,7 +129,7 @@ if (o == null) throw new NullPointerException("reason is null"); - return add(o); + return super.add(o); } /** Thanks, reassigning to self to actually backport this for RHEL 6.1. Seems Andrew has backported this to branches/gcc-4_{4,5}-branch/ already (and other libjava fixes too), so it will make it into the 4.[45]-RH branches whenever the new releases are prepared for them (as that includes merging from corresponding upstream branch). Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: libgcj printing has been fixed. Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -libgcj printing has been fixed.+Previously, if a Java application built with gcj attempted to submit a print job to a print queue that was disabled, the process would enter a busy loop. This update fixes this issue by first checking if the print queue is null before attempting to send it a print job. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0663.html |