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

Java2Demo throws IllegalArgumentException on ladybird

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.1
    • client-libs
    • 2d
    • sparc
    • solaris_8

      Run Java2Demo that comes with Ladybird. Go to the clipping tabbed pane. Select the option Alpha Composite under Global controls. Now make a selection on the clipping tabbed pane. An illegalArgumentException is thrown.

      This exception is thrown under this situation on Redhat Linux 6.2, Solaris 8 and windows 98.

       The Exception is given below :

      Exception occurred during event dispatching:
      java.lang.IllegalArgumentException: Width (21) and height (0) must be > 0
              at java.awt.image.SampleModel.<init>(SampleModel.java:105)
              at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:125)
              at java.awt.image.Raster.createPackedRaster(Raster.java:656)
              at java.awt.image.Raster.createPackedRaster(Raster.java:431)
              at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:905)
              at sun.java2d.loops.LockableRaster.<init>(LockableRaster.java:130)
              at sun.java2d.loops.RasterOutputManager.convertFrom(RasterOutputManager.java:1463)
              at sun.java2d.loops.RasterOutputManager.performBinaryComposite(RasterOutputManager.java:1372)
              at sun.java2d.loops.RasterOutputManager.compositeSrcDst(RasterOutputManager.java:710)
              at sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:479)
              at sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2223)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1626)
              at sun.awt.image.BufferedImageGraphics2D.drawImage(BufferedImageGraphics2D.java:388)
              at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:716)
              at sun.awt.image.BufferedImageGraphics2D.drawImage(BufferedImageGraphics2D.java:548)
              at demos.Clipping.ClipAnim.render(ClipAnim.java:134)
              at Surface.paint(Surface.java:347)
              at javax.swing.JComponent.paintWithBuffer(JComponent.java:3868)
              at javax.swing.JComponent._paintImmediately(JComponent.java:3811)
              at javax.swing.JComponent.paintImmediately(JComponent.java:3662)
              at Surface.paintImmediately(Surface.java:316)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
              at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:124)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:331)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:

            tdv Dmitri Trembovetski (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: