Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor is at illegal position #82

Open
Gamebuster19901 opened this issue Jan 5, 2021 · 0 comments
Open

Cursor is at illegal position #82

Gamebuster19901 opened this issue Jan 5, 2021 · 0 comments
Assignees
Labels
Category - Bug Something isn't working Priority - Normal ↓ Normal priority

Comments

@Gamebuster19901
Copy link
Member

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category - Bug Something isn't working Priority - Normal ↓ Normal priority
Projects
None yet
Development

No branches or pull requests

1 participant