an error was happened when im trying use coreprotect

jbhkgkug

New member
Apr 29, 2024
3
0
1
I installed CoreProtect for my server to prevent it from being destroyed. But when I use the command "/co rollback <a player's name here> time:5m" (meaning restore everything the player has destroyed in the last 5 minutes) for 4 times, the destroyed thing is restored successfully, but the server's control table gives these error messages:

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

the server version is paper-1.21.1-52, and i installed jdk 22 to run it.
 

Attachments

  • 新建 文本文档.txt
    7.7 KB · Views: 2