My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2895: Plugin reload fails for single provider
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Jan 2015


Sign in to add a comment
 
Reported by org...@gmail.com, Sep 10, 2014
Affected Version: 2.9

What steps will reproduce the problem?
1. Deploy a plugin that implements AvatarProvider
2. Run "ssh host gerrit plugin reload avatar"

What is the expected output? What do you see instead?
It should be reloaded.

Instead, the following error appears:
fatal: Guice provision errors:

1) com.google.gerrit.extensions.registration.DynamicItem<com.google.gerrit.server.avatar.AvatarProvider> already provided by avatar, ignoring plugin avatar

1 error


And the error log shows:
[2014-09-11 08:36:23,830] INFO  com.google.gerrit.server.plugins.PluginLoader : Reloading plugin avatar
[2014-09-11 08:36:23,869] WARN  com.google.gerrit.server.plugins.PluginLoader : Cannot reload plugin avatar
com.google.inject.ProvisionException: Guice provision errors:

1) com.google.gerrit.extensions.registration.DynamicItem<com.google.gerrit.server.avatar.AvatarProvider> already provided by avatar, ignoring plugin avatar

1 error
	at com.google.gerrit.extensions.registration.DynamicItem.set(DynamicItem.java:184)
	at com.google.gerrit.server.plugins.PluginGuiceEnvironment.reattachItem(PluginGuiceEnvironment.java:429)
	at com.google.gerrit.server.plugins.PluginGuiceEnvironment.onReloadPlugin(PluginGuiceEnvironment.java:276)
	at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:428)
	at com.google.gerrit.server.plugins.PluginLoader.reload(PluginLoader.java:356)
	at com.google.gerrit.sshd.commands.PluginReloadCommand.run(PluginReloadCommand.java:51)
	at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:35)
	at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:442)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
	at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:364)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

Sep 21, 2014
Project Member #1 David.Os...@gmail.com
https://gerrit-review.googlesource.com/60244
Status: ChangeUnderReview
Jan 22, 2015
Project Member #2 david.pu...@sonymobile.com
https://gerrit-review.googlesource.com/#/c/63440/
Status: Submitted
Labels: FixedIn-2.10
Jan 27, 2015
Project Member #3 ziv...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting