APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Problems with Elements in new version post and replies

Return to the Problems with Elements in new version thread
Login to post to this thread

Problems with elements in new version of EJS
Léo Santos
10 Posts

Hello there. recently i have some problems with elements in the new version of EJS. I wanted to use elements how Tracker, and the console doesn't find some of these elements in "External" and "inputOutput".

In the console, appears some differents msgs of errors when I open this section's elements.

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.opensourcephysics.tools.ResourceLoader.getIcon(Ljava/lang/String;)Ljavax/swing/ImageIcon;
at es.uned.jchacon.model_elements.audio.AudioElement.(AudioElement.java:25)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.colos.ejs.osejs.edition.variables.ModelElementsPalette.instantiateModelElement(ModelElementsPalette.java:348)
at org.colos.ejs.osejs.edition.variables.ModelElementsPalette.readModelElements(ModelElementsPalette.java:287)
at org.colos.ejs.osejs.edition.variables.ModelElementsPalette.readElements(ModelElementsPalette.java:202)
at org.colos.ejs.osejs.edition.variables.ModelElementsPalette.access$1(ModelElementsPalette.java:173)
at org.colos.ejs.osejs.edition.variables.ModelElementsPalette$1.mousePressed(ModelElementsPalette.java:88)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(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.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)


Léo Rodrigues Macena dos Santos Departament of Physics - Faculdade de Ciências da Universidade do Porto.

Replies to Problems with elements in new version of EJS

Re: Problems with elements in new version of EJS -
Francisco Esquembre
237 Posts

Hi Leo,

There was a change in the OSP core that affected a number of basic procedures. This seems to be one of them.

Please, try the beta release of EjsS at http://fem.um.es/EjsWiki/uploads/Download/EjsS_5.2_161030.zip

It should work. If it doesn't, please let me know.

Paco

PS: This release will turn into public very soon...



Re: Re: Problems with elements in new version of EJS -
Léo Santos
10 Posts

Thank you very much, Paco. I forgot to reply you and I have used this version. Recently, I've had problems when I insert elements connected to the tracker, etc. I'm studying these issues and I can contact you soon to repair it.


Léo Rodrigues Macena dos Santos Departament of Physics - Faculdade de Ciências da Universidade do Porto.


OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book