http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=710.0

Hi prof,

i encountered a strange problem and i manage to isolate the cause.

The cause is
when i assign a yv[j] to the POS Y of a text field
[img]http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1183.0;attach=1263;image[/img]
it compile ok
but when i mouse over the array dots

the Ejs console starts to show error message. How to solve or overcome this problem? Thanks!
[img]http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1183.0;attach=1265;image[/img]


"RMI registry started at port: 2008
EjsConsole server is ready to listen at port: 2008
Running selected program
C:/Program Files/Java/jre6//bin/java -Xmx256m -classpath bin/comSun.jar;bin/osp.jar;bin/ejs_lib.jar;bin/bsh.jar;bin/ejs.jar;bin/extensions/djep.jar;bin/locales.jar -Dcodebase=. -Dhome=D:\Shared\EasyJavaSimulation\EJS_4.2_090807\EJS_4.2\workspace org.colos.ejs.osejs.Osejs -lastFile -lookAndFeel javax.swing.plaf.metal.MetalLookAndFeel -decorateWindows -screen 0
cHotEqn V 4.02 cHotEqn
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.colos.ejs.library.control.MethodWithOneParameter.invoke(Unknown Source)
at org.colos.ejs.library.control.GroupVariable.propagateValue(Unknown Source)
at org.colos.ejs.library.control.EjsControl.doTheUpdate(Unknown Source)
at org.colos.ejs.library.control.EjsControl.update(Unknown Source)
at org.colos.ejs.library.Animation.update(Unknown Source)
at org.colos.ejs.library.Animation.updateWhenIdle(Unknown Source)
at org.colos.ejs.library.control.EjsControl.updateSimulationWhenIdle(Unknown Source)
at org.colos.ejs.library.control.ControlElement.variableChanged(Unknown Source)
at org.colos.ejs.library.control.displayejs.ControlPoligon.interactionPerformed(Unknown Source)
at org.opensourcephysics.displayejs.AbstractInteractiveElement.invokeActions(Unknown Source)
at org.colos.ejs.library.control.swing.ControlPlottingPanel.handleMouseAction(Unknown Source)
at org.opensourcephysics.display.InteractivePanel$IADMouseController.mouseMoved(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1

for example i didn't copy the whole chunk of error message