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 NotSerializableException in CraftVillager$CraftProfession #596

Closed
gaetanse opened this issue Jul 26, 2024 · 2 comments
Closed

Warning NotSerializableException in CraftVillager$CraftProfession #596

gaetanse opened this issue Jul 26, 2024 · 2 comments

Comments

@gaetanse
Copy link

Hi, i just have a warning in my log :

[02:29:46 WARN]: java.io.NotSerializableException: org.bukkit.craftbukkit.entity.CraftVillager$CraftProfession
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1200)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[02:29:46 WARN]: at java.base/java.util.ArrayList.writeObject(ArrayList.java:948)
[02:29:46 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[02:29:46 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[02:29:46 WARN]: at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1072)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[02:29:46 WARN]: at java.base/java.util.ArrayList.writeObject(ArrayList.java:948)
[02:29:46 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[02:29:46 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[02:29:46 WARN]: at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1072)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194)
[02:29:46 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.database.statement.EntityStatement.insert(EntityStatement.java:27)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.database.logger.EntityKillLogger.log(EntityKillLogger.java:49)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.EntityKillProcess.process(EntityKillProcess.java:24)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:205)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[02:29:46 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
[02:29:46 WARN]: java.lang.NullPointerException: Cannot invoke "java.sql.ResultSet.next()" because "resultSet" is null
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.database.logger.EntityKillLogger.log(EntityKillLogger.java:51)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.EntityKillProcess.process(EntityKillProcess.java:24)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:205)
[02:29:46 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[02:29:46 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)

For information i have use all of this :

Plugins:
FancyHolograms, AntiCreeper, ATopPlayers, CoreProtect, dynmap, Dynmap-GriefPrevention, Essentials, EssentialsChat, EssentialsSpawn, GriefPrevention, LoginSecurity, LuckPerms, Maintenance, SkinsRestorer, Vault

Using paper-1.21-109

@Skullians
Copy link

Skullians commented Jul 26, 2024

You are using an outdated version of CoreProtect that does not support 1.21, v23 solves this issue.
To currently get v23, you must either be a Patron or you can compile the plugin manually through the GitHub for free.

@gaetanse
Copy link
Author

Thanks for the answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants