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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 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

    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

          nickpeirson nickpeirson created issue -
          asgeirn asgeirn added a comment -

          Same error on Hudson 1.363, same JVM and Solaris SPARC.

          asgeirn asgeirn added a comment - Same error on Hudson 1.363, same JVM and Solaris SPARC.
          leefox leefox added a comment -

          Same issue on Hudson 1.362, java 1.6.0_12, Debian Linux

          leefox leefox added a comment - Same issue on Hudson 1.362, java 1.6.0_12, Debian Linux
          semtlnori semtlnori added a comment -

          Same error on Hudson 1.362, java 1.6.0_18 and CentOS 5.3

          semtlnori semtlnori added a comment - Same error on Hudson 1.362, java 1.6.0_18 and CentOS 5.3
          gruberro gruberro added a comment -

          Same issue on Hudson ver. 1.364, java 1.6.0_12, Debian Linux

          gruberro gruberro added a comment - Same issue on Hudson ver. 1.364, java 1.6.0_12, Debian Linux

          Same issue here with Hudson 1.364 and Clover plugin 3.0.1.

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

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

          dhavalshah dhavalshah added a comment - i have the same issue on a windows slave with jdk 1.6.0_18 and hundson 1.364
          dhavalshah dhavalshah made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Blocker [ 1 ]
          asgeirn 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 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_issue_link 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 gruberro added a comment -

          Works good for me.

          gruberro gruberro added a comment - Works good for me.
          asgeirn asgeirn made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          asgeirn asgeirn made changes -
          Assignee stephenconnolly [ stephenconnolly ] asgeirn [ asgeirn ]
          nickpeirson nickpeirson added a comment -

          This works for me also.

          nickpeirson 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 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 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 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 semtlnori added a comment -

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

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

          Fixed in 3.0.2.

          asgeirn asgeirn added a comment - Fixed in 3.0.2.
          asgeirn asgeirn made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          abayer Andrew Bayer made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 136864 ] JNJira + In-Review [ 204256 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: