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

Adding cobertura configuration info to job throws exception on 'Save'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • cobertura-plugin
    • None
    • Platform: All, OS: Linux

      Lately when trying to configure the cobertura plugin the first time, I get the
      following exception when I press 'Save' on the configuration page for the job:

      Status Code: 500
      Exception:
      Stacktrace:

      java.lang.IllegalArgumentException: Unable to convert to class
      hudson.plugins.cobertura.targets.CoverageMetric
      at org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:262)
      at org.kohsuke.stapler.RequestImpl.bindParametersToList(RequestImpl.java:212)
      at
      hudson.plugins.cobertura.CoberturaPublisher$DescriptorImpl.newInstance(CoberturaPublisher.java:373)
      at
      hudson.plugins.cobertura.CoberturaPublisher$DescriptorImpl.newInstance(CoberturaPublisher.java:310)
      at hudson.model.Descriptor.newInstance(Descriptor.java:133)
      at hudson.model.AbstractProject.buildDescribable(AbstractProject.java:914)
      at hudson.model.Project.submit(Project.java:154)
      at hudson.model.Job.doConfigSubmit(Job.java:756)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:294)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103)
      at org.kohsuke.stapler.Function.bindAndinvoke(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:431)
      at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:254)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:431)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:359)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:119)
      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.security.HudsonFilter.doFilter(HudsonFilter.java:88)
      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:595)

      Workaround: I am copying the xml pertinent to the Cobertura plugin from another
      project that had already been configured into the new <job>/config.xml.

      Versions:
      Hudson v1.214 and the following plugins/versions:

      jira — ver.1.12
      findbugs — ver.2.6
      accurev — ver.0.6.1
      build-timeout — ver.1.3
      ci-game — ver.1.2
      cobertura — ver.0.8.4
      violations — ver.0.6.0

            stephenconnolly Stephen Connolly
            spfister spfister
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: