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

Cant use bitbucket-scm-filter-aged-refs plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When adding theĀ Aged refs filter to a job config and saving I get this error:

      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait
      at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:265)
      at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:764)
      at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.scm.api.trait.SCMSourceTrait from {"retentionDays":"60","stapler-class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait","$class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait"}
      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680)
      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:727)
      at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
      at org.kohsuke.stapler.RequestImpl.injectSetters(RequestImpl.java:833)
      at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
      at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)

      ....

        Attachments

          Activity

          red888 red der created issue -
          red888 red der made changes -
          Field Original Value New Value
          Description When adding the Aged refs filter to a job config and saving I get this error:

          org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait
           at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:265)
           at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:764)
           at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
          Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.scm.api.trait.SCMSourceTrait from \{"retentionDays":"60","stapler-class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait","$class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait"}
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680)
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:727)
           at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
           at org.kohsuke.stapler.RequestImpl.injectSetters(RequestImpl.java:833)
           at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
           at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
          Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.scm.api.SCMSource from \{"stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource","id":"377bd95a-a260-4273-93e3-8a256424ed7a","serverUrl":"https://bitbucket.org","credentialsId":"CRED_BINDING_BOMBORA-DEVOPS-USER","repoOwner":"bombora-source","repository":"triggergroup","traits":[{"strategyId":"1","stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.BranchDiscoveryTrait","$class":"com.cloudbees.jenkins.plugins.bitbucket.BranchDiscoveryTrait"},\{"strategyId":"1","stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait","$class":"com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait"},\{"strategyId":"1","":"1","trust":{"stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait$TrustTeamForks","$class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait$TrustTeamForks"},"stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait","$class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait"},\{"retentionDays":"60","stapler-class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait","$class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait"},\{"stapler-class":"jenkins.plugins.git.traits.GitLFSPullTrait","$class":"jenkins.plugins.git.traits.GitLFSPullTrait"}]}
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680)
           at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
           at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:777)
          Caused: java.lang.IllegalArgumentException: Failed to convert the source parameter of the constructor public jenkins.branch.BranchSource(jenkins.scm.api.SCMSource)
           at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:779)
           at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
          Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.branch.BranchSource from \{"source":{"stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource","id":"377bd95a-a260-4273-93e3-8a256424ed7a","serverUrl":"https://bitbucket.org","credentialsId":"CRED_BINDING_BOMBORA-DEVOPS-USER","repoOwner":"bombora-source","repository":"triggergroup","traits":[{"strategyId":"1","stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.BranchDiscoveryTrait","$class":"com.cloudbees.jenkins.plugins.bitbucket.BranchDiscoveryTrait"},\{"strategyId":"1","stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait","$class":"com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait"},\{"strategyId":"1","":"1","trust":{"stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait$TrustTeamForks","$class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait$TrustTeamForks"},"stapler-class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait","$class":"com.cloudbees.jenkins.plugins.bitbucket.ForkPullRequestDiscoveryTrait"},\{"retentionDays":"60","stapler-class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait","$class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait"},\{"stapler-class":"jenkins.plugins.git.traits.GitLFSPullTrait","$class":"jenkins.plugins.git.traits.GitLFSPullTrait"}]},"":"0","strategy":\{"props":{"stapler-class":"jenkins.branch.NoTriggerBranchProperty","$class":"jenkins.branch.NoTriggerBranchProperty"},"stapler-class":"jenkins.branch.DefaultBranchPropertyStrategy","$class":"jenkins.branch.DefaultBranchPropertyStrategy"},"stapler-class":"jenkins.branch.BranchSource","kind":"jenkins.branch.BranchSource"}
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680)
           at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
           at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474)
           at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:512)
           at jenkins.branch.MultiBranchProject.submit(MultiBranchProject.java:888)
           at com.cloudbees.hudson.plugins.folder.AbstractFolder.doConfigSubmit(AbstractFolder.java:1353)
           at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.doConfigSubmit(ComputedFolder.java:402)
           at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
           at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
           at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
           at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
           at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
           at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
           at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
           at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
           at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
          Caused: javax.servlet.ServletException
           at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:765)
           at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
           at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
           at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
           at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
           at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
           at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
           at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
           at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
           at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
           at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
           at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
           at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
           at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225)
           at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
           at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
           at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
           at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)
           at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
           at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)
           at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)
           at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)
           at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:114)
           at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
           at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
           at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
           at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
           at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
           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 jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
           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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
           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:67)
           at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
           at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
           at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
           at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
           at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
           at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
           at org.eclipse.jetty.server.Server.handle(Server.java:531)
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
           at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
           at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)
           at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
           at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
           at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
           at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
           at winstone.BoundedExecutorService.lambda$scheduleNext$0(BoundedExecutorService.java:80)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
           at java.lang.Thread.run(Unknown Source)

           
          When adding the Aged refs filter to a job config and saving I get this error:

          org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait
           at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:265)
           at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:764)
           at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
           Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.scm.api.trait.SCMSourceTrait from \{"retentionDays":"60","stapler-class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait","$class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait"}
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680)
           at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:727)
           at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
           at org.kohsuke.stapler.RequestImpl.injectSetters(RequestImpl.java:833)
           at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
           at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)

          ....
          red888 red der made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Closed [ 6 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            red888 red der
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: