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

Tagging a build fails due to exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cvs-plugin
    • Labels:
    • Environment:
      Jeknins 1.458
      CVS-Plugin 2.2
      Windows Server 2008
    • Similar Issues:

      Description

      Whenever I want to tag a build I get an error (see below). I am using Jeknins 1.458 ans CVS-Plugin 2.2. Do you have any suggestions?

      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:571)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:656)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:74)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NoSuchMethodError: hudson.model.TaskThread$ListenerAndText.forMemory(Lhudson/model/TaskThread;)Lhudson/model/TaskThread$ListenerAndText;
      at hudson.scm.cvstagging.CvsTagActionWorker.<init>(CvsTagActionWorker.java:29)
      at hudson.scm.cvstagging.CvsTagAction.perform(CvsTagAction.java:146)
      at hudson.scm.cvstagging.CvsTagAction.doSubmit(CvsTagAction.java:131)
      ... 75 more

        Attachments

          Activity

          Hide
          urban_novak Urban Novak added a comment -

          There is pretty much the same bug in LegacyTagAction.java:370

          Show
          urban_novak Urban Novak added a comment - There is pretty much the same bug in LegacyTagAction.java:370
          Hide
          metcox Mathieu Bernatet added a comment -

          Indeed, there is the same bug in LegacyTagAction. I've made a new pull request to fix this - https://github.com/jenkinsci/cvs-plugin/pull/13 . There is no remaining call on the method ListenerAndText.forMemory(Lhudson/model/TaskThread).

          Show
          metcox Mathieu Bernatet added a comment - Indeed, there is the same bug in LegacyTagAction. I've made a new pull request to fix this - https://github.com/jenkinsci/cvs-plugin/pull/13 . There is no remaining call on the method ListenerAndText.forMemory(Lhudson/model/TaskThread).
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mathieu Bernatet
          Path:
          src/main/java/hudson/scm/cvstagging/LegacyTagAction.java
          http://jenkins-ci.org/commit/cvs-plugin/b7ab97cdf2be1d3cb7f6b0e69eb06be4ab692541
          Log:
          fix JENKINS-13439 Tagging a build fails due to exception,
          do the same as commit 1a8d25a32daf1ec84f601c0ebefc42b6ade77524 with the
          remaining ListenerAndText.forMemory(Lhudson/model/TaskThread method
          call

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mathieu Bernatet Path: src/main/java/hudson/scm/cvstagging/LegacyTagAction.java http://jenkins-ci.org/commit/cvs-plugin/b7ab97cdf2be1d3cb7f6b0e69eb06be4ab692541 Log: fix JENKINS-13439 Tagging a build fails due to exception, do the same as commit 1a8d25a32daf1ec84f601c0ebefc42b6ade77524 with the remaining ListenerAndText.forMemory(Lhudson/model/TaskThread method call
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: mc1arke
          Path:
          src/main/java/hudson/scm/cvstagging/LegacyTagAction.java
          http://jenkins-ci.org/commit/cvs-plugin/1d0b8ee2d4eaec98b6d4546beb29a3a89eada64a
          Log:
          Merge pull request #13 from metcox/master

          additional fix for JENKINS-13439 Tagging a build fails due to exception

          Compare: https://github.com/jenkinsci/cvs-plugin/compare/07fe749...1d0b8ee

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: mc1arke Path: src/main/java/hudson/scm/cvstagging/LegacyTagAction.java http://jenkins-ci.org/commit/cvs-plugin/1d0b8ee2d4eaec98b6d4546beb29a3a89eada64a Log: Merge pull request #13 from metcox/master additional fix for JENKINS-13439 Tagging a build fails due to exception Compare: https://github.com/jenkinsci/cvs-plugin/compare/07fe749...1d0b8ee
          Hide
          mc1arke Michael Clarke added a comment -

          Release in version 2.4 of Cvs Plugin

          Show
          mc1arke Michael Clarke added a comment - Release in version 2.4 of Cvs Plugin

            People

            • Assignee:
              mc1arke Michael Clarke
              Reporter:
              rbenning Roland Benning
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: