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

Can't create plugin vmcds #3

Open
2 tasks done
pjindras opened this issue Mar 25, 2024 · 0 comments
Open
2 tasks done

Can't create plugin vmcds #3

pjindras opened this issue Mar 25, 2024 · 0 comments

Comments

@pjindras
Copy link

pjindras commented Mar 25, 2024

Actual Behavior

Startup error

This is a short description of my problem

Steps to Reproduce

Plugin cannot start on latest Velocity.

23:04:18[ERROR] Can't create plugin vmcds
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) [Guice/ErrorInjectingConstructor]: NoClassDefFoundError: net/kyori/text/Component
at VelocityMinecraftDiscordSync.<init>(VelocityMinecraftDiscordSync.java:113)
at VelocityPluginModule.configure(VelocityPluginModule.java:47)
while locating VelocityMinecraftDiscordSync
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
1 error
======================
Full classname legend:
======================
VelocityMinecraftDiscordSync: "eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync"
VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"
========================
End of classname legend:
========================
at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1151) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:134) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:155) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:364) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:241) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:70) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
Caused by: java.lang.NoClassDefFoundError: net/kyori/text/Component
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync.logHeader(VelocityMinecraftDiscordSync.java:282) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync.onLoad(VelocityMinecraftDiscordSync.java:124) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync.<init>(VelocityMinecraftDiscordSync.java:119) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync$$FastClassByGuice$$2e50c9.GUICE$TRAMPOLINE(<generated>) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync$$FastClassByGuice$$2e50c9.apply(<generated>) ~[?:?]
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
... 6 more
Caused by: java.lang.ClassNotFoundException: net.kyori.text.Component
at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass0(PluginClassLoader.java:87) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:64) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync.logHeader(VelocityMinecraftDiscordSync.java:282) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync.onLoad(VelocityMinecraftDiscordSync.java:124) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync.<init>(VelocityMinecraftDiscordSync.java:119) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync$$FastClassByGuice$$2e50c9.GUICE$TRAMPOLINE(<generated>) ~[?:?]
at eu.vironlab.minecraft.mds.velocity.VelocityMinecraftDiscordSync$$FastClassByGuice$$2e50c9.apply(<generated>) ~[?:?]
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148) ~[server.jar:3.3.0-SNAPSHOT (git-8891faa5-b370)]
... 6 more

Checklist:

  • included a link with an error stack or additional error informations
  • I have checked there aren't any duplicates of this error/report
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