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

PrinterJob.print() method raises NullPointerException on Win98(1st Edition) only

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      windows_98
    • Verification:
      Verified

      Description


      The PrintQL raises NullPointerException while running on Win98 (1st Edition). The testcase runs fine on Win98 SE.

      Link to the testcase
      /net/sqesvr/export/2d/Merlin_2d_ws/PrintQL/src

      The stacktrace is shown below:

      While trying to print QL with Frame

      java.lang.NullPointerException
              at sun.awt.windows.WPrinterJob.getPrintService(WPrinterJob.java:397)
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:955)
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:937)
              at PrintQL_Frame.actionPerformed(PrintQL_Frame.java:48)
              at java.awt.Button.processActionEvent(Button.java:354)
              at java.awt.Button.processEvent(Button.java:327)
              at java.awt.Component.dispatchEventImpl(Component.java:3460)
              at java.awt.Component.dispatchEvent(Component.java:3327)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:14
      0)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      While trying to print QL with JFrame

      java.lang.NullPointerException
              at sun.awt.windows.WPrinterJob.getPrintService(WPrinterJob.java:397)
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:955)
              at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:937)
              at PrintQL_JFrame.actionPerformed(PrintQL_JFrame.java:45)
              at java.awt.Button.processActionEvent(Button.java:354)
              at java.awt.Button.processEvent(Button.java:327)
              at java.awt.Component.dispatchEventImpl(Component.java:3460)
              at java.awt.Component.dispatchEvent(Component.java:3327)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:14
      0)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

        Attachments

          Activity

            People

            Assignee:
            jgodinez Jennifer Godinez (Inactive)
            Reporter:
            kbalasubsunw Kannan Balasubramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: