Skip to content

[BUG] Error when starting the Velocity proxy #235

@Artfarm6688

Description

@Artfarm6688

Describe the bug
When I run Velocity 3.5.0-SNAPSHOT (git-d11511c1-b584), this error appears.

To Reproduce
This happens simply when the proxy is running.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Log:

[00:17:05] [main/ERROR] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Can't create plugin limboapi
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. [Guice/ErrorInjectingConstructor]: ReflectionException: An unexpected internal error was caught during the reflection operations.
    at LimboAPI.(LimboAPI.java:167)
    at VelocityPluginModule.configure(VelocityPluginModule.java:47)
    while locating LimboAPI

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

1 error

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

LimboAPI: "net.elytrium.limboapi.LimboAPI"
ReflectionException: "net.elytrium.commons.utils.reflection.ReflectionException"
VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"

End of classname legend:

at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1151)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186)
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:127)
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:173)
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:436)
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:307)
at com.velocitypowered.proxy.Velocity.main(Velocity.java:71)

Caused by: net.elytrium.commons.utils.reflection.ReflectionException: An unexpected internal error was caught during the reflection operations.
at net.elytrium.limboapi.LimboAPI.(LimboAPI.java:204)
at net.elytrium.limboapi.LimboAPI$$FastClassByGuice$$69ec00.GUICE$TRAMPOLINE()
at net.elytrium.limboapi.LimboAPI$$FastClassByGuice$$69ec00.apply()
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148)
... 6 more
Caused by: net.elytrium.commons.utils.reflection.ReflectionException: An unexpected internal error was caught during the reflection operations.
at net.elytrium.limboapi.protocol.LimboProtocol.register(LimboProtocol.java:587)
at net.elytrium.limboapi.protocol.LimboProtocol.init(LimboProtocol.java:506)
at net.elytrium.limboapi.LimboAPI.(LimboAPI.java:202)
... 16 more
Caused by: java.lang.IllegalArgumentException: Can not register class PlayerChatSessionPacket with id 9 for 26.1 because another packet is already registered
at com.velocitypowered.proxy.protocol.StateRegistry$PacketRegistry.register(StateRegistry.java:986)
at net.elytrium.limboapi.protocol.LimboProtocol.register(LimboProtocol.java:584)
... 18 more
[00:17:06] [main/ERROR] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Can't create plugin limboauth
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. [Guice/ErrorInjectingConstructor]: NoSuchElementException: No value present
    at LimboAuth.(LimboAuth.java:192)
    at VelocityPluginModule.configure(VelocityPluginModule.java:47)
    while locating LimboAuth

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

1 error

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

LimboAuth: "net.elytrium.limboauth.LimboAuth"
VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"

End of classname legend:

at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1151)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186)
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:127)
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:173)
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:436)
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:307)
at com.velocitypowered.proxy.Velocity.main(Velocity.java:71)

Caused by: java.util.NoSuchElementException: No value present
at java.base/java.util.Optional.orElseThrow(Optional.java:377)
at net.elytrium.limboauth.LimboAuth.(LimboAuth.java:203)
at net.elytrium.limboauth.LimboAuth$$FastClassByGuice$$7202c6.GUICE$TRAMPOLINE()
at net.elytrium.limboauth.LimboAuth$$FastClassByGuice$$7202c6.apply()
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148)
... 6 more
[00:17:06] [main/ERROR] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Can't create plugin limboauth-social-addon
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. [Guice/ErrorInjectingConstructor]: NoSuchElementException: No value present
    at Addon.(Addon.java:138)
    at VelocityPluginModule.configure(VelocityPluginModule.java:47)
    while locating Addon

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

1 error

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

Addon: "net.elytrium.limboauth.socialaddon.Addon"
VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"

End of classname legend:

at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1151)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186)
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:127)
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:173)
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:436)
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:307)
at com.velocitypowered.proxy.Velocity.main(Velocity.java:71)

Caused by: java.util.NoSuchElementException: No value present
at java.base/java.util.Optional.orElseThrow(Optional.java:377)
at net.elytrium.limboauth.socialaddon.Addon.(Addon.java:145)
at net.elytrium.limboauth.socialaddon.Addon$$FastClassByGuice$$8addde.GUICE$TRAMPOLINE()
at net.elytrium.limboauth.socialaddon.Addon$$FastClassByGuice$$8addde.apply()
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148)
... 6 more

Server Info (please complete the following information):

  • My Plugins:

  • Plugins: velocity, luckperms, libertybans, ban_announcer, consolespamfixreborn, foxgate, libertyvoicemute, mdmotd,
    proantitab, signedvelocity, skinsrestorer, viaversion, sonar, spark, velocityfriends, voicechat

  • /velocity dump link [https://drive.google.com/file/d/1lFpcNu_xX8qn78l94nh7m7KzpFdgBc8l/view?usp=drivesdk]

Additional context
I am using the latest version of LimboApi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions