jenkinsci/publish-over-ssh-plugin

Failed to instantiate class jenkins.plugins.publish_over_ssh.options.SshDefaults

jarryxy opened this issue · 0 comments

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins Version is 2.442

Reproduction steps

image

2024-01-29 08:45:10.679+0000 [id=90]    WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://jenkins.yuencode.cn/manage/configSubmit
java.lang.IllegalArgumentException: The frontend sent an unexpected list of classes (["jenkins.plugins.publish_over_ssh.options.SshOverrideDefaults","jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"]) 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 class jenkins.plugins.publish_over_ssh.options.SshDefaults from {"stapler-class":["jenkins.plugins.publish_over_ssh.options.SshOverrideDefaults","jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"],"$class":["jenkins.plugins.publish_over_ssh.options.SshOverrideDefaults","jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"]}
        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 jenkins.plugins.publish_over_ssh.descriptor.BapSshPublisherPluginDescriptor.configure(BapSshPublisherPluginDescriptor.java:157)
        at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:4098)
        at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:4062)
        at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
        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.Function.bindAndInvoke(Function.java:207)
        at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)

Expected Results

image

Actual Results

image

Anything else?

No response

Are you interested in contributing a fix?

No response