Closed jamesdeweese closed 4 years ago
Hi @jamesdeweese,
It looks like you were running R5 (without required arguments). To run analysis (instead of R5) with the latest release, the command would be java -cp target/shaded/v5.9.0.jar com.conveyal.analysis.BackendMain
-- the Readme should be updated with this command.
I haven't set this up locally from scratch in a while. You may find some of the troubleshooting by others at #245 helpful.
I'm trying to set up and test a local instance of Conveyal on my MacBook. When launching the v5.9.0-3-g08bf467.jar compiled from the most recent GitHub version, I get an out-of-bounds error that I can't figure out.
I built the jar using the most recent version of maven with the command "maven package". It appears to have compiled properly with the v5.9.0-3-g08bf467.jar showing up in the target/shared folder. When I try to launch the .jar with the command: java -Xmx2g -jar target/shaded/v5.9.0-3-g08bf467.jar, I get the following error message:
[jamesdeweese@MacBook-Pro-2 analysis-backend % java -Xmx2g -jar target/shaded/v5.9.0-3-g08bf467.jar
/\\\\___/\\\\\\\_
/\\///////\__\/\\///////////_
\/\_\/\__\/\___
\/\\\\\\/____\/\\\\\\
\/\\//////\_\////////////\_
\/\__\//\______\//\_
\/\__\//\\/\_\/\_
\/\_____\//\_\//\\\\\\\/ \///\///_\/////////////___
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at com.conveyal.r5.R5Main.main(R5Main.java:27)
Edit: (The hashmarks above spell out a cool-looking 3-D-esque "RS" in the terminal, but the tabs are lost in this post).
I was reluctant to post because I wasn't sure if this was the result of a mistake I made or an actual problem with the code. But I've gone back over everything several times, checking to make sure my mongodb instance was properly installed and running, that I used the right version of maven to build the jar and that the Java version is correct. (I did have to upgrade from Java 8, which I was using for OTP, to Java 11, to correct a problem with classes from the newer compiler not working on the older version of Java.)