You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.bukkit.command.CommandException: Unhandled exception executing command 'pg' in plugin PGUtils v1.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:887) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:50) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.2.9.jar:?]
at net.minecraft.commands.execution.tasks.ExecuteCommand.a(SourceFile:29) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(SourceFile:13) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.commands.execution.UnboundEntryAction.a(SourceFile:8) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.commands.execution.CommandQueueEntry.a(SourceFile:8) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.commands.execution.ExecutionContext.a(SourceFile:107) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:413) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:335) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:322) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1856) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.network.PlayerConnection.lambda$15(PlayerConnection.java:1818) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.util.thread.IAsyncTaskHandler.b(SourceFile:67) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:156) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1191) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.util.thread.IAsyncTaskHandler.x(SourceFile:130) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.MinecraftServer.bl(MinecraftServer.java:1170) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1163) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:139) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.MinecraftServer.w_(MinecraftServer.java:1147) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1060) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4046-Spigot-c198da2-38fd4bd]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: com.nivixx.ndatabase.api.exception.DatabaseCreationException: Failed to resolve nEntity index paths
at com.nivixx.ndatabase.core.RepositoryManager.getOrCreateRepository(RepositoryManager.java:57) ~[?:?]
at com.nivixx.ndatabase.core.NDatabaseAPIImpl.getOrCreateRepository(NDatabaseAPIImpl.java:20) ~[?:?]
at com.github.pgutils.entities.service.LobbyService.saveLobby(LobbyService.java:19) ~[?:?]
at com.github.pgutils.utils.UltimateUtilsX.createLobby(UltimateUtilsX.java:27) ~[?:?]
at com.github.pgutils.commands.all.LobbyCommand.execute(LobbyCommand.java:86) ~[?:?]
at com.github.pgutils.commands.PGUtilsCommand.onCommand(PGUtilsCommand.java:47) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
... 29 more
Caused by: java.lang.NoSuchMethodException: org.bukkit.Location.<init>()
at java.lang.Class.getConstructor0(Class.java:3585) ~[?:?]
at java.lang.Class.getDeclaredConstructor(Class.java:2754) ~[?:?]
at com.nivixx.ndatabase.core.reflection.NReflectionUtil.resolveIndexedFieldsFromEntity(NReflectionUtil.java:50) ~[?:?]
at com.nivixx.ndatabase.core.RepositoryManager.getOrCreateRepository(RepositoryManager.java:55) ~[?:?]
at com.nivixx.ndatabase.core.NDatabaseAPIImpl.getOrCreateRepository(NDatabaseAPIImpl.java:20) ~[?:?]
at com.github.pgutils.entities.service.LobbyService.saveLobby(LobbyService.java:19) ~[?:?]
at com.github.pgutils.utils.UltimateUtilsX.createLobby(UltimateUtilsX.java:27) ~[?:?]
at com.github.pgutils.commands.all.LobbyCommand.execute(LobbyCommand.java:86) ~[?:?]
at com.github.pgutils.commands.PGUtilsCommand.onCommand(PGUtilsCommand.java:47) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
... 29 more
It seems like it's trying to get an instance of a non-existent constructor, but I can't figure out a way to fix it.
The text was updated successfully, but these errors were encountered:
Hello, thank you for sharing all the details.
I have been able to reproduce the problem and did a fix for that !
Note that if you need to index bukkit related domain object, the best approach is to create your own DTO (as you can use the Index annotation) and do a mapper to convert your DTO object to Bukkit.
This approach also avoid having dependency between your data layer and bukkit API
I had a problem while trying to serialize org.bukkit.Location
The serializer
The deserializer
I use this:
This is what I get when I run:
It seems like it's trying to get an instance of a non-existent constructor, but I can't figure out a way to fix it.
The text was updated successfully, but these errors were encountered: