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

NPE thrown when opening PrintDialog with HP LaserJet 8000N

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.4.2_10
    • 1.4.2
    • client-libs
    • None
    • 2d
    • b01
    • generic
    • windows

    Description


      The bug is specific to 1.4.2 update release.

      While trying to backport the fix for 6174596 on 1.4.2_10, I figured out that the same testcase as attached in 6174596 throws a NPE with HP LaserJet 8000N printer.
      The bug is not reproduceable on 5.0 update release and on mustang.

      Steps to reproduce:
      - Run the attached testcase
      - Following exception is thrown:

      Exception in thread "main" java.lang.NullPointerException
              at sun.print.Win32PrintService.initMedia(Win32PrintService.java:362)
              at sun.print.Win32PrintService.getSupportedAttributeValues(Win32PrintSer
      vice.java:1068)
              at sun.print.ServiceDialog$MediaPanel.updateInfo(ServiceDialog.java:1736
      )
              at sun.print.ServiceDialog$PageSetupPanel.updateInfo(ServiceDialog.java:
      1104)
              at sun.print.ServiceDialog.updatePanels(ServiceDialog.java:385)
              at sun.print.ServiceDialog.initPrintDialog(ServiceDialog.java:180)
              at sun.print.ServiceDialog.<init>(ServiceDialog.java:133)
              at javax.print.ServiceUI.printDialog(ServiceUI.java:177)
              at PrintTest.print(PrintTest.java:40)
              at PrintTest.<init>(PrintTest.java:27)
              at PrintTest.main(PrintTest.java:56)



      ###@###.### 2005-06-17 22:27:12 GMT

      Attachments

        Activity

          People

            kbalasubsunw Kannan Balasubramanian (Inactive)
            kbalasubsunw Kannan Balasubramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: