Issue 1471: Loading plugins fails when starting Gerrit in GWT Debug Mode
Status:  Released
Owner: ----
Closed:  Oct 2012
Project Member Reported by edwin.ke...@gmail.com, Jul 13, 2012
Affected Version: current master (6afdc86f298e329e9cdf8cab3f4ac3d1303f17db)

What steps will reproduce the problem?
1. launch Gerrit from Eclipse with the 'gerrit-gwtdebug' launch configuration

What is the expected output? What do you see instead?
It is expected that the plugins are properly loaded.
Instead loading of the plugins fails and Gerrit starts without plugins.


Please provide any additional information below.
com.google.inject.CreationException: Guice creation errors:

1) A binding to com.google.gerrit.server.git.GitRepositoryManager was already configured at com.google.gerrit.server.plugins.CopyConfigModule.getGitRepositoryManager().
  at com.google.gerrit.server.plugins.PluginGuiceEnvironment$2.configure(PluginGuiceEnvironment.java:410)

1 error
	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
	at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
	at com.google.inject.Guice.createInjector(Guice.java:95)
	at com.google.inject.Guice.createInjector(Guice.java:72)
	at com.google.gerrit.server.plugins.Plugin.newRootInjector(Plugin.java:271)
	at com.google.gerrit.server.plugins.Plugin.start(Plugin.java:175)
	at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:316)
	at com.google.gerrit.server.plugins.PluginLoader.rescan(PluginLoader.java:291)
	at com.google.gerrit.server.plugins.PluginLoader.start(PluginLoader.java:208)
	at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:74)
	at com.google.gerrit.httpd.WebAppInitializer.contextInitialized(WebAppInitializer.java:252)
	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
	at com.google.gerrit.gwtdebug.GerritDebugLauncher$MyWebAppContext.doStart(GerritDebugLauncher.java:286)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.Server.doStart(Server.java:222)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	at com.google.gerrit.gwtdebug.GerritDebugLauncher.start(GerritDebugLauncher.java:404)
	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
Jul 13, 2012
Project Member #1 bklarson@gmail.com
I've ran into this as well - it has made it difficult to debug issues with the plugin admin UI :).  I thought it was just an issue with my setup, so I'm glad to see it isn't just me.
Oct 16, 2012
#2 sop@google.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.5
Oct 31, 2012
Project Member #3 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Released