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 February 09, 2009, 09:45:39 am



Title: Strange error message from PC where i am not admin
Post by: lookang on February 09, 2009, 09:45:39 am
java.lang.NullPointerException
   at weemicrometer4internet_pkg.weemicrometer4internetView.reset(weemicrometer4internetView.java:1134)
   at org.colos.ejs.library.Animation.reset(Unknown Source)
   at weemicrometer4internet_pkg.weemicrometer4internetSimulation.(weemicrometer4internetSimulation.java:28)
   at weemicrometer4internet_pkg.weemicrometer4internet.(weemicrometer4internet.java:73)
   at weemicrometer4internet_pkg.weemicrometer4internetApplet.init(weemicrometer4internetApplet.java:18)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
java.lang.NullPointerException
   at weemicrometer4internet_pkg.weemicrometer4internetView.reset(weemicrometer4internetView.java:1134)
   at org.colos.ejs.library.Animation.reset(Unknown Source)
   at weemicrometer4internet_pkg.weemicrometer4internetSimulation.(weemicrometer4internetSimulation.java:28)
   at weemicrometer4internet_pkg.weemicrometer4internet.(weemicrometer4internet.java:73)
   at weemicrometer4internet_pkg.weemicrometer4internetApplet.init(weemicrometer4internetApplet.java:18)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException


I tested at home no problem, but now this pc cannot view.

any idea how to solve this?  ???


Title: Re: Strange error message from PC where i am not admin
Post by: Fu-Kwun Hwang on February 09, 2009, 10:05:54 am
I need the original EJS source in order to find out what might be the problem.


Title: Re: Strange error message from PC where i am not admin
Post by: lookang on February 09, 2009, 10:17:15 am
http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=683.0;attach=660

it is actually from http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=683.0

i redesigned the micrometer from yours and now it is super cool!!! added new features to make it great.


Strange error message from PC where i am not admin
i suspect is a PC problem or firewall or bandwidth or 2 java applet loading at same time?? The applet definitely works on most PC.


Title: Re: Strange error message from PC where i am not admin
Post by: Fu-Kwun Hwang on February 09, 2009, 01:27:07 pm
I can not find the error when I run it.
Are you running it as an application? or with a browser?

Open the java console before you open it with the browser, and click "l" and "5" keys to change log mode.
Load applet into browser and find out the message shown.


Title: Re: Strange error message from PC where i am not admin
Post by: lookang on February 09, 2009, 01:47:03 pm
not to worry, it is likely this pc problem.

i just found JAVA http://java.sun.com/javase/downloads/index.jsp
 
Java SE Runtime Environment (JRE)
JRE 6 Update 12
This release includes the highly anticipated 64-bit Java Plug-In (for 64-bit browsers only), Windows Server 2008 support, and performance improvements of Java and JavaFX applications.   Learn more    

Java SE Development Kit (JDK)
JDK 6 Update 12
This JDK includes the JRE and command-line development tools that are useful for developing applets and applications.   Learn more    


I installed both to be sure, and it works now!

It take a lot of time maybe 5 minutes or there about to load the applet on this PC. but it works so i am not complaining ;D