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

Plugin will spam errors if custom api server is used #57

Open
Fjox opened this issue Nov 25, 2024 · 0 comments
Open

Plugin will spam errors if custom api server is used #57

Fjox opened this issue Nov 25, 2024 · 0 comments

Comments

@Fjox
Copy link

Fjox commented Nov 25, 2024

Compiled with java17 with "gradlew build"
custom api server= ollama (llama3.2)

java.lang.NoClassDefFoundError: Could not initialize class net.bigyous.gptgodmc.utils.GPTUtils
        at net.bigyous.gptgodmc.loggables.BaseLoggable.getTokens(BaseLoggable.java:47) ~[gptgodmc-0.1.7-java17.jar:?]
        at net.bigyous.gptgodmc.EventLogger.addLoggable(EventLogger.java:31) ~[gptgodmc-0.1.7-java17.jar:?]
        at net.bigyous.gptgodmc.LoggableEventHandler.onCombust(LoggableEventHandler.java:159) ~[gptgodmc-0.1.7-java17.jar:?]
        at com.destroystokyo.paper.event.executor.StaticMethodHandleEventExecutor.execute(StaticMethodHandleEventExecutor.java:39) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:git-Purpur-2176]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.world.entity.Entity.setSecondsOnFire(Entity.java:1006) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.world.entity.Entity.setSecondsOnFire(Entity.java:1000) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3646) ~[?:?]
        at net.minecraft.world.entity.Mob.aiStep(Mob.java:707) ~[?:?]
        at net.minecraft.world.entity.monster.Monster.aiStep(Monster.java:45) ~[?:?]
        at net.minecraft.world.entity.monster.Zombie.aiStep(Zombie.java:306) ~[?:?]
        at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3157) ~[?:?]
        at net.minecraft.world.entity.Mob.tick(Mob.java:463) ~[?:?]
        at net.minecraft.world.entity.monster.Zombie.tick(Zombie.java:299) ~[?:?]
        at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1492) ~[?:?]
        at net.minecraft.server.level.ServerLevel.lambda$tick$8(ServerLevel.java:940) ~[?:?]
        at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:42) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:917) ~[?:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1759) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:487) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1558) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1246) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.4.jar:git-Purpur-2176]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: com/knuddels/jtokkit/Encodings [in thread "Server thread"]
        at net.bigyous.gptgodmc.utils.GPTUtils.<clinit>(GPTUtils.java:13) ~[gptgodmc-0.1.7-java17.jar:?]
        at net.bigyous.gptgodmc.loggables.BaseLoggable.getTokens(BaseLoggable.java:47) ~[gptgodmc-0.1.7-java17.jar:?]
        at net.bigyous.gptgodmc.EventLogger.addLoggable(EventLogger.java:42) ~[gptgodmc-0.1.7-java17.jar:?]
        ... 26 more```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant