Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34459

There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.gitclient.MergeCommand$Strategy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • git-plugin

      The Pipeline snippet generator throws java.lang.reflect.InvocationTargetException when you try to generate a snippet for General SCM, using Git, when you add "Merge before build" to the "Additional behaviors" choices. This is broken in Pipeline version 2.0 and Git plugin version 2.4.4. Not sure which of the two is the culprit. It works in Pipeline version 1.10.

      Repro steps:
      1. Open the Snippet Generator and choose 'checkout: General SCM'
      2. Choose Git for the SCM, then fill in the required fields
      3. Add an Additional behavior, and choose 'Merge before build' from the choices
      4. Fill in the necessary fields and click 'Generate Groovy'

      In the Jenkins log, the following exception occurs and no Groovy is generated:

      2016-04-26 21:55:52.184175500 java.lang.reflect.InvocationTargetException
      2016-04-26 21:55:52.184176500 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2016-04-26 21:55:52.184178500 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      2016-04-26 21:55:52.184179500 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2016-04-26 21:55:52.184319500 	at java.lang.reflect.Method.invoke(Method.java:606)
      2016-04-26 21:55:52.184320500 	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:320)
      2016-04-26 21:55:52.184321500 	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:163)
      2016-04-26 21:55:52.184323500 	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      2016-04-26 21:55:52.184324500 	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
      2016-04-26 21:55:52.184396500 	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      2016-04-26 21:55:52.184398500 	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      2016-04-26 21:55:52.184399500 	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      2016-04-26 21:55:52.184401500 	at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
      2016-04-26 21:55:52.184460500 	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      2016-04-26 21:55:52.184461500 	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      2016-04-26 21:55:52.184463500 	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
      2016-04-26 21:55:52.184464500 	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
      2016-04-26 21:55:52.184465500 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      2016-04-26 21:55:52.184549500 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
      2016-04-26 21:55:52.184551500 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
      2016-04-26 21:55:52.184553500 	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
      2016-04-26 21:55:52.184554500 	at com.cloudbees.jenkins.support.slowrequest.SlowRequestFilter.doFilter(SlowRequestFilter.java:37)
      2016-04-26 21:55:52.184620500 	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      2016-04-26 21:55:52.184622500 	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
      2016-04-26 21:55:52.184624500 	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      2016-04-26 21:55:52.184625500 	at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:117)
      2016-04-26 21:55:52.184690500 	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      2016-04-26 21:55:52.184735500 	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
      2016-04-26 21:55:52.184737500 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      2016-04-26 21:55:52.184738500 	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      2016-04-26 21:55:52.184740500 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      2016-04-26 21:55:52.184824500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      2016-04-26 21:55:52.184826500 	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      2016-04-26 21:55:52.184828500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      2016-04-26 21:55:52.184829500 	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      2016-04-26 21:55:52.184894500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      2016-04-26 21:55:52.184896500 	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      2016-04-26 21:55:52.184897500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      2016-04-26 21:55:52.184899500 	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      2016-04-26 21:55:52.184967500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      2016-04-26 21:55:52.184968500 	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      2016-04-26 21:55:52.184970500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      2016-04-26 21:55:52.184971500 	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
      2016-04-26 21:55:52.185037500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      2016-04-26 21:55:52.185038500 	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      2016-04-26 21:55:52.185040500 	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      2016-04-26 21:55:52.185041500 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      2016-04-26 21:55:52.185112500 	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      2016-04-26 21:55:52.185114500 	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
      2016-04-26 21:55:52.185115500 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      2016-04-26 21:55:52.185175500 	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      2016-04-26 21:55:52.185177500 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      2016-04-26 21:55:52.185179500 	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      2016-04-26 21:55:52.185180500 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      2016-04-26 21:55:52.185246500 	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      2016-04-26 21:55:52.185248500 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
      2016-04-26 21:55:52.185249500 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
      2016-04-26 21:55:52.185251500 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      2016-04-26 21:55:52.185334500 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
      2016-04-26 21:55:52.185336500 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      2016-04-26 21:55:52.185337500 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      2016-04-26 21:55:52.185338500 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      2016-04-26 21:55:52.185406500 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      2016-04-26 21:55:52.185407500 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      2016-04-26 21:55:52.185409500 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      2016-04-26 21:55:52.185410500 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      2016-04-26 21:55:52.185475500 	at org.eclipse.jetty.server.Server.handle(Server.java:370)
      2016-04-26 21:55:52.185476500 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      2016-04-26 21:55:52.185478500 	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
      2016-04-26 21:55:52.185480500 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
      2016-04-26 21:55:52.185555500 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
      2016-04-26 21:55:52.185557500 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
      2016-04-26 21:55:52.185558500 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      2016-04-26 21:55:52.185560500 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
      2016-04-26 21:55:52.185625500 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      2016-04-26 21:55:52.185627500 	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      2016-04-26 21:55:52.185628500 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2016-04-26 21:55:52.185629500 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      2016-04-26 21:55:52.185724500 	at java.lang.Thread.run(Thread.java:745)
      2016-04-26 21:55:52.185725500 Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.gitclient.MergeCommand$Strategy
      2016-04-26 21:55:52.185727500 	at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:177)
      2016-04-26 21:55:52.185729500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.<init>(DescribableModel.java:105)
      2016-04-26 21:55:52.185798500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      2016-04-26 21:55:52.185800500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      2016-04-26 21:55:52.185802500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      2016-04-26 21:55:52.185865500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      2016-04-26 21:55:52.185867500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      2016-04-26 21:55:52.185868500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      2016-04-26 21:55:52.185930500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      2016-04-26 21:55:52.185931500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      2016-04-26 21:55:52.185933500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      2016-04-26 21:55:52.185993500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      2016-04-26 21:55:52.185995500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:158)
      2016-04-26 21:55:52.185996500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      2016-04-26 21:55:52.186060500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      2016-04-26 21:55:52.186061500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      2016-04-26 21:55:52.186063500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      2016-04-26 21:55:52.186121500 	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      2016-04-26 21:55:52.186123500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      2016-04-26 21:55:52.186124500 	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      2016-04-26 21:55:52.186187500 	at org.jenkinsci.plugins.workflow.steps.StepDescriptor.defineArguments(StepDescriptor.java:114)
      2016-04-26 21:55:52.186189500 	at org.jenkinsci.plugins.workflow.cps.Snippetizer.object2Groovy(Snippetizer.java:68)
      2016-04-26 21:55:52.186190500 	at org.jenkinsci.plugins.workflow.cps.Snippetizer.doGenerateSnippet(Snippetizer.java:218)
      2016-04-26 21:55:52.186192500 	... 78 more
      

            jglick Jesse Glick
            owenmehegan Owen Mehegan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: