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

PIT: Printing on disconnected network printer causes VM Crash on Win XP

XMLWordPrintable

    • 2d
    • b40
    • x86
    • windows_xp
    • Verified

      I am printing an image to a disconnected printer from Win XP using the merlin printing APIs. On Tiger-beta2-b38 and before, this causes a NullPointerException in sun.print.Win32PrintService.initMedia(). But when I execute this on the 2D PIT build specified below the VM crashes.

      Here is the PIT build:
      java version "2d-jcg-win-01-2004-02-18.tiger"
      Java(TM) 2 Runtime Environment, Standard Edition (build 2d-jcg-win-01-2004-02-18.tiger)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b38, mixed mode)

      When I use java.awt.print.PrinterJob, i am getting an internal error : cannot open printer. This is seen on the PIT build as well as previous builds.

      I have attached a sample test. Execute the sample test on a system which has a disconnected network printer as the default printer. If the VM crashes, the bug is reproduced. I have attached the log files created by the VM at the time of crash.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: