portfolio-performance / portfolio

Track and evaluate the performance of your investment portfolio across stocks, cryptocurrencies, and other assets.
http://www.portfolio-performance.info
Eclipse Public License 1.0
2.75k stars 577 forks source link

Cannot invoke "java.time.instant.getEpochSecond()" because "instant" is null #4094

Open yxw opened 1 week ago

yxw commented 1 week ago

Describe the bug

When save as binary, I ran into Cannot invoke "java.time.instant.getEpochSecond()" because "instant" is null error.

To Reproduce Steps to reproduce the behavior: File -> Save as -> Binary

Expected behavior

I should be able to export my current portfolio to a binary file (so that I can import it from the newly released iOS app).

Screenshots

Screenshot 2024-06-23 at 5 25 15 PM

Desktop (please complete the following information):

Sn1kk3r5 commented 6 days ago

Which Java Version are you using?

yxw commented 3 days ago

Java 17 I believe

$> java --version
which javajava 17.0.7 2023-04-18 LTS
Java(TM) SE Runtime Environment (build 17.0.7+8-LTS-224)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.7+8-LTS-224, mixed mode, sharing)
yxw commented 3 days ago

maybe PP is not using my Java 17 which I installed with sdkman.

$>  /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
    1.8.0_232 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 8" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

$> which java
/Users/willyang/.sdkman/candidates/java/current/bin/java

$> echo $JAVA_HOME
/Users/willyang/.sdkman/candidates/java/current

Which Java version should be used to run PP ?

Sn1kk3r5 commented 3 days ago

@yxw

PP runs on Java 17