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

Error on Mac - DB Open Database reading "Java.lang.nullpointerexception" #434

Open
josephinehenze opened this issue Jun 3, 2024 · 1 comment

Comments

@josephinehenze
Copy link

josephinehenze commented Jun 3, 2024

Hello!
After using GCAM successfully for a few months this past week it is not opening correctly.

I am running a Mac M1 processor with Sonoma 14.5 (which was updated within the last two months) and Java 21.0.2 and the ModelInterface will not open and is running the Java error "java.lang.nullpointerexception" when I try to link DB Open to the Database from the Output folder. This is the GCAM v6.0 with the ModelInterface from v5.4.

I have tried downloading Java and GCAM (different versions from 5.4 to 6) again and installing everything new and the error continues to persist. We have also tried this on a Mac with an Intel processor that has never used GCAM before and the same error occurs. I have tried removing it from the cloud and running it as well, the same error results.

Screenshot 2024-05-27 at 11 44 17

Additionally, when trying to run "run.gcam.command" in the newly downloaded GCAM 6.0 versions, it additionally reaches an error and does not move forward. Are there any plans for new Mac architectures for GCAM v.6?

I receive this code in the terminal:
dyld[23463]: Library not loaded: @rpath/libjvm.dylib
Referenced from: /Users/josephinehenze/Library/CloudStorage/OneDrive-Nexus365/Dissertation/GCAM Software/gcam-v6-new/exe/Release/gcam
Reason: tried: '../libs/java/lib/libjvm.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '../libs/boost-lib/stage/lib/libjvm.dylib' (no such file), '../libs/libjvm.dylib' (no such file), '../libs/tbb/lib/libjvm.dylib' (no such file), '../libs/java/lib/libjvm.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '../libs/boost-lib/stage/lib/libjvm.dylib' (no such file), '../libs/libjvm.dylib' (no such file), '../libs/tbb/lib/libjvm.dylib' (no such file), '/usr/local/lib/libjvm.dylib' (no such file), '/usr/lib/libjvm.dylib' (no such file, not in dyld cache)
/Users/josephinehenze/Library/CloudStorage/OneDrive-Nexus365/Dissertation/GCAM Software/gcam-v6-new/exe/run-gcam.command: line 42: 23463 Abort trap: 6 ./Release/gcam -C configuration.xml

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

Thank you for the help!

@josephinehenze josephinehenze changed the title DB Open Database reading "Java.lang.nullpointerexception" Error on Mac - DB Open Database reading "Java.lang.nullpointerexception" Jun 3, 2024
@climate-change-ucsb
Copy link

Maybe you can try:
At the home directory of Mac, delete the ./Modelinterface.properties file

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

2 participants