java.lang.IllegalArgumentException: class samplepackage.HelloWorldBuilder does not have a constructor with 1 arguments

Jenkins JIRA | ciryon | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    HelloWorldBuilder is a sample project to get started with developing plugins for Hudson. After checking out and deploying the code it fails without making any changes. Steps to reproduce: 1) Get HelloWorldBuilder with Maven to a new project 2) Open the project in NetBeans 6.7 3) Press Debug 4) In the web browser add a new build configuration and add "Say Hello" as build step 5) Enter a name in the form 6) Press Save Expected result: Should accept the form submission and have the HelloWorldBuilder as a working build step Actual results: java.lang.IllegalArgumentException: class samplepackage.HelloWorldBuilder does not have a constructor with 1 arguments at org.kohsuke.stapler.RequestImpl.findConstructor(RequestImpl.java:408) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:316) at hudson.model.Descriptor.newInstance(Descriptor.java:179) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:360) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:157) at hudson.model.Project.submit(Project.java:167) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:68) at hudson.model.Job.doConfigSubmit(Job.java:858) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:320) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:146) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:71) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:173) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352) at org.kohsuke.stapler.Stapler.service(Stapler.java:112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:61) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:53) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:765) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:628) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

    Jenkins JIRA | 8 years ago | ciryon
    java.lang.IllegalArgumentException: class samplepackage.HelloWorldBuilder does not have a constructor with 1 arguments
  2. 0

    HelloWorldBuilder is a sample project to get started with developing plugins for Hudson. After checking out and deploying the code it fails without making any changes. Steps to reproduce: 1) Get HelloWorldBuilder with Maven to a new project 2) Open the project in NetBeans 6.7 3) Press Debug 4) In the web browser add a new build configuration and add "Say Hello" as build step 5) Enter a name in the form 6) Press Save Expected result: Should accept the form submission and have the HelloWorldBuilder as a working build step Actual results: java.lang.IllegalArgumentException: class samplepackage.HelloWorldBuilder does not have a constructor with 1 arguments at org.kohsuke.stapler.RequestImpl.findConstructor(RequestImpl.java:408) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:316) at hudson.model.Descriptor.newInstance(Descriptor.java:179) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:360) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:157) at hudson.model.Project.submit(Project.java:167) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:68) at hudson.model.Job.doConfigSubmit(Job.java:858) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:320) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:146) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:71) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:173) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352) at org.kohsuke.stapler.Stapler.service(Stapler.java:112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:61) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:53) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:765) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:628) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

    Jenkins JIRA | 8 years ago | ciryon
    java.lang.IllegalArgumentException: class samplepackage.HelloWorldBuilder does not have a constructor with 1 arguments
  3. 0

    When I try to save changes inside configuration (in Build section Execute Windows batch commands) I have error (stacktrace below). Top sections from "Project name" to "Restrict where this project can be run" are greyed and not available to edition. javax.servlet.ServletException: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.model.BuildDiscarder from {"stapler-class":["org.jenkinsci.plugins.enhancedoldbuilddiscarder.EnhancedOldBuildDiscarder","hudson.tasks.LogRotator"],"daysToKeepStr":"10","numToKeepStr":"10","discardOnlyOnSuccess":false,"artifactDaysToKeepStr":"","artifactNumToKeepStr":""} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1367) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:208) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at com.marvelution.hudson.plugins.apiv2.servlet.filter.HudsonAPIV2ServletFilter.doFilter(HudsonAPIV2ServletFilter.java:115) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) 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 org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:79) 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 de.theit.jenkins.crowd.CrowdServletFilter.doFilter(CrowdServletFilter.java:195) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:350) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.model.BuildDiscarder from {"stapler-class":["org.jenkinsci.plugins.enhancedoldbuilddiscarder.EnhancedOldBuildDiscarder","hudson.tasks.LogRotator"],"daysToKeepStr":"10","numToKeepStr":"10","discardOnlyOnSuccess":false,"artifactDaysToKeepStr":"","artifactNumToKeepStr":""} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:589) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:400) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:396) at hudson.model.Job.doConfigSubmit(Job.java:1124) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:787) at sun.reflect.GeneratedMethodAccessor4228.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) 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:120) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) ... 74 more Caused by: java.lang.IllegalArgumentException: Class ["org.jenkinsci.plugins.enhancedoldbuilddiscarder.EnhancedOldBuildDiscarder","hudson.tasks.LogRotator"] is specified in JSON, but no such class found in classLoader hudson.PluginManager$UberClassLoader

    Jenkins JIRA | 3 years ago | Michal Tyde
    javax.servlet.ServletException: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.model.BuildDiscarder from {"stapler-class":["org.jenkinsci.plugins.enhancedoldbuilddiscarder.EnhancedOldBuildDiscarder","hudson.tasks.LogRotator"],"daysToKeepStr":"10","numToKeepStr":"10","discardOnlyOnSuccess":false,"artifactDaysToKeepStr":"","artifactNumToKeepStr":""}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] (JENKINS-35906) Exception saving jobs using ClearCase after update to Jenkins Core 2.9

    Google Groups | 8 months ago | kurt....@rohde-schwarz.com (JIRA)
    javax.servlet.ServletException: java.lang.IllegalArgumentException: Failed to instantiate class hudson.scm.SCM from {"value":"1","stapler-class":"hudson.plugins.clearcase.ClearCaseSCM","$class":"hudson.plugins.clearcase.ClearCaseSCM","viewname":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","viewpath":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","getConfigSpecFromFile":{"configSpecFileName":"${ClearCaseConfigSpec}"},"configspec":"TO_BE_SET_ON_FIRST_RUN","useupdate":true,"changeset":{"value":"branch"},"branch":"main\nbr_${PROJECT}_REL_${MajorVersion}_${MinorBaseVersion}x","label":"","excludedRegions":".*\\\\BuildIDs\\\\.*\n.*\\\\Specs\\\\.*\nMCT_INT\\\\.*\ncrtu_components\\\\.*\nMCT_Comp\\\\LIC_PROXY_API\\\\.*\ncrtx_product\\\\Tools\\\\VersionManager\ncrtu_rrm\\\\RRM_MLAPI\\\\Scenarios\\\\RRM\\\\PQA\\\\.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\BIN_.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\CONF_LTE_RRMLib.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\.*TDSCDMA.*","mkviewoptionalparam":"-vws \\\\${CCSTG_SNAP}\\${CLEARCASE_VIEWNAME}.vws","filterOutDestroySubBranchEvent":false,"rmviewonrename":true,"multiSitePollBuffer":"0"}
  6. 0

    After updating Jenkins Core to 2.9 any Jobs using ClearCase for Version Control cannot be saved any longer. The following exceptions appears when clicking "Save" button: {noformat} javax.servlet.ServletException: java.lang.IllegalArgumentException: Failed to instantiate class hudson.scm.SCM from {"value":"1","stapler-class":"hudson.plugins.clearcase.ClearCaseSCM","$class":"hudson.plugins.clearcase.ClearCaseSCM","viewname":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","viewpath":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","getConfigSpecFromFile":{"configSpecFileName":"${ClearCaseConfigSpec}"},"configspec":"TO_BE_SET_ON_FIRST_RUN","useupdate":true,"changeset":{"value":"branch"},"branch":"main\nbr_${PROJECT}_REL_${MajorVersion}_${MinorBaseVersion}x","label":"","excludedRegions":".*\\\\BuildIDs\\\\.*\n.*\\\\Specs\\\\.*\nMCT_INT\\\\.*\ncrtu_components\\\\.*\nMCT_Comp\\\\LIC_PROXY_API\\\\.*\ncrtx_product\\\\Tools\\\\VersionManager\ncrtu_rrm\\\\RRM_MLAPI\\\\Scenarios\\\\RRM\\\\PQA\\\\.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\BIN_.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\CONF_LTE_RRMLib.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\.*TDSCDMA.*","mkviewoptionalparam":"-vws \\\\${CCSTG_SNAP}\\${CLEARCASE_VIEWNAME}.vws","filterOutDestroySubBranchEvent":false,"rmviewonrename":true,"multiSitePollBuffer":"0"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) 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:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:201) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:178) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:85) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:102) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:80) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) 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:171) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.scm.SCM from {"value":"1","stapler-class":"hudson.plugins.clearcase.ClearCaseSCM","$class":"hudson.plugins.clearcase.ClearCaseSCM","viewname":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","viewpath":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","getConfigSpecFromFile":{"configSpecFileName":"${ClearCaseConfigSpec}"},"configspec":"TO_BE_SET_ON_FIRST_RUN","useupdate":true,"changeset":{"value":"branch"},"branch":"main\nbr_${PROJECT}_REL_${MajorVersion}_${MinorBaseVersion}x","label":"","excludedRegions":".*\\\\BuildIDs\\\\.*\n.*\\\\Specs\\\\.*\nMCT_INT\\\\.*\ncrtu_components\\\\.*\nMCT_Comp\\\\LIC_PROXY_API\\\\.*\ncrtx_product\\\\Tools\\\\VersionManager\ncrtu_rrm\\\\RRM_MLAPI\\\\Scenarios\\\\RRM\\\\PQA\\\\.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\BIN_.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\CONF_LTE_RRMLib.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\.*TDSCDMA.*","mkviewoptionalparam":"-vws \\\\${CCSTG_SNAP}\\${CLEARCASE_VIEWNAME}.vws","filterOutDestroySubBranchEvent":false,"rmviewonrename":true,"multiSitePollBuffer":"0"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:676) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at hudson.scm.SCMS.parseSCM(SCMS.java:59) at hudson.model.AbstractProject.submit(AbstractProject.java:1864) at hudson.model.Project.submit(Project.java:230) at hudson.model.Job.doConfigSubmit(Job.java:1229) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:795) at sun.reflect.GeneratedMethodAccessor1793.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324) at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:52) at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 79 more Caused by: java.lang.IllegalArgumentException: Failed to convert the changeset parameter of the constructor public hudson.plugins.clearcase.ClearCaseSCM(java.lang.String,java.lang.String,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,java.lang.String,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,boolean,boolean,java.lang.String,java.lang.String,boolean,boolean,java.lang.String,hudson.plugins.clearcase.AbstractClearCaseScm$ChangeSetLevel,hudson.plugins.clearcase.viewstorage.ViewStorage) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:773) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) ... 97 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.clearcase.AbstractClearCaseScm$ChangeSetLevel from {"value":"branch"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:676) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:771) ... 99 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.clearcase.AbstractClearCaseScm$ChangeSetLevel at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:247) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:758) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674) ... 101 more {noformat} Any jobs without ClearCase settings can be saved as usual. Downgrading to Jenkins Core 2.8 fixes the problem.

    Jenkins JIRA | 8 months ago | Kurt
    javax.servlet.ServletException: java.lang.IllegalArgumentException: Failed to instantiate class hudson.scm.SCM from {"value":"1","stapler-class":"hudson.plugins.clearcase.ClearCaseSCM","$class":"hudson.plugins.clearcase.ClearCaseSCM","viewname":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","viewpath":"${COMPUTERNAME}-snap-${PROJECT}-${MajorVersion}-${MinorBaseVersion}x","getConfigSpecFromFile":{"configSpecFileName":"${ClearCaseConfigSpec}"},"configspec":"TO_BE_SET_ON_FIRST_RUN","useupdate":true,"changeset":{"value":"branch"},"branch":"main\nbr_${PROJECT}_REL_${MajorVersion}_${MinorBaseVersion}x","label":"","excludedRegions":".*\\\\BuildIDs\\\\.*\n.*\\\\Specs\\\\.*\nMCT_INT\\\\.*\ncrtu_components\\\\.*\nMCT_Comp\\\\LIC_PROXY_API\\\\.*\ncrtx_product\\\\Tools\\\\VersionManager\ncrtu_rrm\\\\RRM_MLAPI\\\\Scenarios\\\\RRM\\\\PQA\\\\.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\BIN_.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\CONF_LTE_RRMLib.*\ncrtu_rrm\\\\RRM_MLAPI\\\\RRMLib\\\\release\\\\lib\\\\.*TDSCDMA.*","mkviewoptionalparam":"-vws \\\\${CCSTG_SNAP}\\${CLEARCASE_VIEWNAME}.vws","filterOutDestroySubBranchEvent":false,"rmviewonrename":true,"multiSitePollBuffer":"0"}

  1. davidvanlaatum 1 times, last 9 months ago
  2. rp 1 times, last 11 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    class samplepackage.HelloWorldBuilder does not have a constructor with 1 arguments

    at org.kohsuke.stapler.RequestImpl.findConstructor()
  2. Stapler
    RequestImpl.bindJSON
    1. org.kohsuke.stapler.RequestImpl.findConstructor(RequestImpl.java:408)
    2. org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:316)
    2 frames
  3. Hudson
    AbstractProject.doConfigSubmit
    1. hudson.model.Descriptor.newInstance(Descriptor.java:179)
    2. hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:360)
    3. hudson.util.DescribableList.rebuildHetero(DescribableList.java:157)
    4. hudson.model.Project.submit(Project.java:167)
    5. hudson.model.FreeStyleProject.submit(FreeStyleProject.java:68)
    6. hudson.model.Job.doConfigSubmit(Job.java:858)
    7. hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:320)
    7 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Stapler
    Stapler.service
    1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:146)
    2. org.kohsuke.stapler.Function.bindAndinvoke(Function.java:71)
    3. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
    4. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
    5. org.kohsuke.stapler.Stapler.invoke(Stapler.java:409)
    6. org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:173)
    7. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
    8. org.kohsuke.stapler.Stapler.invoke(Stapler.java:409)
    9. org.kohsuke.stapler.Stapler.invoke(Stapler.java:352)
    10. org.kohsuke.stapler.Stapler.service(Stapler.java:112)
    10 frames
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    1 frame
  7. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
    2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074)
    2 frames
  8. Hudson
    PluginServletFilter.doFilter
    1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:61)
    2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:53)
    2 frames
  9. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
    1 frame
  10. Hudson
    HudsonFilter.doFilter
    1. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88)
    1 frame
  11. Jetty Server
    SelectChannelEndPoint.run
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
    4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
    7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
    8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    10. org.mortbay.jetty.Server.handle(Server.java:285)
    11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
    12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:765)
    13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:628)
    14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
    15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
    16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
    16 frames
  12. Jetty Util
    BoundedThreadPool$PoolThread.run
    1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
    1 frame