From: Dalibor K. <xk...@fi...> - 2009-10-15 13:44:02
|
Hi, I've been trying to run the visualization but I am still getting an Exception: Exception in thread "main" java.lang.ExceptionInInitializerError at gridsim.GridSim.startGridSimulation(Unknown Source) at traceexample.Main.main(Main.java:124) Caused by: java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at gridsim.parallel.gui.GUISettings.loadDefaultProperties(Unknown Source) at gridsim.parallel.gui.GUISettings.<init>(Unknown Source) at gridsim.parallel.gui.GUISettings.getInstance(Unknown Source) at gridsim.parallel.gui.AbstractVisualizer.<clinit>(Unknown Source) ... 2 more Java Result: 1 Clearly the GUISettings class cannot load the "gui.properties" file properly. I am not quite sure where to put this gui.properties file. Since it is expected to be at: DEF_PATH = "gridsim/parallel/gui/gui.properties" I tried to create such directory in my project folder, but it did not work. Weird thing is that if I tried to open it via FileReader on my own, everything went just fine, so I suppose wrong path was not the problem. I am using gridsim as a .jar library, which I include into my (Netbeans) project. The visualization is invoked through GridSim.startGridSimulation(true); command and by using AggressiveBackfill alloc policy. I think that my problem will be solved by moving the gui.properties file somewhere else - please tell me where? Or the best solution would be - show me a simple code that runs the visualization :-) Thanks, Dalibor |