Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not load plugin multi-site #2

Open
jameszhang123 opened this issue Oct 12, 2022 · 0 comments
Open

can not load plugin multi-site #2

jameszhang123 opened this issue Oct 12, 2022 · 0 comments

Comments

@jameszhang123
Copy link

jameszhang123 commented Oct 12, 2022

gerrit version 3.6.2
docker run
lib list:
events-broker-3.6.0-rc5.jar global-refdb-3.6.0-rc5.jar out-of-the-box.jar replication.jar
plugins list:
avatars-gravatar.jar commit-message-length-validator.jar download-commands.jar high-availability.jar multi-site.jar pull-replication.jar replication.jar singleusergroup.jar webhooks.jar
codemirror-editor.jar delete-project.jar gitiles.jar hooks.jar plugin-manager.jar replication-status.jar reviewnotes.jar uploadvalidator.jar

multi-size version 3.6

error log:
`com.google.inject.CreationException: Unable to create injector, see the following errors:

  1. [Guice/MissingImplementation]: No implementation for MessageLogger was bound.

Requested by:
1 : BrokerApiWrapper.(BrokerApiWrapper.java:50)
_ for 4th parameter msgLog
at PluginModule.configure(PluginModule.java:42)
2 : BatchIndexEventSubscriber.(BatchIndexEventSubscriber.java:43)
_ for 4th parameter msgLog
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
3 : CacheEvictionEventSubscriber.(CacheEvictionEventSubscriber.java:38)
_ for 4th parameter msgLog
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
4 : IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 4th parameter msgLog
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
5 : ProjectUpdateEventSubscriber.(ProjectUpdateEventSubscriber.java:42)
_ for 4th parameter msgLog
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
6 : StreamEventSubscriber.(StreamEventSubscriber.java:42)
_ for 4th parameter msgLog
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule

Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

  1. [Guice/MissingImplementation]: No implementation for ProjectVersionLogger was bound.

Requested by:
1 : ReplicationStatus.(ReplicationStatus.java:86)
_ for 3rd parameter verLogger
at ReplicationStatusModule.configure(ReplicationStatusModule.java:35)
_ installed by: PluginModule -> ReplicationStatusModule

Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

  1. [Guice/MissingImplementation]: No implementation for ChangeCheckerImpl$Factory was bound.

Requested by:
1 : ForwardedIndexChangeHandler.(ForwardedIndexChangeHandler.java:52)
_ for 5th parameter changeCheckerFactory
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 2nd parameter indexChangeHandler
at IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
2 : ForwardedIndexChangeHandler.(ForwardedIndexChangeHandler.java:52)
_ for 5th parameter changeCheckerFactory
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 2nd parameter indexChangeHandler
at BatchIndexEventSubscriber.(BatchIndexEventSubscriber.java:43)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
3 : ForwardedIndexChangeHandler.(ForwardedIndexChangeHandler.java:52)
_ for 5th parameter changeCheckerFactory
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 2nd parameter indexChangeHandler
at StreamEventRouter.(StreamEventRouter.java:30)
_ for 2nd parameter indexEventRouter
at StreamEventSubscriber.(StreamEventSubscriber.java:42)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule

Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

  1. [Guice/MissingImplementation]: No implementation for GroupChecker was bound.

Requested by:
1 : ForwardedIndexGroupHandler.(ForwardedIndexGroupHandler.java:48)
_ for 3rd parameter groupChecker
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 3rd parameter indexGroupHandler
at IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
2 : ForwardedIndexGroupHandler.(ForwardedIndexGroupHandler.java:48)
_ for 3rd parameter groupChecker
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 3rd parameter indexGroupHandler
at BatchIndexEventSubscriber.(BatchIndexEventSubscriber.java:43)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
3 : ForwardedIndexGroupHandler.(ForwardedIndexGroupHandler.java:48)
_ for 3rd parameter groupChecker
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 3rd parameter indexGroupHandler
at StreamEventRouter.(StreamEventRouter.java:30)
_ for 2nd parameter indexEventRouter
at StreamEventSubscriber.(StreamEventSubscriber.java:42)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule

Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

  1. [Guice/MissingImplementation]: No implementation for ProjectChecker was bound.

Requested by:
1 : ForwardedIndexProjectHandler.(ForwardedIndexProjectHandler.java:48)
_ for 2nd parameter projectChecker
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 4th parameter indexProjectHandler
at IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
2 : ForwardedIndexProjectHandler.(ForwardedIndexProjectHandler.java:48)
_ for 2nd parameter projectChecker
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 4th parameter indexProjectHandler
at BatchIndexEventSubscriber.(BatchIndexEventSubscriber.java:43)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
3 : ForwardedIndexProjectHandler.(ForwardedIndexProjectHandler.java:48)
_ for 2nd parameter projectChecker
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 4th parameter indexProjectHandler
at StreamEventRouter.(StreamEventRouter.java:30)
_ for 2nd parameter indexEventRouter
at StreamEventSubscriber.(StreamEventSubscriber.java:42)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule

Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

  1. [Guice/MissingImplementation]: No implementation for Executor annotated with @BrokerExecutor() was bound.

Requested by:
1 : BrokerApiWrapper.(BrokerApiWrapper.java:50)
_ for 1st parameter executor
at PluginModule.configure(PluginModule.java:42)

Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

  1. [Guice/MissingImplementation]: No implementation for ScheduledExecutorService annotated with @ForwardedIndexExecutor() was bound.

Did you mean?
* ScheduledExecutorService annotated with @nAmed(value="replication_status")

Requested by:
1 : ForwardedIndexChangeHandler.(ForwardedIndexChangeHandler.java:52)
_ for 3rd parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 2nd parameter indexChangeHandler
at IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
2 : ForwardedIndexChangeHandler.(ForwardedIndexChangeHandler.java:52)
_ for 3rd parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 2nd parameter indexChangeHandler
at BatchIndexEventSubscriber.(BatchIndexEventSubscriber.java:43)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
3 : ForwardedIndexChangeHandler.(ForwardedIndexChangeHandler.java:52)
_ for 3rd parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 2nd parameter indexChangeHandler
at StreamEventRouter.(StreamEventRouter.java:30)
_ for 2nd parameter indexEventRouter
at StreamEventSubscriber.(StreamEventSubscriber.java:42)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
4 : ForwardedIndexGroupHandler.(ForwardedIndexGroupHandler.java:48)
_ for 5th parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 3rd parameter indexGroupHandler
at IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
5 : ForwardedIndexGroupHandler.(ForwardedIndexGroupHandler.java:48)
_ for 5th parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 3rd parameter indexGroupHandler
at BatchIndexEventSubscriber.(BatchIndexEventSubscriber.java:43)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
6 : ForwardedIndexGroupHandler.(ForwardedIndexGroupHandler.java:48)
_ for 5th parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 3rd parameter indexGroupHandler
at StreamEventRouter.(StreamEventRouter.java:30)
_ for 2nd parameter indexEventRouter
at StreamEventSubscriber.(StreamEventSubscriber.java:42)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
7 : ForwardedIndexProjectHandler.(ForwardedIndexProjectHandler.java:48)
_ for 4th parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 4th parameter indexProjectHandler
at IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
8 : ForwardedIndexProjectHandler.(ForwardedIndexProjectHandler.java:48)
_ for 4th parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 4th parameter indexProjectHandler
at BatchIndexEventSubscriber.(BatchIndexEventSubscriber.java:43)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule
9 : ForwardedIndexProjectHandler.(ForwardedIndexProjectHandler.java:48)
_ for 4th parameter indexExecutor
at IndexEventRouter.(IndexEventRouter.java:55)
_ for 4th parameter indexProjectHandler
at StreamEventRouter.(StreamEventRouter.java:30)
_ for 2nd parameter indexEventRouter
at StreamEventSubscriber.(StreamEventSubscriber.java:42)
_ for 1st parameter eventRouter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule

Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

  1. [Guice/MissingConstructor]: No injectable constructor for type SharedRefDbConfiguration.

class SharedRefDbConfiguration does not have a @Inject annotated constructor or a no-arg constructor.

Requested by:
1 : SharedRefDbConfiguration.class(SharedRefDbConfiguration.java:39)
at ProjectsFilter.(ProjectsFilter.java:84)
_ for 1st parameter
at IndexEventSubscriber.(IndexEventSubscriber.java:48)
_ for 7th parameter projectsFilter
at DynamicSet.bind(DynamicSet.java:110)
_ installed by: PluginModule -> SubscriberModule

Learn more:
https://github.com/google/guice/wiki/MISSING_CONSTRUCTOR

  1. [Guice/MissingConstructor]: No injectable constructor for type DynamicItem.

class DynamicItem does not have a @Inject annotated constructor or a no-arg constructor.

Requested by:
1 : DynamicItem.class(DynamicItem.java:52)
at BrokerApiWrapper.(BrokerApiWrapper.java:50)
_ for 2nd parameter apiDelegate
at PluginModule.configure(PluginModule.java:42)
2 : DynamicItem.class(DynamicItem.java:52)
at MultiSiteConsumerRunner.(MultiSiteConsumerRunner.java:38)
_ for 1st parameter brokerApi
at LifecycleModule.listener(LifecycleModule.java:40)

Learn more:
https://github.com/google/guice/wiki/MISSING_CONSTRUCTOR

  1. [Guice/MissingConstructor]: No injectable constructor for type Optional.

class Optional has a private no-arg constructor but the class is not private. Guice can only use a private no-arg constructor if it is defined in a private class.

Requested by:
1 : Optional.class(Optional.java:64)
at ReplicationStatus.(ReplicationStatus.java:86)
_ for 2nd parameter projectVersionRefUpdate
at ReplicationStatusModule.configure(ReplicationStatusModule.java:35)
_ installed by: PluginModule -> ReplicationStatusModule

Learn more:
https://github.com/google/guice/wiki/MISSING_CONSTRUCTOR

10 errors

======================
Full classname legend:

BatchIndexEventSubscriber: "com.googlesource.gerrit.plugins.multisite.consumer.BatchIndexEventSubscriber"
BrokerApi: "com.gerritforge.gerrit.eventbroker.BrokerApi"
BrokerApiWrapper: "com.googlesource.gerrit.plugins.multisite.broker.BrokerApiWrapper"
BrokerExecutor: "com.googlesource.gerrit.plugins.multisite.broker.BrokerExecutor"
CacheEvictionEventSubscriber: "com.googlesource.gerrit.plugins.multisite.consumer.CacheEvictionEventSubscriber"
ChangeCheckerImpl$Factory: "com.googlesource.gerrit.plugins.multisite.index.ChangeCheckerImpl$Factory"
DynamicItem: "com.google.gerrit.extensions.registration.DynamicItem"
DynamicSet: "com.google.gerrit.extensions.registration.DynamicSet"
Executor: "java.util.concurrent.Executor"
ForwardedIndexChangeHandler: "com.googlesource.gerrit.plugins.multisite.forwarder.ForwardedIndexChangeHandler"
ForwardedIndexExecutor: "com.googlesource.gerrit.plugins.multisite.index.ForwardedIndexExecutor"
ForwardedIndexGroupHandler: "com.googlesource.gerrit.plugins.multisite.forwarder.ForwardedIndexGroupHandler"
ForwardedIndexProjectHandler: "com.googlesource.gerrit.plugins.multisite.forwarder.ForwardedIndexProjectHandler"
GroupChecker: "com.googlesource.gerrit.plugins.multisite.index.GroupChecker"
IndexEventRouter: "com.googlesource.gerrit.plugins.multisite.forwarder.router.IndexEventRouter"
IndexEventSubscriber: "com.googlesource.gerrit.plugins.multisite.consumer.IndexEventSubscriber"
LifecycleModule: "com.google.gerrit.lifecycle.LifecycleModule"
MessageLogger: "com.googlesource.gerrit.plugins.multisite.MessageLogger"
MultiSiteConsumerRunner: "com.googlesource.gerrit.plugins.multisite.consumer.MultiSiteConsumerRunner"
Named: "com.google.inject.name.Named"
PluginModule: "com.googlesource.gerrit.plugins.multisite.PluginModule"
ProjectChecker: "com.googlesource.gerrit.plugins.multisite.index.ProjectChecker"
ProjectUpdateEventSubscriber: "com.googlesource.gerrit.plugins.multisite.consumer.ProjectUpdateEventSubscriber"
ProjectVersionLogger: "com.googlesource.gerrit.plugins.multisite.ProjectVersionLogger"
ProjectVersionRefUpdate: "com.googlesource.gerrit.plugins.multisite.validation.ProjectVersionRefUpdate"
ProjectsFilter: "com.gerritforge.gerrit.globalrefdb.validation.ProjectsFilter"
ReplicationStatus: "com.googlesource.gerrit.plugins.multisite.consumer.ReplicationStatus"
ReplicationStatusModule: "com.googlesource.gerrit.plugins.multisite.consumer.ReplicationStatusModule"
ScheduledExecutorService: "java.util.concurrent.ScheduledExecutorService"
SharedRefDbConfiguration: "com.gerritforge.gerrit.globalrefdb.validation.SharedRefDbConfiguration"
StreamEventRouter: "com.googlesource.gerrit.plugins.multisite.forwarder.router.StreamEventRouter"
StreamEventSubscriber: "com.googlesource.gerrit.plugins.multisite.consumer.StreamEventSubscriber"
SubscriberModule: "com.googlesource.gerrit.plugins.multisite.consumer.SubscriberModule"

End of classname legend:

at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:568)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:163)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:239)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:244)
at com.google.gerrit.server.plugins.ServerPlugin.startPlugin(ServerPlugin.java:212)
at com.google.gerrit.server.plugins.ServerPlugin.start(ServerPlugin.java:182)
at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:512)
at com.google.gerrit.server.plugins.PluginLoader.rescan(PluginLoader.java:426)
at com.google.gerrit.server.plugins.PluginLoader.start(PluginLoader.java:331)
at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:95)
at com.google.gerrit.pgm.Daemon.start(Daemon.java:386)
at com.google.gerrit.pgm.Daemon.run(Daemon.java:285)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:61)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:224)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:120)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:65)
at Main.main(Main.java:29)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant