Current Forum: Homework 6 - Part II |
Date: Sat Dec 8 2001 9:27 pm |
Author: Shi, Ying <shy@cmu.edu> |
Subject: runtime exception |
|
|
hello, I wonder whether anyone out there can help me identify what's problem that caused this exception (copied below). I was running the same program over and over again, nothing changed, but all of sudden such runtime exception was thrown to the console, from which I could find nothing that I speculate as related to any of my files
Thanks !
" Exception occurred during event dispatching: java.lang.ArrayIndexOutOfBoundsException: 1 >= 0 at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Exception.java:42) at java.lang.RuntimeException.(RuntimeException.java:47) at java.lang.IndexOutOfBoundsException.(IndexOutOfBoundsException. java:44) at java.lang.ArrayIndexOutOfBoundsException.(ArrayIndexOutOfBounds Exception.java:53) at java.util.Vector.elementAt(Compiled Code) at SuperPlayer.getMove(SuperPlayer.java:40) at GraphicsGame.doMove(Compiled Code) at GraphicsGame.access$1(Compiled Code) at GraphicsGame$MouseTest2.mousePressed(Compiled Code) at java.awt.Component.processMouseEvent(Component.java:3162) at java.awt.Component.processEvent(Component.java:3004) at java.awt.Container.processEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Window.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventQueue.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code) at java.awt.EventDispatchThread.pumpEvents(Compiled Code) at java.awt.Dialog.show(Compiled Code) at java.awt.Component.show(Compiled Code) at java.awt.Component.setVisible(Component.java:797) at GraphicsGame.optionsMenu(GraphicsGame.java:434) at GraphicsGame.access$2(GraphicsGame.java:423) at GraphicsGame$MouseTest.mousePressed(GraphicsGame.java:1677) at java.awt.Component.processMouseEvent(Component.java:3162) at java.awt.Component.processEvent(Component.java:3004) at java.awt.Container.processEvent(Container.java:1016) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Window.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventQueue.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code) at java.awt.EventDispatchThread.pumpEvents(Compiled Code) at java.awt.EventDispatchThread.run(EventDispatchThread.java:83) "
|
|