-
Bug
-
Resolution: Not A Defect
-
Blocker
-
jenkins:latest(2.440.3) image from DockerHub.
On the latest Jenkins version 2.440.3, adding any credentials (SSH, file, simple text) will see an exception error from the credential plugin.
This bug can be reproduced by using a fresh image from the DockerHub. The only plugin I have enabled is the credential plugin.
The error log showed the exception was thrown during initializing.
com.cloudbees.plugins.credentials.Credentials
Expected a single class and the frontend sent a list.
Error log:
Apr 24, 2024 5:26:30 AM INFO hudson.WebAppMain contextInitialized Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME") Apr 24, 2024 5:26:30 AM INFO org.eclipse.jetty.server.handler.ContextHandler doStart Started w.@4d8539de{Jenkins v2.440.3,/,file:///var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war} Apr 24, 2024 5:26:30 AM INFO org.eclipse.jetty.server.AbstractConnector doStart Started ServerConnector@609db43b{HTTP/1.1, (http/1.1)}{0.0.0.0:8080} Apr 24, 2024 5:26:30 AM INFO org.eclipse.jetty.server.Server doStart Started Server@2bfc268b{STARTING}[10.0.20,sto=0] @1597ms Apr 24, 2024 5:26:30 AM INFO winstone.Logger logInternal Winstone Servlet Engine running: controlPort=disabled Apr 24, 2024 5:26:31 AM INFO jenkins.InitReactorRunner$1 onAttained Started initialization Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin antisamy-markup-formatter.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin apache-httpcomponents-client-4-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin bootstrap5-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin branch-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin build-timeout.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin checks-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin cloudbees-folder.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin credentials-binding.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin dark-theme.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin durable-task.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin echarts-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin email-ext.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin git-client.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin git.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin github-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin github-branch-source.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin github.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin javax-mail-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin jjwt-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin joda-time-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin json-path-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin junit.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin ldap.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin matrix-auth.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin matrix-project.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin okhttp-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pam-auth.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-build-step.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-github-lib.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-graph-analysis.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-groovy-lib.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-input-step.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-milestone-step.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-model-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-model-definition.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-model-extensions.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-rest-api.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-stage-step.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-stage-tags-metadata.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin pipeline-stage-view.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin plain-credentials.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin resource-disposer.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin ssh-slaves.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin theme-manager.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin timestamper.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin token-macro.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin workflow-aggregator.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin workflow-basic-steps.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin workflow-cps.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin workflow-durable-task-step.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin workflow-job.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin workflow-multibranch.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin workflow-scm-step.jpi is disabled Apr 24, 2024 5:26:31 AM INFO hudson.ClassicPluginStrategy createPluginWrapper Plugin ws-cleanup.jpi is disabled Apr 24, 2024 5:26:31 AM INFO jenkins.InitReactorRunner$1 onAttained Listed all plugins Apr 24, 2024 5:26:32 AM INFO jenkins.InitReactorRunner$1 onAttained Prepared all plugins Apr 24, 2024 5:26:32 AM INFO jenkins.InitReactorRunner$1 onAttained Started all plugins Apr 24, 2024 5:26:32 AM INFO jenkins.InitReactorRunner$1 onAttained Augmented all extensions Apr 24, 2024 5:26:33 AM INFO jenkins.InitReactorRunner$1 onAttained System config loaded Apr 24, 2024 5:26:33 AM INFO jenkins.InitReactorRunner$1 onAttained System config adapted Apr 24, 2024 5:26:33 AM INFO jenkins.InitReactorRunner$1 onAttained Loaded all jobs Apr 24, 2024 5:26:33 AM INFO jenkins.InitReactorRunner$1 onAttained Configuration for all jobs updated Apr 24, 2024 5:26:33 AM INFO jenkins.InitReactorRunner$1 onAttained Completed initialization Apr 24, 2024 5:26:33 AM INFO hudson.lifecycle.Lifecycle onReady Jenkins is fully up and running Apr 24, 2024 5:27:02 AM WARNING org.eclipse.jetty.server.handler.ContextHandler$Context log Error while serving https://jenkins.fredrice.us/manage/credentials/store/system/domain/_/createCredentials java.lang.IllegalArgumentException: The frontend sent an unexpected list of classes (["com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl","com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey","com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl"]) rather than an expected single class. See https://www.jenkins.io/doc/developer/views/table-to-div-migration/ for more information. at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:750) Caused: java.lang.IllegalArgumentException: Failed to instantiate interface com.cloudbees.plugins.credentials.Credentials from {"stapler-class":["com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl","com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey","com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl"],"$class":["com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl","com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey","com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl"]} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:771) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:551) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:546) at hudson.model.Descriptor.bindJSON(Descriptor.java:623) at hudson.model.Descriptor.bindJSON(Descriptor.java:607) at com.cloudbees.plugins.credentials.CredentialsStoreAction$DomainWrapper.doCreateCredentials(CredentialsStoreAction.java:814) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397) Caused: java.lang.reflect.InvocationTargetException at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:401) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:409) at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:78) at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:207) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:140) at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:289) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:289) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:836) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:698) at org.kohsuke.stapler.Stapler.service(Stapler.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:163) at jenkins.util.HttpServletFilter$1.doFilter(HttpServletFilter.java:76) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:166) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at jenkins.ErrorAttributeFilter.doFilter(ErrorAttributeFilter.java:29) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:154) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94) at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:110) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:569) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1580) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.Server.handle(Server.java:563) at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) at java.base/java.lang.Thread.run(Unknown Source)