Too many open files exception ignored by UnixPrintServiceLookup.execCmd()

cresley battlelite cresley_battlelite at hotmail.com
Wed Aug 22 05:28:12 UTC 2007


When I request a javax.print.PrintJob to print on Unix, the PrintService checks to see if the printer is accepting jobs and can return a false negative if there are too many open files because the following Exception is ignored (see j2se/src/solaris/classes/sun/print/UnixPrintServiceLookup.java)
 
java.security.PrivilegedActionException: java.io.IOException: Too many open filesCaused by: java.io.IOException: Too many open files
I would have preferred a PrintException 
 
        } catch (PrivilegedActionException e) {        }
should change to (or similar) 
 
        } catch (PrivilegedActionException e) {                throw new PrintException("Unable to determine if printer is accepting jobs - " + e.getMessage());
        }
Is there a better area than discuss to discuss such things?
 
  
Cresley
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/discuss/attachments/20070822/03746974/attachment.html>


More information about the discuss mailing list