NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 20, 2017, 09:22:36 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
An interaction between two opposites produces a unique outcome. ..."Jules Henri Poincare(1854-1912, One of France's greatest mathematicians)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: general problem with EJS_4.3.0_100613 when running applet in java3D mode  (Read 3215 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
on: June 17, 2010, 12:53:08 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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.ControlElementMethodDelayedAction.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.ControlRadioButton1.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButtonHandler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.JToggleButtonToggleButtonModel.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.access5(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3DIADMouseController.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.access5(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3DIADMouseController.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.access5(Unknown Source)
at org.opensourcephysics.drawing3d.DrawingPanel3DIADMouseController.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)



* hangsin3djava.png (64.92 KB, 608x634 - viewed 232 times.)
Logged
Pages: [1]   Go Up
  Print  
An interaction between two opposites produces a unique outcome. ..."Jules Henri Poincare(1854-1912, One of France's greatest mathematicians)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
General purpose Curve plotting applets
Kinematics
Fu-Kwun Hwang 3 18508 Last post April 15, 2016, 11:37:02 pm
by lookang
General purpose Curve plotting applets
misc
Fu-Kwun Hwang 4 13300 Last post May 21, 2010, 06:41:10 pm
by ahmedelshfie
vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth)
misc
Fu-Kwun Hwang 11 78285 Last post December 07, 2012, 10:49:32 pm
by Fu-Kwun Hwang
vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth)
misc
ahmedelshfie 1 5905 Last post April 19, 2010, 02:50:21 am
by ahmedelshfie
Bugs in EJS_4.3.0_100613\EJS_4.3.0 deployment of arrows
Questions related to EJS
lookang 0 2279 Last post June 17, 2010, 12:43:42 pm
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.056 seconds with 22 queries.since 2011/06/15