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

NullPointerException in printing on windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      JDK:jdk-8-ea-bin-b82-windows-i586-21_mar_2013.exe
      OS:windows xp sp3, windows 7
      tools:eclipse 3.7.2

      Description

      <code>
                      Node node = new Circle(100, 200, 200);
      PrinterJob job = PrinterJob.createPrinterJob();
      if (job != null) {
      boolean success = job.printPage(node);
      if (success) {
      job.endJob();
      }
      }
      </code>
      I run the code above on windows xp, but it doesn't work. I try to debug it. It seems like the com.sun.glass.ui.Application.GetApplication() method return null, what cause GetApplication()._invokeAndWait(runnable) which in com.sun.glass.ui.Application.invokeAndWait(Runnable) method throw NullPointException.
      Any help will be appreciated.

        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              vivuszhonjfx vivuszhong (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: