Java NullPointerException for new version with JDK 21 for Mac
higgicd opened this issue · 1 comments
Hi all - sorry in advance for tamping on the excitement with the move to the new Java SDK this week. I know I was hoping this might resolve M-series Mac-related issues like #315 (which indeed it does - the package loads and network now builds fine!) but hitting into the following error when running a detailed_itineraries
on my M2 MacBook Pro:
Error in .jcall("RJavaTools", "Z", "hasField", .jcast(x, "java/lang/Object"), :
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "<parameter1>" is null
I can confirm r5r_sitrep
's key packages are:
$r5r_package_version
[1] ‘1.1.999’
$r5_jar_version
[1] "7.0"
$java_version
[1] "21.0.1"
$set_memory
[1] "-Xmx8G"
$session_info
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.1.1
Many thanks in advance for this excellent game-changer of a package!
Hmm this seems to be related to the GTFS files themselves rather than the package, jar, or java. I don't really know why, but a particular GTFS file triggers this error despite the network building properly from scratch. Re-downloading the .zip
files solved the issue. I'm happy to say I think this can be closed.