k8s-gerrit
k8s-gerrit copied to clipboard
ClassNotFoundException: FirstTimeRedirect
when install gerrit using helm it report the class not found error
Jun 12, 2024 1:57:48 AM com.google.inject.assistedinject.FactoryProvider2 isValidForOptimizedAssistedInject
WARNING: AssistedInject factory com.google.gerrit.sshd.DispatchCommand$Factory will be slow because class com.google.gerrit.sshd.DispatchCommand has assisted Provider dependencies or injects the Injector. Stop injecting @Assisted Provider<T> (instead use @Assisted T) or Injector to speed things up. (It will be a ~6500% speed bump!) The exact offending deps are: [Key[type=com.google.inject.Injector, annotation=[none]]@com.google.gerrit.sshd.BaseCommand.injector]
[2024-06-12T01:57:50.587Z] [main] INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'SshCommandStart' queue
[2024-06-12T01:57:52.679Z] [main] INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'SSH-Stream-Worker' queue
[2024-06-12T01:57:52.681Z] [main] INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'SSH-Interactive-Worker' queue
[2024-06-12T01:57:52.682Z] [main] INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'SSH-Batch-Worker' queue
[2024-06-12T01:57:52.683Z] [main] INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'MigrateExternalIdCase' queue
[2024-06-12T01:57:52.692Z] [main] WARN com.google.gerrit.server.config.GitwebCgiConfig : gitweb not installed (no /usr/lib/cgi-bin/gitweb.cgi found)
[2024-06-12T01:57:54.284Z] [main] INFO org.eclipse.jetty.util.log : Logging initialized @35004ms to org.eclipse.jetty.util.log.Slf4jLog
[2024-06-12T01:57:54.590Z] [main] ERROR com.google.gerrit.pgm.Daemon : Unable to start daemon
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) [Guice/ErrorInjectingConstructor]: IllegalArgumentException: Unable to instantiate front-end HTTP Filter FirstTimeRedirect
at JettyServer.<init>(JettyServer.java:218)
at JettyModule.configure(JettyModule.java:31)
while locating JettyServer
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
Caused by: IllegalArgumentException: Unable to instantiate front-end HTTP Filter FirstTimeRedirect
at JettyServer.makeContext(JettyServer.java:562)
at JettyServer.makeContext(JettyServer.java:504)
at JettyServer.<init>(JettyServer.java:258)
at JettyServer$$FastClassByGuice$$40e1b37b.GUICE$TRAMPOLINE(<generated>)
at JettyServer$$FastClassByGuice$$40e1b37b.apply(<generated>)
at DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at ConstructorInjector.provision(ConstructorInjector.java:114)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at InjectorImpl.createChildInjector(InjectorImpl.java:240)
at Daemon.createHttpdInjector(Daemon.java:677)
at Daemon.initHttpd(Daemon.java:628)
at Daemon.start(Daemon.java:401)
at Daemon.run(Daemon.java:297)
at AbstractProgram.main(AbstractProgram.java:62)
at java.base/NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/Method.invoke(Method.java:568)
at GerritLauncher.invokeProgram(GerritLauncher.java:252)
at GerritLauncher.mainImpl(GerritLauncher.java:148)
at GerritLauncher.main(GerritLauncher.java:93)
at Main.main(Main.java:30)
Caused by: ClassNotFoundException: FirstTimeRedirect
at java.base/URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/ClassLoader.loadClass(ClassLoader.java:592)
at java.base/ClassLoader.loadClass(ClassLoader.java:525)
at java.base/Class.forName0(Native Method)
at java.base/Class.forName(Class.java:375)
at JettyServer.makeContext(JettyServer.java:545)
... 28 more
2) [Guice/ErrorInjectingConstructor]: IllegalArgumentException: Unable to instantiate front-end HTTP Filter FirstTimeRedirect
at JettyServer.<init>(JettyServer.java:218)
at JettyModule.configure(JettyModule.java:31)
at JettyMetrics.<init>(JettyMetrics.java:29)
\_ for 1st parameter jetty
at JettyModule.configure(JettyModule.java:34)
while locating JettyMetrics
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
Caused by: IllegalArgumentException: Unable to instantiate front-end HTTP Filter FirstTimeRedirect
at JettyServer.makeContext(JettyServer.java:562)
at JettyServer.makeContext(JettyServer.java:504)
at JettyServer.<init>(JettyServer.java:258)
at JettyServer$$FastClassByGuice$$40e1b37b.GUICE$TRAMPOLINE(<generated>)
at JettyServer$$FastClassByGuice$$40e1b37b.apply(<generated>)
at DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at ConstructorInjector.provision(ConstructorInjector.java:114)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at SingleParameterInjector.inject(SingleParameterInjector.java:40)
at SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at ConstructorInjector.provision(ConstructorInjector.java:113)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at InjectorImpl.createChildInjector(InjectorImpl.java:240)
at Daemon.createHttpdInjector(Daemon.java:677)
at Daemon.initHttpd(Daemon.java:628)
at Daemon.start(Daemon.java:401)
at Daemon.run(Daemon.java:297)
at AbstractProgram.main(AbstractProgram.java:62)
at java.base/NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/Method.invoke(Method.java:568)
at GerritLauncher.invokeProgram(GerritLauncher.java:252)
at GerritLauncher.mainImpl(GerritLauncher.java:148)
at GerritLauncher.main(GerritLauncher.java:93)
at Main.main(Main.java:30)
Caused by: ClassNotFoundException: FirstTimeRedirect
at java.base/URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/ClassLoader.loadClass(ClassLoader.java:592)
at java.base/ClassLoader.loadClass(ClassLoader.java:525)
at java.base/Class.forName0(Native Method)
at java.base/Class.forName(Class.java:375)
at JettyServer.makeContext(JettyServer.java:545)
... 36 more
2 errors
======================
Full classname legend:
======================
AbstractProgram: "com.google.gerrit.pgm.util.AbstractProgram"
ConstructorBindingImpl$Factory: "com.google.inject.internal.ConstructorBindingImpl$Factory"
ConstructorInjector: "com.google.inject.internal.ConstructorInjector"
Daemon: "com.google.gerrit.pgm.Daemon"
DefaultConstructionProxyFactory$FastClassProxy: "com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy"
DelegatingMethodAccessorImpl: "jdk.internal.reflect.DelegatingMethodAccessorImpl"
FirstTimeRedirect: "com.googlesource.gerrit.plugins.ootb.FirstTimeRedirect"
GerritLauncher: "com.google.gerrit.launcher.GerritLauncher"
InjectorImpl: "com.google.inject.internal.InjectorImpl"
InternalFactoryToProviderAdapter: "com.google.inject.internal.InternalFactoryToProviderAdapter"
InternalInjectorCreator: "com.google.inject.internal.InternalInjectorCreator"
JettyMetrics: "com.google.gerrit.pgm.http.jetty.JettyMetrics"
JettyModule: "com.google.gerrit.pgm.http.jetty.JettyModule"
JettyServer: "com.google.gerrit.pgm.http.jetty.JettyServer"
JettyServer$$FastClassByGuice$$40e1b37b: "com.google.gerrit.pgm.http.jetty.JettyServer$$FastClassByGuice$$40e1b37b"
Method: "java.lang.reflect.Method"
NativeMethodAccessorImpl: "jdk.internal.reflect.NativeMethodAccessorImpl"
ProviderToInternalFactoryAdapter: "com.google.inject.internal.ProviderToInternalFactoryAdapter"
SingleParameterInjector: "com.google.inject.internal.SingleParameterInjector"
SingletonScope$1: "com.google.inject.internal.SingletonScope$1"
URLClassLoader: "java.net.URLClassLoader"
========================
End of classname legend:
========================
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:589)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:190)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:240)
at com.google.gerrit.pgm.Daemon.createHttpdInjector(Daemon.java:677)
at com.google.gerrit.pgm.Daemon.initHttpd(Daemon.java:628)
at com.google.gerrit.pgm.Daemon.start(Daemon.java:401)
at com.google.gerrit.pgm.Daemon.run(Daemon.java:297)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:62)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:252)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:148)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:93)
at Main.main(Main.java:30)