TabooLib / taboolib

Powerful framework for creating multi-platform Minecraft plugin
https://tabooproject.org
MIT License
313 stars 100 forks source link

玩家数据库 模块的依赖存在问题 #388

Closed xiaoyv404 closed 11 months ago

xiaoyv404 commented 11 months ago

问题信息

CatServer自动下载最新的slf4j-api 版本 2.1.0-alpha0 没办法正确加载LoggerFactory java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory HikariConfig运行出错

虽然应该是上游的问题,不过应该更新依赖版本是可行的(未测试)

日志

[09:06:59] [Server thread/INFO]: [MCGUserGUI] Enabling MCGUserGUI v1.0.21
[09:06:59] [Server thread/ERROR]: Error occurred while enabling MCGUserGUI v1.0.21 (Is it up to date?)
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
    at com.zaxxer.hikari_4_0_3.HikariConfig.<clinit>(HikariConfig.java:51) ~[?:?]
    at moe.gensoukyo.gui.taboolib.module.database.Database.createDataSource(Database.kt:31) ~[?:?]
    at moe.gensoukyo.gui.taboolib.module.database.Database.createDataSource$default(Database.kt:30) ~[?:?]
    at moe.gensoukyo.gui.taboolib.module.database.Host.createDataSource(Host.kt:24) ~[?:?]
    at moe.gensoukyo.gui.taboolib.module.database.Host.createDataSource$default(Host.kt:23) ~[?:?]
    at moe.gensoukyo.gui.taboolib.expansion.Database.<init>(Database.kt:6) ~[?:?]
    at moe.gensoukyo.gui.taboolib.expansion.DatabaseHandlerKt.setupPlayerDatabase(DatabaseHandler.kt:53) ~[?:?]
    at moe.gensoukyo.gui.MCGUserGUI.onEnable(MCGUserGUI.kt:14) ~[?:?]
    at moe.gensoukyo.gui.taboolib.platform.BukkitPlugin.onEnable(BukkitPlugin.java:124) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[JavaPlugin.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:328) [JavaPluginLoader.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [SimplePluginManager.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:438) [CraftServer.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:384) [CraftServer.class:git-CatServer-1.12.2-090a6ffb]
    at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:383) [MinecraftServer.class:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:330) [nz.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:636) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:750) [?:1.8.0_392]
Caused by: java.lang.ClassNotFoundException: Failed to remap class org.slf4j.LoggerFactory
    at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:231) ~[PluginClassLoader.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:129) ~[PluginClassLoader.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-090a6ffb]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[?:1.8.0_392]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_392]
    ... 18 more
Caused by: java.lang.IllegalArgumentException
    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:185) ~[asm-debug-all-5.2.jar:5.2]
    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:168) ~[asm-debug-all-5.2.jar:5.2]
    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:439) ~[asm-debug-all-5.2.jar:5.2]
    at net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:228) ~[JarRemapper.class:?]
    at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:196) ~[PluginClassLoader.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:129) ~[PluginClassLoader.class:git-CatServer-1.12.2-090a6ffb]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-090a6ffb]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[?:1.8.0_392]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_392]
    ... 18 more

版本信息

服务器: CatServer-090a6ffb-universal taboolib version 6.0.12-56

modules

xiaoyv404 commented 11 months ago

repaired on commit

nice job!