Skip to content

Cannot access defaults field of Properties #1

@inadquatecoding

Description

@inadquatecoding

Running Windows 11 with Java 1.8.0_301. I tried updating the XStream file myself but not sure of the directory, This simulator ran fine on another computer running Windows 10 though. The repo seems to be bundled with XStream 1.3.1 and the current version is 1.4.18.

Exception in thread "main" java.lang.ExceptionInInitializerError: Cannot access defaults field of Properties
        at com.thoughtworks.xstream.converters.collections.PropertiesConverter.<clinit>(PropertiesConverter.java:46)
        at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:647)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:445)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:385)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:332)
        at com.client.Client.<clinit>(Client.java:7513)
        at com.client.Main.main(Main.java:8)

I located the XSream jars in the directory .\Jad-Practice\lib\ but there are 2 files there and I replaced xstream-1.3.1,jar with 1.4.18 but the issues still occured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions