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

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

Open
jarryxy opened this issue Jan 29, 2024 · 0 comments
Labels

Comments

@jarryxy
Copy link

jarryxy commented Jan 29, 2024

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

@jarryxy jarryxy added the bug label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant