Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java NullPointerException for new version with JDK 21 for Mac #360

Closed
higgicd opened this issue Dec 4, 2023 · 1 comment
Closed

Java NullPointerException for new version with JDK 21 for Mac #360

higgicd opened this issue Dec 4, 2023 · 1 comment

Comments

@higgicd
Copy link

higgicd commented Dec 4, 2023

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!

@higgicd
Copy link
Author

higgicd commented Dec 4, 2023

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.

@higgicd higgicd closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant