admin-console 2.16-SNAPSHOT API

41 views
Skip to first unread message

Hector Colmenares

unread,
Mar 15, 2018, 3:31:06 AM3/15/18
to Repo and Gerrit Discussion

 I jiust compiled admin-console master and added to gerrit  (2.15-rc3-2798-g05af76f)  and I get 


[2018-03-15 01:38:09,252] [PluginScanner] WARN  com.google.gerrit.server.plugins.PluginLoader : Cannot load plugin admin-console
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) Could not find a suitable constructor in com.google.gerrit.server.account.AccountState. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  at com.google.gerrit.server.account.AccountState.class(AccountState.java:55)
  while locating com.google.gerrit.server.account.AccountState
    for the 6th parameter of com.googlesource.gerrit.plugins.adminconsole.ShowAccountCommand.<init>(ShowAccountCommand.java:80)
  at com.google.gerrit.sshd.CommandModule.command(CommandModule.java:69)

1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:159)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:237)
at com.google.gerrit.server.plugins.ServerPlugin.startPlugin(ServerPlugin.java:226)
at com.google.gerrit.server.plugins.ServerPlugin.start(ServerPlugin.java:192)
at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:498)
at com.google.gerrit.server.plugins.PluginLoader.rescan(PluginLoader.java:426)
at com.google.gerrit.server.plugins.PluginScannerThread.run(PluginScannerThread.java:42)


I f I add plugin-admin-console-bazel-stable-2.15 I get:


[2018-03-15 01:36:08,822] [PluginScanner] WARN  com.google.gerrit.server.plugins.PluginLoader : Cannot load plugin admin-console
java.lang.TypeNotPresentException: Type com.google.gerrit.server.account.GetGroups not present
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94)
at java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:283)
at java.lang.reflect.Constructor.getGenericParameterTypes(Constructor.java:234)
at com.google.inject.TypeLiteral.getParameterTypes(TypeLiteral.java:283)
at com.google.inject.spi.InjectionPoint.forMember(InjectionPoint.java:115)
at com.google.inject.spi.InjectionPoint.<init>(InjectionPoint.java:81)
at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:274)
at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:115)
at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:706)
at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:929)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:852)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:833)
at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:291)
at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:222)
at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:938)
at com.google.inject.internal.FactoryProxy.notify(FactoryProxy.java:47)
at com.google.inject.internal.ProcessedBindingData.runCreationListeners(ProcessedBindingData.java:60)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:133)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:237)
at com.google.gerrit.server.plugins.ServerPlugin.startPlugin(ServerPlugin.java:226)
at com.google.gerrit.server.plugins.ServerPlugin.start(ServerPlugin.java:192)
at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:498)
at com.google.gerrit.server.plugins.PluginLoader.rescan(PluginLoader.java:426)
at com.google.gerrit.server.plugins.PluginScannerThread.run(PluginScannerThread.java:42)
Caused by: java.lang.ClassNotFoundException: com.google.gerrit.server.account.GetGroups
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
... 30 more


Any help ??

Thank You.
-Z

David Pursehouse

unread,
Mar 15, 2018, 3:41:13 AM3/15/18
to Hector Colmenares, Repo and Gerrit Discussion
I haven't tried on master, but it should be working on stable-2.15 since [1] as long as you're loading it in gerrit version 2.15-rc3 or built from stable-2.15, and not gerrit built from master.



--
--
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.
For more options, visit https://groups.google.com/d/optout.

David Pursehouse

unread,
Mar 15, 2018, 3:44:58 AM3/15/18
to Hector Colmenares, Repo and Gerrit Discussion
For the master version it should be working since [1]. Have you also built and deployed the 2.16-SNAPSHOT API from the latest head of gerrit's master?  I don't think it would even compile if the API was mismatching, since there are classes that were moved to different packages (hence the class not found exceptions).


Reply all
Reply to author
Forward
0 new messages