ipeaGIT / r5r

https://ipeagit.github.io/r5r/
Other
178 stars 27 forks source link

Error in .jcall("RJavaTools", "Z", "hasField", .jcast(x, "java/lang/Object"), : java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "<parameter1>" is null #399

Open luyuliu opened 2 hours ago

luyuliu commented 2 hours ago

Sorry for raising the same issue again; I read the same issue posted several months ago, but I am experiencing exactly the same when setting up a new environment here in a new machine.

Using pbf directly downloaded from Geofabrik and an official GTFS files from Columbus. No network file created despite outputting "Finished building network.dat at xxx/network.dat". pbf.mapdb and pbf.mapdb.p files are created though.

I tried both the stable version and the dev version, both giving me the same message. But the test data and code works. No idea how it happened. Attaching environment for reference:

$r5r_package_version [1] ‘2.0’

$r5_jar_version [1] "7.1"

$java_version [1] "21.0.4"

$set_memory [1] "-Xmx32G"

$session_info R version 4.4.1 (2024-06-14 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows 11 x64 (build 22631)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 [4] LC_NUMERIC=C LC_TIME=English_United States.utf8

time zone: America/Chicago tzcode source: internal

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] r5r_2.0 rJava_1.0-11

loaded via a namespace (and not attached): [1] compiler_4.4.1 backports_1.5.0 tools_4.4.1 data.table_1.16.0 checkmate_2.3.2

luyuliu commented 2 hours ago

Tried Florida and Miami GTFS. Problem persists.

luyuliu commented 2 hours ago

Java version: openjdk 21.0.4 2024-07-16 LTS OpenJDK Runtime Environment Microsoft-9889606 (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Microsoft-9889606 (build 21.0.4+7-LTS, mixed mode, sharing)