Skip to content

[问题] TrChat2.4.2无法在velocity中加载 #548

@omiyocn

Description

@omiyocn

是否已尝试最新的版本

  • 我已更新 TrChat 至最新的版本, 并且同样复现该问题.

是否已查阅 Wiki

  • 我已查阅 Wiki 对于该问题的相关内容, 并确定该问题是存在的.

如果使用跨服功能, 是否在代理端上安装了TrChat或使用redis转发?

  • 我已在代理端上安装了TrChat或使用redis转发

详细描述

[TrChat-2.4.2]: 加载依赖 org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.2.20
[06:54:11 ERROR] [TrChat-2.4.2]: 无法初始化原始加载器,插件 "TrChat-2.4.2" 将被禁用!
[06:54:11 ERROR]: Can't create plugin trchat
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. at VelocityPlugin.(VelocityPlugin.java:89)
    at VelocityPluginModule.configure(VelocityPluginModule.java:47)
    while locating VelocityPlugin

Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR

1 error

======================
Full classname legend:

VelocityPlugin: "me.arasple.mc.trchat.taboolib.platform.VelocityPlugin"
VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"

End of classname legend:

    at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1151) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
    at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:127) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
    at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:173) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
    at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:436) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
    at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:307) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
    at com.velocitypowered.proxy.Velocity.main(Velocity.java:71) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]

Caused by: java.lang.ExceptionInInitializerError
at me.arasple.mc.trchat.taboolib.platform.VelocityPlugin$$FastClassByGuice$$1f2bd2c.GUICE$TRAMPOLINE() ~[?:?]
at me.arasple.mc.trchat.taboolib.platform.VelocityPlugin$$FastClassByGuice$$1f2bd2c.apply() ~[?:?]
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
... 6 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at me.arasple.mc.trchat.taboolib.common.classloader.IsolatedClassLoader.init(IsolatedClassLoader.java:30) ~[?:?]
at me.arasple.mc.trchat.taboolib.platform.VelocityPlugin.lambda$static$0(VelocityPlugin.java:49) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.TabooLib.execution(TabooLib.java:228) ~[?:?]
at me.arasple.mc.trchat.taboolib.platform.VelocityPlugin.(VelocityPlugin.java:46) ~[?:?]
... 16 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:565) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.classloader.IsolatedClassLoader.init(IsolatedClassLoader.java:28) ~[?:?]
... 19 more
Caused by: java.lang.RuntimeException: 无法加载 libraries\io\izzel\taboolib\bukkit-nms\6.3.0-716e043\bukkit-nms-6.3.0-716e043.jar
at me.arasple.mc.trchat.taboolib.common.PrimitiveLoader.load(PrimitiveLoader.java:174) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.PrimitiveLoader.lambda$loadAll$1(PrimitiveLoader.java:207) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.TabooLib.execution(TabooLib.java:228) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.PrimitiveLoader.loadAll(PrimitiveLoader.java:188) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.PrimitiveLoader.init(PrimitiveLoader.java:105) ~[?:?]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?]
... 21 more
Caused by: java.lang.NoClassDefFoundError: org/bukkit/Bukkit
at me.arasple.mc.trchat.taboolib.module.nms.MeteorReflection.(MeteorReflection.java:43) ~[?:?]
at java.base/java.lang.Class.forName0(Native Method) ~[?:?]
at java.base/java.lang.Class.forName(Class.java:560) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.PrimitiveLoader.loadFile(PrimitiveLoader.java:264) ~[?:?]
at me.arasple.mc.trchat.taboolib.common.PrimitiveLoader.load(PrimitiveLoader.java:172) ~[?:?]
... 26 more
Caused by: java.lang.ClassNotFoundException: org.bukkit.Bukkit
at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass0(PluginClassLoader.java:87) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:64) ~[velocity-3.5.0-SNAPSHOT-593.jar:3.5.0-SNAPSHOT (git-f712997d-b593)]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:502) ~[?:?]
... 31 more
[06:54:11 INFO]: Loaded 12 plugins

配置文件

默认配置

日志

No response

服务器环境

服务器版本:
...
插件列表:
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions