fr.xephi.authme.libs.jalu.injector.exceptions.InjectorReflectionException: Could not invoke constructor of class 'class fr.xephi.authme.command.CommandHandler'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

,
Expert tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

Solutions on the web

via GitHub by DoctorWh00
, 6 months ago
Could not invoke constructor of class 'class fr.xephi.authme.command.CommandHandler'
java.lang.ClassNotFoundException: com.google.gson.Gson
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at fr.xephi.authme.libs.jalu.injector.utils.ReflectionUtils.safeGetDeclaredFields(ReflectionUtils.java:177)
at fr.xephi.authme.libs.jalu.injector.handlers.instantiation.ConstructorInjectionProvider.validateHasNoOtherInjectAnnotations(ConstructorInjectionProvider.java:45)
at fr.xephi.authme.libs.jalu.injector.handlers.instantiation.ConstructorInjectionProvider.safeGet(ConstructorInjectionProvider.java:21)
at fr.xephi.authme.libs.jalu.injector.handlers.instantiation.ConstructorInjectionProvider.safeGet(ConstructorInjectionProvider.java:13)
at fr.xephi.authme.libs.jalu.injector.handlers.instantiation.DirectInstantiationProvider.get(DirectInstantiationProvider.java:16)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.getInstantiation(InjectorImpl.java:190)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.instantiate(InjectorImpl.java:180)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.get(InjectorImpl.java:162)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.resolveDependencies(InjectorImpl.java:225)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.instantiate(InjectorImpl.java:183)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.get(InjectorImpl.java:162)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.resolveDependencies(InjectorImpl.java:225)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.instantiate(InjectorImpl.java:183)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.get(InjectorImpl.java:162)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.resolveDependencies(InjectorImpl.java:225)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.instantiate(InjectorImpl.java:183)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.get(InjectorImpl.java:162)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.resolveDependencies(InjectorImpl.java:225)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.instantiate(InjectorImpl.java:183)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.newInstance(InjectorImpl.java:78)
at fr.xephi.authme.command.CommandHandler.initializeCommands(CommandHandler.java:103)
at fr.xephi.authme.command.CommandHandler.(CommandHandler.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at fr.xephi.authme.libs.jalu.injector.utils.ReflectionUtils.newInstance(ReflectionUtils.java:91)
at fr.xephi.authme.libs.jalu.injector.handlers.instantiation.ConstructorInjection.instantiateWith(ConstructorInjection.java:39)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.instantiate(InjectorImpl.java:184)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.get(InjectorImpl.java:162)
at fr.xephi.authme.libs.jalu.injector.InjectorImpl.getSingleton(InjectorImpl.java:51)
at fr.xephi.authme.AuthMe.instantiateServices(AuthMe.java:251)
at fr.xephi.authme.AuthMe.initialize(AuthMe.java:219)
at fr.xephi.authme.AuthMe.onEnable(AuthMe.java:139)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356)
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402)
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370)
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325)
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

1439 times, 6 hours ago
9 times, 2 days ago
Once, 4 days ago
3 times, 4 days ago
Once, 5 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.