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

warning that nothing works #1

Closed
osp54 opened this issue Dec 30, 2022 · 1 comment
Closed

warning that nothing works #1

osp54 opened this issue Dec 30, 2022 · 1 comment

Comments

@osp54
Copy link

osp54 commented Dec 30, 2022

30, 2022 6:25:46 �� com.caucho.hessian.io.SerializerFactory getDeserializer
WARNING: Hessian/Burlap: 'org.xcore.plugin.comp.Database$PlayerData' is an unknown class in jdk.internal.loader.ClassLoaders$AppClassLoader@2a139a55:

public class PlayerData extends QuickIO.Object {
    public String uuid;
    public Integer wins = 0;

    public PlayerData(String uuid) {
        this.uuid = uuid;
    }

    public PlayerData(String uuid, Integer wins) {
        this.uuid = uuid;
        this.wins = wins;
    }
}

var data = db.findFirst(PlayerData.class, p -> p.uuid.equals(uuid));

@artbits
Copy link
Owner

artbits commented Dec 31, 2022

Cause:

After you use the PlayerData class to store data, have you modified the directory path of the PlayerData class? If there are modifications, this warning will appear.

QuickIO internally uses the Hessian library for data serialization, and Hessian records the package name of the Java bean. If you modify the directory path of Java beans, After byte[] is converted to object, the original Java bean cannot be found, which causes Hessian to record the field data in HashMap, and finally the data cannot be transferred to the new Java bean.
In short, the original data still exists, but cannot be extracted.

Resolvent:

  1. After creating a Java bean, try not to modify its directory.
  2. Later, I will consider adding a data repairer to repair the Java bean data in the original directory.

@osp54 osp54 closed this as completed Dec 31, 2022
artbits pushed a commit that referenced this issue Feb 27, 2023
Replace the serialization library.
Problem solved (#1).
artbits pushed a commit that referenced this issue Mar 25, 2023
Replace the serialization library.
Problem solved (#1).
artbits added a commit that referenced this issue Mar 25, 2023
Replace the serialization library.
Problem solved (#1).
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