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

Printing in Solaris throws NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      sparc
    • OS:
      solaris

      Description

      In Solaris Printing throws NPE when printAll() method is called

      Copy all images and PrintBug.java to a directory
      Compile and Run PrintBug.java
      Wait till all images and Components appear.
      Click on any of buttons - Native, Common or None and Print.
      If the following error is thrown bug is reproduced.

      Its working fine when Merlin Beta (build 65) is used. This is a regression bug.
      I could reproduce the failiure with build b63b in SolSparc 7 and SolSparc 9

      java.lang.NullPointerException
              at java.awt.image.ComponentColorModel.getDataElements(ComponentColorModel.java:1349)
              at sun.java2d.loops.OpaqueCopyArgbToAny.Blit(CustomComponent.java:143)
              at sun.java2d.loops.GraphicsPrimitive.convertTo(GraphicsPrimitive.java:294)
              at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:205)
              at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:140)
              at sun.java2d.loops.BlitBg$General.BlitBg(BlitBg.java:160)
              at sun.java2d.SunGraphics2D.blitSurfaceData(SunGraphics2D.java:2974)
              at sun.java2d.SunGraphics2D.renderSurfaceData(SunGraphics2D.java:2897)
              at sun.java2d.SunGraphics2D.renderImage(SunGraphics2D.java:2881)
              at sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2860)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2214)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2196)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3244)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3431)
              at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:780)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3446)
              at sun.print.PSPathGraphics.drawImageToPS(PSPathGraphics.java:984)
              at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:498)
              at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:409)
              at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:348)
              at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:291)
              at sun.print.PSPathGraphics.drawImage(PSPathGraphics.java:200)
              at sun.print.ProxyGraphics.drawImage(ProxyGraphics.java:807)
              at PrintBug$MyCanvas.paint(PrintBug.java:220)
              at java.awt.Component.print(Component.java:2422)
              at sun.awt.motif.MComponentPeer.print(MComponentPeer.java:306)
              at java.awt.GraphicsCallback$PeerPrintCallback.run(GraphicsCallback.java:88)
              at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:63)
              at java.awt.Component.printAll(Component.java:2438)
              at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(SunGraphicsCallback.java:133)
              at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:63)
              at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:100)
              at sun.awt.motif.MPanelPeer.print(MPanelPeer.java:42)
              at java.awt.GraphicsCallback$PeerPrintCallback.run(GraphicsCallback.java:88)
              at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:63)
              at java.awt.Component.printAll(Component.java:2438)
              at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(SunGraphicsCallback.java:133)
              at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:63)
              at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:100)
              at sun.awt.motif.MPanelPeer.print(MPanelPeer.java:42)
              at sun.awt.motif.MFramePeer.print(MFramePeer.java:239)
              at java.awt.GraphicsCallback$PeerPrintCallback.run(GraphicsCallback.java:88)
              at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:63)
              at java.awt.Component.printAll(Component.java:2438)
              at PrintBug.actionPerformed(PrintBug.java:198)
              at java.awt.Button.processActionEvent(Button.java:384)
              at java.awt.Button.processEvent(Button.java:353)
              at java.awt.Component.dispatchEventImpl(Component.java:3474)
              at java.awt.Component.dispatchEvent(Component.java:3341)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rpullanisunw Rakesh Pullanikkad (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: