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

REG: PrintException is not thrown when printing to a printer not accepting jobs, Win32

    XMLWordPrintable

Details

    • 2d
    • b73
    • x86
    • windows_xp
    • Verified

    Description

      The default printer connected to my WinXP system is not accepting jobs since there is a paper jam. If I invoke PrinterJob.printDialog() (native/common), the dialog shows clearly that the printer is not accepting jobs. On the common dialog, just below the printer list status is shown as 'Not Accepting Jobs'. But I am still trying to print to the printer by clicking the ok button on the dialog.

      I am expecting a PrintException to be thrown But on Mustang b36, no exception is thrown. This is a regression introduced in some build between Mustang-b33 to b36. This passes with b32 where I am getting a PrintException. The only printing change that went into b33 is: 4744405 RFE: lookupPrintServices() to refresh the printers list dynamically.

      I have attached a sample test. Execute the sample test on WinXP and make sure the printer connected to the system is not accepting jobs. Choose the printer that does not accept jobs and click 'print' in the print dialog. If you don't see any exception, the bug is reproduced.
      I reproduced it with Lexmark Optra T610 printer. Job unacceptance state was simulated by introducing a paper jam.
      Make sure your default printer is accpeting jobs and one of the other printers connected to the system is not accepting jobs. When I changed the default printer to the one that does not accept jobs, the attached app started working fine.

      Attachments

        Activity

          People

            jgodinez Jennifer Godinez (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: