MASON-INTEREST-L Archives

May 2017

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jonathan M West <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Mon, 29 May 2017 18:06:53 +0000
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (1349 bytes) , text/html (3068 bytes)
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


ATOM RSS1 RSS2