java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Copy Artifact plugin
    via by PEETERS JOHAN (SDV/AVO),
  • when trying to save a job with a copy artifact build step, a ClassNotFoundException is thrown: java.lang.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"":"0","filter":"","flatten":false,"kind":"hudson.plugins.copyartifact.CopyArtifact$DescriptorImpl","optional":false,"projectName":"test","selector":{"buildNumber":"35","fallback":false,"id":"","parameterName":"BUILD_SELECTOR","stableOnly":false,"stapler-class":["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"]},"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","target":""} at hudson.model.Descriptor.newInstance(Descriptor.java:543) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:818) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:805) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:185) at hudson.model.Project.submit(Project.java:197) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:99) ... Caused by: java.lang.ClassNotFoundException: ["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"] at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:642) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) ... 67 more
    via by Johan Peeters,
  • when trying to save a job with a copy artifact build step, a ClassNotFoundException is thrown: java.lang.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"":"0","filter":"","flatten":false,"kind":"hudson.plugins.copyartifact.CopyArtifact$DescriptorImpl","optional":false,"projectName":"test","selector":{"buildNumber":"35","fallback":false,"id":"","parameterName":"BUILD_SELECTOR","stableOnly":false,"stapler-class":["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"]},"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","target":""} at hudson.model.Descriptor.newInstance(Descriptor.java:543) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:818) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:805) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:185) at hudson.model.Project.submit(Project.java:197) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:99) ... Caused by: java.lang.ClassNotFoundException: ["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"] at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:642) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) ... 67 more
    via by Johan Peeters,
  • JMeter - User - CI - Jenkins + Maven + Jmeter
    via by Unknown author,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • If check "Multiple SCMs" and don't add any SCM (see attached image) and after press "Apply" you can show the following exception: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.multiplescms.MultiSCM from {"value":"4"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:701) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.multiplescms.MultiSCM from {"value":"4"} at hudson.model.Descriptor.newInstance(Descriptor.java:577) at org.jenkinsci.plugins.multiplescms.MultiSCM$DescriptorImpl.newInstance(MultiSCM.java:204) at org.jenkinsci.plugins.multiplescms.MultiSCM$DescriptorImpl.newInstance(MultiSCM.java:166) at hudson.scm.SCMS.parseSCM(SCMS.java:63) at hudson.model.AbstractProject.submit(AbstractProject.java:1857) at hudson.model.Project.submit(Project.java:224) at hudson.model.Job.doConfigSubmit(Job.java:1188) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:780) at sun.reflect.GeneratedMethodAccessor2894.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 63 more Caused by: java.lang.NullPointerException
    via by Dmitry Votintsev,
    • java.lang.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"":"0","filter":"","flatten":false,"kind":"hudson.plugins.copyartifact.CopyArtifact$DescriptorImpl","optional":false,"projectName":"test","selector":{"buildNumber":"35","fallback":false,"id":"","parameterName":"BUILD_SELECTOR","stableOnly":false,"stapler-class":["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"]},"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","target":""} at hudson.model.Descriptor.newInstance(Descriptor.java:543) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:818) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:805) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:185) at hudson.model.Project.submit(Project.java:197) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:99)
    No Bugmate found.