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

Java2D demo generates java.lang.ArrayIndexOutOfBoundsException

XMLWordPrintable

    • tiger
    • 5.0
    • b62
    • generic, x86, sparc
    • generic, linux_redhat_2.1, linux_suse_sles_8, solaris_10
    • Verified

      JDK : JDK1.5.0 b14 swat
      Platform[s] : Sparc10
      switch/Mode : -client -Xmixed

      How to reproduce:
      1. Launch Java2D demo by running "bin/java -jar demo/jfc/Java2D/*jar"
      2. Open Options/RunWindow and click on Run to start the auto tests.
      When it finished some test runs, it starts to generate java.lang.ArrayIndexOutOfBoundsException as below:

      # bin/java -jar demo/jfc/Java2D/*jar
      Exception while removing reference: java.lang.NullPointerException
      java.lang.NullPointerException
      at sun.java2d.Disposer.run(Disposer.java:109)
      at java.lang.Thread.run(Thread.java:549)
      Exception while removing reference: java.lang.NullPointerException
      java.lang.NullPointerException
      at sun.java2d.Disposer.run(Disposer.java:109)
      at java.lang.Thread.run(Thread.java:549)

      Java2D Demo RunWindow : 20 Runs, 10 second delay between tabs
      java version: 1.5.0-beta
      SunOS 5.10

      #0 Wed Aug 06 13:12:58 PDT 2003, 4340.1797K used
      #1 Wed Aug 06 13:15:27 PDT 2003, 6753.2734K used
      #2 Wed Aug 06 13:17:54 PDT 2003, 7096.0234K used
      #3 Wed Aug 06 13:20:21 PDT 2003, 9767.422K used
      #4 Wed Aug 06 13:22:47 PDT 2003, 8673.359K used
      #5 Wed Aug 06 13:25:14 PDT 2003, 9484.297K used
      #6 Wed Aug 06 13:27:42 PDT 2003, 9051.789K used
      #7 Wed Aug 06 13:30:09 PDT 2003, 7271.9766K used
      java.lang.ArrayIndexOutOfBoundsException: 21
      at java.util.Arrays$ArrayList.get(Arrays.java:2362)
      at java2d.Intro$Surface$DdE.step(Intro.java:1131)
      at java2d.Intro$Surface$Scene.step(Intro.java:540)
      at java2d.Intro$Surface.paint(Intro.java:297)
      at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4599)
      at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4552)
      at javax.swing.JComponent._paintImmediately(JComponent.java:4495)
      at javax.swing.JComponent.paintImmediately(JComponent.java:4302)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)

      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:459)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

      ###@###.### 2003-08-06
      ---------------------------------------
      The java.lang.ArrayIndexOutOfBoundsException happens on Red Hat Advance Server 2.1 with linux-ia64 bundles.

      Red Hat Linux Advanced Server release 2.1AS (Derry)
      Linux prosignia 2.4.18-e.12smp #1 SMP Thu Oct 17 15:13:01 EDT 2002 ia64 unknown

      ###@###.### 2003-10-29
      -----------------------------------

            bmathewssunw Blessan Mathews (Inactive)
            schien Suchen Chien (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: