NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: lookang on June 17, 2010, 12:53:08 pm



Title: general problem with EJS_4.3.0_100613 when running applet in java3D mode
Post by: lookang on June 17, 2010, 12:53:08 pm
general problem with EJS_4.3.0_100613 when running applet in java3D mode.

output area has error when applet runs in Java 3d
reference applet is here http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1266.msg4902#msg4902

Code:
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor212.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.MethodWithOneParameter.invoke(Unknown Source)
at org.colos.ejs.library.control.ControlElement$MethodDelayedAction.performAction(Unknown Source)
at org.colos.ejs.library.Animation.invokeMethodWhenIdle(Unknown Source)
at org.colos.ejs.library.control.ControlElement.invokeActions(Unknown Source)
at org.colos.ejs.library.control.swing.ControlRadioButton.setInternalValue(Unknown Source)
at org.colos.ejs.library.control.swing.ControlRadioButton$1.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(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.IllegalArgumentException: adding a container to a container on a different GraphicsDevice
at java.awt.Component.checkGD(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at org.colos.ejs.library.control.swing.ControlContainer.add(Unknown Source)
at org.colos.ejs.library.control.swing.ControlFrame.add(Unknown Source)
at org.colos.ejs.library.control.swing.ControlSwingElement.changeVisual(Unknown Source)
at org.colos.ejs.library.control.drawing3d.ControlDrawingPanel3D.setValue(Unknown Source)
at org.colos.ejs.library.control.GroupVariable.propagateValue(Unknown Source)
at org.colos.ejs.library.control.EjsControl.setValue(Unknown Source)
at org.colos.ejs.library.control.EjsControl.setValue(Unknown Source)
at org.colos.ejs.library.control.EjsControl.setValue(Unknown Source)
at users.sgeducation.lookang.DCmotor3with3djava_pkg.DCmotor3with3djavaView.propagateValues(DCmotor3with3djavaView.java:895)
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.updateAfterModelAction(Unknown Source)
... 35 more
Exception in thread "AWT-EventQueue-0" javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be removed
at javax.media.j3d.Group.removeAllChildren(Group.java:384)
at org.opensourcephysics.drawing3d.java3d.Java3dElement.addNode(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.addShape(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.computePolygon(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Element.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.ElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Group.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D.getTargetHit(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D.access$5(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D$IADMouseController.mouseMoved(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.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)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.media.j3d.GeometryArrayRetained.setCoordinate(GeometryArrayRetained.java:3665)
at javax.media.j3d.GeometryArray.setCoordinate(GeometryArray.java:1358)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.addShape(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.computePolygon(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Element.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.ElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Group.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D.getTargetHit(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D.access$5(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D$IADMouseController.mouseMoved(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.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)
Exception in thread "AWT-EventQueue-0" javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be removed
at javax.media.j3d.Group.removeAllChildren(Group.java:384)
at org.opensourcephysics.drawing3d.java3d.Java3dElement.addNode(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.addShape(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.computePolygon(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Element.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.ElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Group.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D.getTargetHit(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D.access$5(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D$IADMouseController.mouseMoved(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.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)
Exception in thread "Thread-3" javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be removed
at javax.media.j3d.Group.removeAllChildren(Group.java:384)
at org.opensourcephysics.drawing3d.java3d.Java3dElement.addNode(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.addShape(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.computePolygon(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Element.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.ElementPolygon.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.Group.processChanges(Unknown Source)
at org.opensourcephysics.drawing3d.java3d.Java3dDrawingPanel3D.update(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3D.update(Unknown Source)
at org.colos.ejs.library.control.drawing3d.ControlDrawingPanel3D.finalUpdate(Unknown Source)
at org.colos.ejs.library.control.EjsControl.finalUpdate(Unknown Source)
at org.colos.ejs.library.Animation.update(Unknown Source)
at org.colos.ejs.library.Animation.step(Unknown Source)
at org.colos.ejs.library.Animation.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)