Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8046007

Java app receives javax.print.PrintException: Printer is not accepting job.

    XMLWordPrintable

Details

    • 2d
    • b30

    Backports

      Description

        On Windows, a Java application is no longer able to send printing jobs into Windows printer spooler, if the related printer becomes unavailable for some reason. At this point, the Windows printer queue shows an error state ('Error - Printing').

        If the Java application tries to print when Windows printer is in an error state, the Java print dialog shows 'Status: Not accepting jobs'. After pushing the print button, the app will fail printing with exception:

        java.awt.print.PrinterException: Printer is not accepting job.
                at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1326)
                at javax.swing.text.JTextComponent$2.call(JTextComponent.java:2320)
                at java.util.concurrent.FutureTask.run(FutureTask.java:262)
                at javax.swing.text.AbstractDocument.render(AbstractDocument.java:420)
                at javax.swing.text.JTextComponent$3.run(JTextComponent.java:2369)
                at java.lang.Thread.run(Thread.java:744)

        At the same time, regular Windows applications (e.g Word) can still add new print jobs to the queue of this printer.

        Attachments

          Issue Links

            Activity

              People

                aivanov Alexey Ivanov
                asaha Abhijit Saha
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: