• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • clover-plugin
    • None
    • Windows XP

      I'm trying to set up my hudson project to integrate clover using Ant without having to change my build.xml. The build is fine until I add clover and I get the following:

      Adding Clover Publisher with reportDir: clover
      FATAL: hudson.util.DescribableList.add(Lhudson/model/Describable;)V
      java.lang.NoSuchMethodError: hudson.util.DescribableList.add(Lhudson/model/Describable;)V
      at hudson.plugins.clover.CloverBuildWrapper.addCloverPublisher(CloverBuildWrapper.java:66)
      at hudson.plugins.clover.CloverBuildWrapper.setUp(CloverBuildWrapper.java:57)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:127)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      at hudson.model.Run.run(Run.java:1179)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)

      This is stopping me from finishing the set up. I've browsed the net and forums, but no one seems to have run into this issue. I'm currently on using plugin 2.5, with ant 1.7.1 and hudson 1.339.

      Any help will be appreciated.

      Many thanks

          [JENKINS-5168] NoSuchMethodError

          drewrm added a comment -

          The add method was removed in r23326.

          drewrm added a comment - The add method was removed in r23326 .

          realskills added a comment -

          Thanks for the response drewrm. However I still don't know how to fix this though. It seems as if the latest clover plugin is still indirectly trying to call this method. I think it's being called from CloverBuildWrapper, which is unpacked from the clover.hpi file I downloaded through hudson. Any ideas?

          Cheers

          realskills added a comment - Thanks for the response drewrm. However I still don't know how to fix this though. It seems as if the latest clover plugin is still indirectly trying to call this method. I think it's being called from CloverBuildWrapper, which is unpacked from the clover.hpi file I downloaded through hudson. Any ideas? Cheers

          npellow added a comment -

          Thanks for reporting this.

          The problem was that version 2.5 of the Clover plugin was compiled against an older version of Hudson.

          When the DescribableList class was refactored to extend PersistedList, the add method referenced in the clover plugin still pointed to DescribableList, instead of its new parent class.

          I've compiled and released a new version of the Clover Hudson plugin, that will work with newer versions of Hudson, 1.339+ however will break under older versions.

          npellow added a comment - Thanks for reporting this. The problem was that version 2.5 of the Clover plugin was compiled against an older version of Hudson. When the DescribableList class was refactored to extend PersistedList, the add method referenced in the clover plugin still pointed to DescribableList, instead of its new parent class. I've compiled and released a new version of the Clover Hudson plugin, that will work with newer versions of Hudson, 1.339+ however will break under older versions.

          Code changed in hudson
          User: : npellow
          Path:
          trunk/hudson/plugins/clover/pom.xml
          http://jenkins-ci.org/commit/28105
          Log:
          JENKINS-5168: recompiled plugin against hudson 1.348

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : npellow Path: trunk/hudson/plugins/clover/pom.xml http://jenkins-ci.org/commit/28105 Log: JENKINS-5168 : recompiled plugin against hudson 1.348

          Code changed in hudson
          User: : npellow
          Path:
          trunk/hudson/plugins/clover/pom.xml
          http://jenkins-ci.org/commit/28106
          Log:
          JENKINS-5168: recompiled plugin against hudson 1.348

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : npellow Path: trunk/hudson/plugins/clover/pom.xml http://jenkins-ci.org/commit/28106 Log: JENKINS-5168 : recompiled plugin against hudson 1.348

            npellow npellow
            realskills realskills
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: