Skip to content

Cursor is at illegal position #82

@Gamebuster19901

Description

@Gamebuster19901

The following stacktrace appears when a user executes a command sometimes. It doesn't seem to affect the bot though.

java.lang.IndexOutOfBoundsException: Cursor is at illegal position 5 (length 4)
	at com.gamebuster19901.excite.bot.database.Result.getRow(Result.java:34)
	at com.gamebuster19901.excite.bot.database.Result.getRow(Result.java:38)
	at com.gamebuster19901.excite.bot.database.Result.getLong(Result.java:84)
	at com.gamebuster19901.excite.bot.user.DiscordUser.<init>(DiscordUser.java:53)
	at com.gamebuster19901.excite.bot.user.DiscordUser.getAllAdmins(DiscordUser.java:584)
	at com.gamebuster19901.excite.bot.user.DiscordUser.messageAllAdmins(DiscordUser.java:563)
	at com.gamebuster19901.excite.bot.command.StopCommand.stop(StopCommand.java:21)
	at com.gamebuster19901.excite.bot.command.StopCommand.lambda$0(StopCommand.java:12)
	at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262)
	at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176)
	at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:141)
	at com.gamebuster19901.excite.bot.command.Commands.handleCommand(Commands.java:76)
	at com.gamebuster19901.excite.bot.EventReceiver.onGuildMessageReceived(EventReceiver.java:18)
	at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:396)
	at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96)
	at net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:82)
	at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:69)
	at net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:152)
	at net.dv8tion.jda.internal.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:97)
	at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36)
	at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:954)
	at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:841)
	at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:819)
	at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:992)
	at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385)
	at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276)
	at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996)
	at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755)
	at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
	at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
	at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions