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

Setting a custom PrintService on a PrinterJob leads to a PrinterException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 6u10
    • 8
    • client-libs
    • 2d
    • b112
    • x86
    • windows_xp

    Description

      FULL PRODUCT VERSION :
      java version "1.6.0_11"
      Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
      Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600

      A DESCRIPTION OF THE PROBLEM :
      I implemented my own PrintService that I try to set on the PrinterJob created by the correct method.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Execute the source code attached

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The print service is set on the printer job
      ACTUAL -
      java.awt.print.PrinterException: Invalid name of PrintService.
              at sun.awt.windows.WPrinterJob.setNativePrintService(Native Method)
              at sun.awt.windows.WPrinterJob.setPrintService(Unknown Source)
              at Test.main(Test.java:62)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: