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

Can't print with appletviewer in merlin b32

XMLWordPrintable

    • 2d
    • beta
    • generic, sparc
    • generic, solaris_7
    • Verified

      hercule.li@prc 2000-09-18

      I found out this bug in merlin build 32
      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b32)
      Java HotSpot(TM) Core VM (build 1.3-internal, interpreted mode)

      This bug exists in zh_CN locale and en_US locale.
      This bug exists in Solaris 7 and Solaris 8.
      This bug dose NOT exist in merlin build 30.

      In merlin b32, when using appletviewer to startup a application,
      then choose print from Applet menu, there will be some error message flash out like below

      appletviewer GuoCai.html
      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at sun.awt.motif.PSPrinterJob$3.run(PSPrinterJob.java:529)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.awt.motif.PSPrinterJob.printDialog(PSPrinterJob.java:519)
              at sun.java2d.PrintJob2D.printDialog(PrintJob2D.java:103)
              at sun.awt.motif.MToolkit.getPrintJob(MToolkit.java:363)
              at sun.awt.motif.MToolkit.getPrintJob(MToolkit.java:351)
              at sun.applet.AppletViewer.appletPrint(AppletViewer.java:677)
              at sun.applet.AppletViewer.processUserAction(AppletViewer.java:834)
              at sun.applet.AppletViewer$UserActionListener.actionPerformed(AppletViewer.java:131)
              at java.awt.MenuItem.processActionEvent(MenuItem.java:540)
              at java.awt.MenuItem.processEvent(MenuItem.java:504)
              at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:275)
              at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:265)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:372)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:127)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:117)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:96)



      Reproduce steps:
      1. compile attached file GuoCai.java
      2. execute 'appletviewer GuoCai.html'
      3. choose print in the 'Applet' menu.


      ---------- end of hercule.li@prc 2000-09-18


      hercule.li@prc 2000-10-16

      this bug gets fix in merlin b36

      ------ hercule.li@prc 2000-10-16

            jgodinez Jennifer Godinez (Inactive)
            hlisunw Hercule Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: