Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Velocity error in console #4

Open
msmanui opened this issue Mar 26, 2024 · 0 comments
Open

Velocity error in console #4

msmanui opened this issue Mar 26, 2024 · 0 comments

Comments

@msmanui
Copy link

msmanui commented Mar 26, 2024

I dont how exactly how to reproduce but sometimes i see this error in console

[08:12:09 WARN] [com.github.retrooper.packetevents.PacketEventsAPI]: PacketEvents caught an unhandled exception while calling your listener.
com.google.gson.JsonIOException: Interfaces can't be instantiated! Register an InstanceCreator or a TypeAdapter for this type. Interface name: net.kyori.adventure.text.Component
        at com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:136) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.createAccumulator(ReflectiveTypeAdapterFactory.java:427) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:383) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.google.gson.Gson.fromJson(Gson.java:1227) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.google.gson.Gson.fromJson(Gson.java:1137) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.google.gson.Gson.fromJson(Gson.java:1047) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.google.gson.Gson.fromJson(Gson.java:982) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.github.retrooper.packetevents.util.adventure.GsonComponentSerializerExtended.deserialize(GsonComponentSerializerExtended.java:87) ~[?:?]
        at com.github.retrooper.packetevents.util.adventure.GsonComponentSerializerExtended.deserialize(GsonComponentSerializerExtended.java:43) ~[?:?]
        at net.kyori.adventure.text.serializer.ComponentDecoder.deserializeOr(ComponentDecoder.java:78) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at net.kyori.adventure.text.serializer.ComponentSerializer.deserializeOrNull(ComponentSerializer.java:80) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.github.retrooper.packetevents.util.adventure.AdventureSerializer.parseComponent(AdventureSerializer.java:67) ~[?:?]
        at com.github.retrooper.packetevents.wrapper.PacketWrapper.readComponentAsJSON(PacketWrapper.java:532) ~[?:?]
        at com.github.retrooper.packetevents.wrapper.PacketWrapper.readComponent(PacketWrapper.java:519) ~[?:?]
        at com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerServerData.read(WrapperPlayServerServerData.java:59) ~[?:?]
        at com.github.retrooper.packetevents.wrapper.PacketWrapper.readEvent(PacketWrapper.java:233) ~[?:?]
        at com.github.retrooper.packetevents.wrapper.PacketWrapper.<init>(PacketWrapper.java:143) ~[?:?]
        at com.github.retrooper.packetevents.wrapper.PacketWrapper.<init>(PacketWrapper.java:133) ~[?:?]
        at com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerServerData.<init>(WrapperPlayServerServerData.java:41) ~[?:?]
        at io.github._4drian3d.signedvelocity.velocity.packet.PacketEventsAdapter$DataListener.onPacketSend(PacketEventsAdapter.java:25) ~[?:?]
        at com.github.retrooper.packetevents.event.PacketListener$1.onPacketSend(PacketListener.java:46) ~[?:?]
        at com.github.retrooper.packetevents.event.PacketSendEvent.call(PacketSendEvent.java:51) ~[?:?]
        at com.github.retrooper.packetevents.event.EventManager.callEvent(EventManager.java:52) ~[?:?]
        at io.github.retrooper.packetevents.handlers.PacketEventsEncoder.read(PacketEventsEncoder.java:46) ~[?:?]
        at io.github.retrooper.packetevents.handlers.PacketEventsEncoder.encode(PacketEventsEncoder.java:65) ~[?:?]
        at io.github.retrooper.packetevents.handlers.PacketEventsEncoder.encode(PacketEventsEncoder.java:32) ~[?:?]
        at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:893) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:875) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:984) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:868) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:113) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:893) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:956) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:982) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:950) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1020) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:311) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.velocitypowered.proxy.connection.MinecraftConnection.write(MinecraftConnection.java:235) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at com.velocitypowered.proxy.connection.backend.BackendPlaySessionHandler.lambda$handle$7(BackendPlaySessionHandler.java:348) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
        at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:413) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity-3.3.0-SNAPSHOT-370.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
        at java.base/java.lang.Thread.run(Thread.java:833) [?:?]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant