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

Receiving HTTP 500 and a 'NoStaplerConstructorException' when trying to add clover coverage plugin to a build

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: clover-plugin
    • Labels:
      None
    • Environment:
      Clover Plugin ver. 3.0.1
      Hudson ver. 1.362
      java version "1.6.0_18"
      OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
      OpenJDK Server VM (build 14.0-b16, mixed mode)
      Ubuntu 10.04
    • Similar Issues:

      Description

      I set up a job and selected the "Publish Clover Coverage Report" option and set the paths to the clover output. When I tried to save the project I received the following exception:

      Status Code: 500
      Exception:
      Stacktrace:

      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.clover.CloverPublisher
      at org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:461)
      at org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:285)
      at org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:281)
      at hudson.plugins.clover.CloverPublisher$DescriptorImpl.newInstance(CloverPublisher.java:331)
      at hudson.plugins.clover.CloverPublisher$DescriptorImpl.newInstance(CloverPublisher.java:307)
      at hudson.util.DescribableList.rebuild(DescribableList.java:147)
      at hudson.model.Project.submit(Project.java:198)
      at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97)
      at hudson.model.Job.doConfigSubmit(Job.java:1051)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:555)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
      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:525)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at hudson.plugins.collabnet.auth.CNFilter.doFilter(CNFilter.java:90)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:636)

        Attachments

          Activity

          Hide
          nickpeirson nickpeirson added a comment -

          This works for me also.

          Show
          nickpeirson nickpeirson added a comment - This works for me also.
          Hide
          patricktreilly patricktreilly added a comment -

          Sorry for the dumb question, but how do I update to 3.0.2?

          I originally installed Clover 3.0.1 using the Hudson plugin manager. I just uninstalled 3.0.1 and removed the clover.hpi file from my hudson directory. Clover has been removed from my installed plugin list but under available plugins, it only lists 3.0.1.

          Thanks!

          Show
          patricktreilly patricktreilly added a comment - Sorry for the dumb question, but how do I update to 3.0.2? I originally installed Clover 3.0.1 using the Hudson plugin manager. I just uninstalled 3.0.1 and removed the clover.hpi file from my hudson directory. Clover has been removed from my installed plugin list but under available plugins, it only lists 3.0.1. Thanks!
          Hide
          asgeirn asgeirn added a comment -

          I only released 3.0.2 just now – you can either download it at http://dl.dropbox.com/u/4761274/clover.hpi and store the clover.hpi in your .hudson/plugins folder, or wait for the update center to pick it up.

          Show
          asgeirn asgeirn added a comment - I only released 3.0.2 just now – you can either download it at http://dl.dropbox.com/u/4761274/clover.hpi and store the clover.hpi in your .hudson/plugins folder, or wait for the update center to pick it up.
          Hide
          semtlnori semtlnori added a comment -

          I updated clover plugin to 3.0.2 and it works well for me. Thank you!

          Show
          semtlnori semtlnori added a comment - I updated clover plugin to 3.0.2 and it works well for me. Thank you!
          Hide
          asgeirn asgeirn added a comment -

          Fixed in 3.0.2.

          Show
          asgeirn asgeirn added a comment - Fixed in 3.0.2.

            People

            • Assignee:
              asgeirn asgeirn
              Reporter:
              nickpeirson nickpeirson
            • Votes:
              10 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: