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

Configuration Slicing for Editable Email Notification not working anymore with latest versions

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Configuration Slicing Plugin: 1.38.3
      Email Extension Plugin: 2.36
      Jenkins: 1.544
    • Similar Issues:

      Description

      The above combination is not working any longer and produces the following stacktrace when trying to change the configuration of the recipient

      avax.servlet.ServletException: java.lang.NoSuchMethodError: hudson.plugins.emailext.plugins.trigger.FailureTrigger: method <init>()V not found
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	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:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      Caused by: java.lang.NoSuchMethodError: hudson.plugins.emailext.plugins.trigger.FailureTrigger: method <init>()V not found
      	at configurationslicing.email.ExtEmailSlicer$ExtEmailSliceSpec.addMailer(ExtEmailSlicer.java:81)
      	at configurationslicing.email.AbstractEmailSliceSpec.setValues(AbstractEmailSliceSpec.java:57)
      	at configurationslicing.email.AbstractEmailSliceSpec.setValues(AbstractEmailSliceSpec.java:16)
      	at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:100)
      	at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:6)
      	at configurationslicing.ConfigurationSlicing$SliceExecutor.transform(ConfigurationSlicing.java:135)
      	at configurationslicing.ConfigurationSlicing$SliceExecutor.doSliceconfigSubmit(ConfigurationSlicing.java:179)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      	... 44 more
      

        Attachments

          Activity

          Hide
          batmat Baptiste Mathus added a comment -

          For the record, just reproduced with :

          • Jenkins 1.531
          • Configuration Slicing Plugin : 1.37
          • Email-Ext plugin : 2.34
          Show
          batmat Baptiste Mathus added a comment - For the record, just reproduced with : Jenkins 1.531 Configuration Slicing Plugin : 1.37 Email-Ext plugin : 2.34
          Hide
          eguess74 eguess74 added a comment - - edited

          same thing here - unable to do configuration slicing

          config slicing - 1.38.3
          jenkins 1.578
          email ext 2.38.2 and 2.39

          Show
          eguess74 eguess74 added a comment - - edited same thing here - unable to do configuration slicing config slicing - 1.38.3 jenkins 1.578 email ext 2.38.2 and 2.39
          Hide
          slide_o_mix Alex Earl added a comment -

          The code needs to be updated since the FailureTrigger no longer has an empty constructor. Would need to use FailureTrigger.createDefault() instead.

          Show
          slide_o_mix Alex Earl added a comment - The code needs to be updated since the FailureTrigger no longer has an empty constructor. Would need to use FailureTrigger.createDefault() instead.
          Hide
          ninian Ninian added a comment -
          Show
          ninian Ninian added a comment - Should be fixed by https://github.com/jenkinsci/configurationslicing-plugin/pull/15
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ninian
          Path:
          pom.xml
          src/main/java/configurationslicing/email/ExtEmailSlicer.java
          src/main/java/configurationslicing/email/ProjectHandler.java
          src/test/java/configurationslicing/EmailSlicerTest.java
          http://jenkins-ci.org/commit/configurationslicing-plugin/68c4a9704b8a9ce4ea630a9bee605ea8638f69fb
          Log:
          [FIXED JENKINS-21225]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ninian Path: pom.xml src/main/java/configurationslicing/email/ExtEmailSlicer.java src/main/java/configurationslicing/email/ProjectHandler.java src/test/java/configurationslicing/EmailSlicerTest.java http://jenkins-ci.org/commit/configurationslicing-plugin/68c4a9704b8a9ce4ea630a9bee605ea8638f69fb Log: [FIXED JENKINS-21225]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ninian
          Path:
          pom.xml
          src/main/java/configurationslicing/email/ExtEmailSlicer.java
          src/main/java/configurationslicing/email/ProjectHandler.java
          src/test/java/configurationslicing/EmailSlicerTest.java
          http://jenkins-ci.org/commit/configurationslicing-plugin/e454609618fb7400a6a092080185ee9131eb7b69
          Log:
          Merge pull request #15 from ninian/master

          PR for JENKINS-21225

          Compare: https://github.com/jenkinsci/configurationslicing-plugin/compare/c0d1e56794ac...e454609618fb

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ninian Path: pom.xml src/main/java/configurationslicing/email/ExtEmailSlicer.java src/main/java/configurationslicing/email/ProjectHandler.java src/test/java/configurationslicing/EmailSlicerTest.java http://jenkins-ci.org/commit/configurationslicing-plugin/e454609618fb7400a6a092080185ee9131eb7b69 Log: Merge pull request #15 from ninian/master PR for JENKINS-21225 Compare: https://github.com/jenkinsci/configurationslicing-plugin/compare/c0d1e56794ac...e454609618fb

            People

            • Assignee:
              mdonohue mdonohue
              Reporter:
              christiangalsterer Christian Galsterer
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: