Skip to content

Wont loadd. #178

@Yohhannn

Description

@Yohhannn

Proxy with servers. I use VelocityCTD for proxy jar and Purpur for thebackend.

Error
[19:58:19 ERROR]: Can't create plugin twofa
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. [Guice/ErrorInjectingConstructor]: NoClassDefFoundError: com/atlassian/onetime/service/SecretProvider
    at TwoFactorAuthentication.(TwoFactorAuthentication.java:38)
    at VelocityPluginModule.configure(VelocityPluginModule.java:47)
    while locating TwoFactorAuthentication
    Learn more:
    https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
    1 error
    ======================
    Full classname legend:
    ======================
    TwoFactorAuthentication: "com.lielamar.auth.velocity.TwoFactorAuthentication"
    VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"
    ========================
    End of classname legend:
    ========================
    at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1151) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:128) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:173) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:536) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:372) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.velocitypowered.proxy.Velocity.main(Velocity.java:76) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    Caused by: java.lang.NoClassDefFoundError: com/atlassian/onetime/service/SecretProvider
    at com.lielamar.auth.velocity.TwoFactorAuthentication.setupAuth(TwoFactorAuthentication.java:55) ~[?:?]
    at com.lielamar.auth.velocity.TwoFactorAuthentication.(TwoFactorAuthentication.java:43) ~[?:?]
    at com.lielamar.auth.velocity.TwoFactorAuthentication$$FastClassByGuice$$1d424e2.GUICE$TRAMPOLINE() ~[?:?]
    at com.lielamar.auth.velocity.TwoFactorAuthentication$$FastClassByGuice$$1d424e2.apply() ~[?:?]
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    ... 6 more
    Caused by: java.lang.ClassNotFoundException: com.atlassian.onetime.service.SecretProvider
    at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass0(PluginClassLoader.java:87) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:64) ~[velocity.jar:3.4.0-SNAPSHOT (git-5e74591d)]
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
    ... 18 more

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions