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

ArrayIndexOutOfBoundsException in command autocompletion #119

Closed
mvolotov opened this issue Sep 24, 2021 · 0 comments
Closed

ArrayIndexOutOfBoundsException in command autocompletion #119

mvolotov opened this issue Sep 24, 2021 · 0 comments
Labels
🚨 bug Something isn't working ✔ fixed This issue has been fixed in the latest build

Comments

@mvolotov
Copy link

Velocity 3.0.1
Backend server: Paper 1.16.5#768

The following errors appear when entering commands in the console. They are generated every time it tries to execute autocompletion in the game.

[15:35:56 ERROR]: Arguments node cannot provide suggestions
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
        at me.xneox.epicguard.core.command.CommandHandler.handleSuggestions(CommandHandler.java:82) ~[?:?]
        at me.xneox.epicguard.velocity.VelocityCommandHandler.suggest(VelocityCommandHandler.java:35) ~[?:?]
        at me.xneox.epicguard.velocity.VelocityCommandHandler.suggest(VelocityCommandHandler.java:23) ~[?:?]
        at com.velocitypowered.api.command.InvocableCommand.suggestAsync(InvocableCommand.java:51) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$5(InvocableCommandRegistrar.java:106) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.command.brigadier.VelocityArgumentCommandNode.listSuggestions(VelocityArgumentCommandNode.java:88) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.command.SuggestionsProvider.getArgumentsNodeSuggestions(SuggestionsProvider.java:261) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.command.SuggestionsProvider.provideArgumentsSuggestions(SuggestionsProvider.java:230) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.command.SuggestionsProvider.provideSuggestions(SuggestionsProvider.java:111) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.command.SuggestionsProvider.provideSuggestions(SuggestionsProvider.java:84) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.command.VelocityCommandManager.offerSuggestions(VelocityCommandManager.java:229) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.connection.client.ClientPlaySessionHandler.handleCommandTabComplete(ClientPlaySessionHandler.java:490) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.connection.client.ClientPlaySessionHandler.handle(ClientPlaySessionHandler.java:200) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.protocol.packet.TabCompleteRequest.handle(TabCompleteRequest.java:140) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.connection.MinecraftConnection.channelRead(MinecraftConnection.java:142) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.tryDecode(MinecraftDecoder.java:89) ~[server.jar:3.0.1]
        at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.channelRead(MinecraftDecoder.java:58) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[server.jar:3.0.1]
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[server.jar:3.0.1]
        at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[server.jar:3.0.1]
        at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) ~[server.jar:3.0.1]
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[server.jar:3.0.1]
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[server.jar:3.0.1]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[server.jar:3.0.1]
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[server.jar:3.0.1]
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[server.jar:3.0.1]
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) ~[server.jar:3.0.1]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) ~[server.jar:3.0.1]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) ~[server.jar:3.0.1]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[server.jar:3.0.1]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[server.jar:3.0.1]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[server.jar:3.0.1]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[server.jar:3.0.1]
        at java.lang.Thread.run(Thread.java:831) [?:?]```
@awumii awumii added the 🚨 bug Something isn't working label Sep 25, 2021
@awumii awumii closed this as completed in ee4ad42 Sep 25, 2021
@awumii awumii added the ✔ fixed This issue has been fixed in the latest build label Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚨 bug Something isn't working ✔ fixed This issue has been fixed in the latest build
Projects
None yet
Development

No branches or pull requests

2 participants