PP does not open portfolio files anymore

Hi!
I cannot open my portfolio file or the Kommer example anymore. I get to the password screen and it detects wrong passwords but nothing happens on a correct password. I can create a completely new portfolio file.

I did delete .eclipse and .ProtfolioPerformance with no change.

There seems to be an execption on the console (see below).

Version: 0.55.0 (Sept. 2021)
Platform: linux, x86_64
Java: 17+35, Oracle Corporation
OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=permit; support was removed in 17.0
WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
Exception in thread "Thread-5" java.lang.NoClassDefFoundError: Could not initialize class com.thoughtworks.xstream.converters.collections.TreeMapConverter
        at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:820)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:350)
        at name.abuchen.portfolio.model.ClientFactory.xstream(ClientFactory.java:1178)
        at name.abuchen.portfolio.model.ClientFactory.access$0(ClientFactory.java:1174)
        at name.abuchen.portfolio.model.ClientFactory$XmlSerialization.load(ClientFactory.java:104)
        at name.abuchen.portfolio.model.ClientFactory$Decryptor.load(ClientFactory.java:274)
        at name.abuchen.portfolio.model.ClientFactory.load(ClientFactory.java:415)
        at name.abuchen.portfolio.ui.editor.LoadClientThread.run(LoadClientThread.java:34)

Thanks for helping out!
Flo

1 Like

It doesn’t currently work with Java 17. So, either switch to an older Java or wait for the next release.

Just for reference: Most OSes allow to change the default Java version on the fly. Here is how you can change it in Arch Linux, run PP, and change it back.

 sudo archlinux-java set java-11-openjdk; PortfolioPerformance; sudo archlinux-java set java-17-openjdk