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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • clover-plugin
    • None
    • 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

      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)

          [JENKINS-6769] Receiving HTTP 500 and a 'NoStaplerConstructorException' when trying to add clover coverage plugin to a build

          Same issue here with Hudson 1.364 and Clover plugin 3.0.1.

          sebastian_bergmann added a comment - Same issue here with Hudson 1.364 and Clover plugin 3.0.1.

          dhavalshah added a comment -

          i have the same issue on a windows slave with jdk 1.6.0_18 and hundson 1.364

          dhavalshah added a comment - i have the same issue on a windows slave with jdk 1.6.0_18 and hundson 1.364

          asgeirn added a comment -

          Try the 3.0.2-SNAPSHOT build at http://dl.dropbox.com/u/4761274/clover.hpi – it resolves this issue for my installation.

          Great if you feed back whether it works for you.

          asgeirn added a comment - Try the 3.0.2-SNAPSHOT build at http://dl.dropbox.com/u/4761274/clover.hpi – it resolves this issue for my installation. Great if you feed back whether it works for you.

          Code changed in hudson
          User: : asgeirn
          Path:
          trunk/hudson/plugins/clover/pom.xml
          trunk/hudson/plugins/clover/src/main/java/hudson/plugins/clover/CloverPublisher.java
          http://jenkins-ci.org/commit/32446
          Log:
          Fix for JENKINS-6769. Updated to Clover 3.0.2.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : asgeirn Path: trunk/hudson/plugins/clover/pom.xml trunk/hudson/plugins/clover/src/main/java/hudson/plugins/clover/CloverPublisher.java http://jenkins-ci.org/commit/32446 Log: Fix for JENKINS-6769 . Updated to Clover 3.0.2.

          gruberro added a comment -

          Works good for me.

          gruberro added a comment - Works good for me.

          nickpeirson added a comment -

          This works for me also.

          nickpeirson added a comment - This works for me also.

          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!

          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!

          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.

          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.

          semtlnori added a comment -

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

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

          asgeirn added a comment -

          Fixed in 3.0.2.

          asgeirn added a comment - Fixed in 3.0.2.

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

              Created:
              Updated:
              Resolved: