Github-plugin: java.lang.NoClassDefFoundError: com/google/gerrit/extensions/client/MenuItem

435 views
Skip to first unread message

Jungho Ahn

unread,
Sep 12, 2016, 4:48:46 AM9/12/16
to Repo and Gerrit Discussion
Hello,

I'm trying to use github-plugin but I got the following error with gerrit 2.12.4. 

[2016-09-12 00:41:22,120] [main] WARN  com.google.gerrit.server.plugins.PluginLoader : Cannot load plugin github-plugin
java.lang.NoClassDefFoundError: com/google/gerrit/extensions/client/MenuItem
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.getDeclaredMethods(Class.java:1975)
        at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:688)
        at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:380)
        at com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:164)
        at com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:613)
        at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:569)
        at com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:555)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:884)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:805)
        at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:789)
        at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:282)
        at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:214)
        at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:890)
        at com.google.inject.internal.FactoryProxy.notify(FactoryProxy.java:46)
        at com.google.inject.internal.ProcessedBindingData.runCreationListeners(ProcessedBindingData.java:50)
        at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:134)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
        at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:226)
        at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:233)
        at com.google.gerrit.server.plugins.ServerPlugin.startPlugin(ServerPlugin.java:190)
        at com.google.gerrit.server.plugins.ServerPlugin.start(ServerPlugin.java:173)
        at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:480)
        at com.google.gerrit.server.plugins.PluginLoader.rescan(PluginLoader.java:407)
        at com.google.gerrit.server.plugins.PluginLoader.start(PluginLoader.java:311)
        at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:74)
        at com.google.gerrit.pgm.Daemon.start(Daemon.java:302)
        at com.google.gerrit.pgm.Daemon.run(Daemon.java:203)
        at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:159)
        at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:100)
        at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:56)
        at Main.main(Main.java:25)
Caused by: java.lang.ClassNotFoundException: com.google.gerrit.extensions.client.MenuItem
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

I couldn't find that class in gerrit-2.12.4.war. Should I use other version?

Thanks,

Edwin Kempin

unread,
Sep 12, 2016, 4:54:09 AM9/12/16
to Jungho Ahn, Repo and Gerrit Discussion
This class was moved in Gerrit 2.13 [1].
Looks like you are trying to use the 2.13 version of the github plugin with a Gerrit 2.12 server.
To make it work you should use the github plugin from the stable-2.12 branch.


 

Thanks,

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jungho Ahn

unread,
Sep 12, 2016, 11:21:05 AM9/12/16
to Repo and Gerrit Discussion, jungh...@snapchat.com
Oh, I thought I'm using the latest version.
I'll use stable-2.12 branch.

Thanks!

Thanks,

--
--
To unsubscribe, email repo-discuss...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages