I am getting the "javax.print.PrintException: Printer is not accepting job."
, when I try to execute
printService.createPrintJob().print(
new SimpleDoc(this,
DocFlavor.SERVICE_FORMATTED.PRINTABLE,
docAttributeSet),
printRequestAttributeSet);
I am seeing this problem happening for one machine printing to the printer but the other machine is able to print to the same printer using the same API call. I was looking at bug report from Oracle Sun explaining similar problem which is pasted below. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6525150
But none of the workarounds mentioned there is fixing the problem for me. Any help is appreciated.
Removing and adding the printer fixes the problem as mentioned in the bug as a workaround. It worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With