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

UnixPrintServiceLookup should not require file permission

    XMLWordPrintable

Details

    • Backport
    • Resolution: Fixed
    • P4
    • 1.4.2_08
    • None
    • client-libs
    • None
    • 2d
    • b01

    Description

      From an Applet, trying to do a print using PrintJob.getGraphics() returns 'null'. This happens in Solaris and not in Windows. The same code works fine when running as Application on Solaris.

      Code snippet:
        //Inside an action handler of a Frame created from Applet
        PrintJob pj = getToolkit().getPrintJob(this, "Test Print", null);
        if(pj == null) return;
        Graphics g = pj.getGraphics(); // <== NULL

      Testcase is in the attachment of this bug. Open the demoDefault.html in Netscape browser on Solaris. Click on the Print button from the Frame, which brings up 'Confirmation Needed - Print' dialog (for the 1st time). Click the Yes button to continue, which brings up the 'Print' dialog. Click the OK button to print. Open the Java Console and see java.lang.NullPointerException being thrown.


      ###@###.### 2004-12-03 08:07:57 GMT

      Attachments

        Issue Links

          Activity

            People

              sthilagasunw Sathianantha Thilagar (Inactive)
              sthilagasunw Sathianantha Thilagar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: