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


Samebug tips8

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.


7 months ago
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


4 months ago
Expert tip

Solutions on the web1

Solution icon of github
via GitHub by DoctorWh00
, 4 months ago
Could not invoke constructor of class 'class fr.xephi.authme.command.CommandHandler'

Stack trace

fr.xephi.authme.libs.jalu.injector.exceptions.InjectorReflectionException: Could not invoke constructor of class 'class fr.xephi.authme.command.CommandHandler'
	at fr.xephi.authme.libs.jalu.injector.utils.ReflectionUtils.newInstance(ReflectionUtils.java:94)
	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 org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316)
	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 net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at fr.xephi.authme.libs.jalu.injector.utils.ReflectionUtils.newInstance(ReflectionUtils.java:91)
	... 18 more
Caused by: java.lang.NoClassDefFoundError: Lcom/google/gson/Gson;
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
	at java.lang.Class.getDeclaredFields(Class.java:1916)
	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.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.<init>(CommandHandler.java:49)
	... 23 more
Caused by: 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 org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 54 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1573 more bugmates