Print

Print


java.lang.NullPointerException
at sim.app.geo.gridlock.Gridlock.populate(Gridlock.java:221)
at sim.app.geo.gridlock.Gridlock.start(Gridlock.java:143)
at sim.engine.SimState$2.run(SimState.java:613)
at java.lang.Thread.run(Unknown Source)


I changed the system.out.prntln statement to

e.printStackTrace();


otherwise it would have been a nonhandled exception error


roads_points_place.csv is not included in geomason_demos archive file at the moment


________________________________
From: MASON Multiagent Simulation Toolkit <[log in to unmask]> on behalf of Sean Luke <[log in to unmask]>
Sent: Monday, May 29, 2017 9:38:35 AM
To: [log in to unmask]
Subject: Re: GEO Mason, gridlock error

On May 28, 2017, at 11:57 PM, Jonathan M West <[log in to unmask]> wrote:

> I am getting a null pointer exception when trying to run gridlock in Windows 10 with Eclipse.

Unfortunately, we don't see the backtrace on that exception.  If you have access to the code, change lines 284 to 287 of Gridlock.java to:

        } // catch (Exception e)
        // {
        //    System.out.println("ERROR: issue with population file: " + e);
        // }

... recompile and re-run.  Tell us what the backtrace printed out says.

At any rate, my first guess is that the file "data/roads_points_place.csv" is missing or for some reason in the wrong place.

Sean