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

Crap4J-Plugin does not work with current Hudson (1.368)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Enabling the plugin for a project in the configuration and applying the config lead to the following exception:

      javax.servlet.ServletException: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.crap4j.Crap4JPublisher
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:569)
      org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      org.kohsuke.stapler.Stapler.service(Stapler.java:132)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

      root cause

      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.crap4j.Crap4JPublisher
      org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:470)
      org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:290)
      org.kohsuke.stapler.RequestImpl.bindParameters(RequestImpl.java:286)
      hudson.plugins.crap4j.Crap4JPluginDescriptor.newInstance(Crap4JPluginDescriptor.java:37)
      hudson.plugins.crap4j.Crap4JPluginDescriptor.newInstance(Crap4JPluginDescriptor.java:14)
      hudson.util.DescribableList.rebuild(DescribableList.java:147)
      hudson.model.Project.submit(Project.java:198)
      hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97)
      hudson.model.Job.doConfigSubmit(Job.java:1086)
      hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:555)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
      org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      org.kohsuke.stapler.Stapler.service(Stapler.java:132)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : dlindner
          Path:
          trunk/hudson/plugins/crap4j/pom.xml
          trunk/hudson/plugins/crap4j/src/main/java/hudson/plugins/crap4j/Crap4JPublisher.java
          trunk/hudson/plugins/crap4j/src/main/resources/hudson/plugins/crap4j/Crap4JPublisher/config.jelly
          trunk/hudson/plugins/crap4j/src/main/resources/hudson/plugins/crap4j/Crap4JPublisher/global.jelly
          trunk/hudson/plugins/crap4j/src/test/java/hudson/plugins/crap4j/calculation/HealthBuilderTest.java
          http://jenkins-ci.org/commit/33487
          Log:
          Correct saving of configured path and threshold (fixes #JENKINS-5493)
          Works with Hudson 1.368 again (fixes #JENKINS-7088)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : dlindner Path: trunk/hudson/plugins/crap4j/pom.xml trunk/hudson/plugins/crap4j/src/main/java/hudson/plugins/crap4j/Crap4JPublisher.java trunk/hudson/plugins/crap4j/src/main/resources/hudson/plugins/crap4j/Crap4JPublisher/config.jelly trunk/hudson/plugins/crap4j/src/main/resources/hudson/plugins/crap4j/Crap4JPublisher/global.jelly trunk/hudson/plugins/crap4j/src/test/java/hudson/plugins/crap4j/calculation/HealthBuilderTest.java http://jenkins-ci.org/commit/33487 Log: Correct saving of configured path and threshold (fixes # JENKINS-5493 ) Works with Hudson 1.368 again (fixes # JENKINS-7088 )
          Hide
          dlindner dlindner added a comment -

          This is fixed and will be released within version 0.8

          Show
          dlindner dlindner added a comment - This is fixed and will be released within version 0.8

            People

            • Assignee:
              dlindner dlindner
              Reporter:
              miq miq
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: