Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Random "Printer is not accepting job" PrinterExceptions

843807Sep 8 2006 — edited Apr 11 2009
I have a Java 5 printing application that runs on W2K3. There are multiple TCP/IP printers defined (local printers w/ TCP/IP ports). Each night the app prints almost 100 documents. Occassionally, I will get a java.awt.print.PrinterException: Printer is not accepting job. These appear to be totally random and unrelated to problems on the printer. In fact I can get jobs to queue up when the printer is down, out of paper or toner. The problem happens with different printers and different printer models. What are the conditions under which this exception is generated? I've never been able to reproduce the problem (only see evidence in the logs), so it has been very difficult to debug. Is there a way to force Java to queue up the job even if the "printer is not accepting jobs"?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2009
Added on Sep 8 2006
13 comments
20,769 views