CoreProtect

CoreProtect

1M Downloads

random error spams on console (im using 1.21.3)

shpellar opened this issue ยท 10 comments

commented

java.io.NotSerializableException: org.bukkit.craftbukkit.attribute.CraftAttribute
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1200)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[03:06:47 WARN]: at java.base/java.util.ArrayList.writeObject(ArrayList.java:948)
[03:06:47 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[03:06:47 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[03:06:47 WARN]: at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1072)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[03:06:47 WARN]: at java.base/java.util.ArrayList.writeObject(ArrayList.java:948)
[03:06:47 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[03:06:47 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[03:06:47 WARN]: at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1072)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[03:06:47 WARN]: at java.base/java.util.ArrayList.writeObject(ArrayList.java:948)
[03:06:47 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[03:06:47 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[03:06:47 WARN]: at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1072)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194)
[03:06:47 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.database.statement.EntityStatement.insert(EntityStatement.java:28)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.database.logger.EntityKillLogger.log(EntityKillLogger.java:50)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.consumer.process.EntityKillProcess.process(EntityKillProcess.java:24)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:206)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[03:06:47 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
[03:06:47 WARN]: java.lang.NullPointerException: Cannot invoke "java.sql.ResultSet.next()" because "resultSet" is null
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.database.logger.EntityKillLogger.log(EntityKillLogger.java:52)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.consumer.process.EntityKillProcess.process(EntityKillProcess.java:24)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:206)
[03:06:47 WARN]: at CoreProtect-CE-23.0-RC1b.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[03:06:47 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)

commented

Getting the same error, will try building myself later today to check if the commit solves the problem

commented

Getting the same error 1.21.4
Version: 22.4

commented

Haven't got the energy to compile the plugin myself to test it, but just saw commit b3db65d. Sounds like it fixes it, I don't believe there's any releases since that commit so good chance that the new version just needs to be released.

Also I have very little experience with Minecraft modding/plugins nor do I know the structure of this project at all so I have no clue if it's even related.

commented

So i can confirm building the latest master commit does resolve this issue, my console is not giving me any errors anymore.

commented

Haven't got the energy to compile the plugin myself to test it, but just saw commit b3db65d. Sounds like it fixes it, I don't believe there's any releases since that commit so good chance that the new version just needs to be released.

Also I have very little experience with Minecraft modding/plugins nor do I know the structure of this project at all so I have no clue if it's even related.

mm, i late, but you can build the project using maven, in action in build writed, what written from build

commented

Getting the same error

commented

Compiled myself from the repository itself, looks like this was an issue with the May 2024 release with 1.21

commented

So compiling it from source solves the issue?

commented

So compiling it from source solves the issue?

Yup seems so, latest builds support the new changes in 1.21 including breeze wind charge explosions