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

email-ext.jar might need to be rebuilt in email-ext 2.37

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • email-ext-plugin
    • None
    • CentOS, Java(TM) SE Runtime Environment (build 1.7.0_45-b18), Jenkins ver. 1.546, Maven Integration plugin ver. 2.1, email-ext plugin ver. 2.37

    Description

      After upgrading jenkins and updating plugins to the latest versions in my jenkins log I see:

      WARNING: Failed to scout hudson.plugins.emailext.JellyTemplateConfig$JellyTemplateConfigProvider
      java.lang.InstantiationException: /home/jenkins/.jenkins/plugins/email-ext/WEB-INF/lib/email-ext.jar might need to be rebuilt: java.lang.ClassNotFoundException: hudson.plugins.emailext.JellyTemplateConfig$JellyTemplateConfigProvider
              at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
              at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:310)
              at hudson.ExtensionList.load(ExtensionList.java:295)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
              at hudson.ExtensionList.iterator(ExtensionList.java:138)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:309)
              at hudson.ExtensionList.load(ExtensionList.java:295)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
              at hudson.ExtensionList.getComponents(ExtensionList.java:149)
              at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
              at hudson.ExtensionList.iterator(ExtensionList.java:138)
              at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:101)
              at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
              at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112)
              at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:717)
              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.HudsonFilter.doFilter(HudsonFilter.java:162)
              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:502)
              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:953)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
              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:744)
      Caused by: java.lang.ClassNotFoundException: hudson.plugins.emailext.JellyTemplateConfig$JellyTemplateConfigProvider
              at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:984)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
              ... 64 more
      
      sty 10, 2014 2:26:34 PM hudson.ExtensionFinder$Sezpoz scout
      WARNING: Failed to scout hudson.plugins.emailext.GroovyTemplateConfig$GroovyTemplateConfigProvider
      java.lang.InstantiationException: /home/jenkins/.jenkins/plugins/email-ext/WEB-INF/lib/email-ext.jar might need to be rebuilt: java.lang.ClassNotFoundException: hudson.plugins.emailext.GroovyTemplateConfig$GroovyTemplateConfigProvider
              at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
              at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:310)
              at hudson.ExtensionList.load(ExtensionList.java:295)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
              at hudson.ExtensionList.iterator(ExtensionList.java:138)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:309)
              at hudson.ExtensionList.load(ExtensionList.java:295)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
              at hudson.ExtensionList.getComponents(ExtensionList.java:149)
              at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:182)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
              at hudson.ExtensionList.iterator(ExtensionList.java:138)
              at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:101)
              at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
              at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112)
              at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:717)
              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.HudsonFilter.doFilter(HudsonFilter.java:162)
              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:502)
              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:953)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
              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:744)
      Caused by: java.lang.ClassNotFoundException: hudson.plugins.emailext.GroovyTemplateConfig$GroovyTemplateConfigProvider
              at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:984)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
              ... 64 more
      

      Email-ext plugin ver. 2.36 works fine.

      Attachments

        Issue Links

          Activity

            slide_o_mix Alex Earl added a comment -

            Re-added maven-plugin as a dependency, it got removed from the pom.xml somehow, perhaps during some testing.

            slide_o_mix Alex Earl added a comment - Re-added maven-plugin as a dependency, it got removed from the pom.xml somehow, perhaps during some testing.

            I still get this with 2.73.1, Token macro 1.9, and the Jenkins RC build of 1.548.

            smorriso Stephen Morrison added a comment - I still get this with 2.73.1, Token macro 1.9, and the Jenkins RC build of 1.548.
            medianick Nick Jones added a comment -

            I'm getting with email-ext 2.37.1 and Jenkins LTS 1.532.1.

            medianick Nick Jones added a comment - I'm getting with email-ext 2.37.1 and Jenkins LTS 1.532.1.

            I still get this with 2.37.1 and Jenkins 1.548

            yesing Ryang Woo Park added a comment - I still get this with 2.37.1 and Jenkins 1.548
            maccer Mac Cer added a comment -

            I also want to add that this still happens with email-ext 2.37.1 and Jenkins LTS 1.532.1.
            So, could this please be reopened as it currently still says "resolved" which it is apparently not.

            maccer Mac Cer added a comment - I also want to add that this still happens with email-ext 2.37.1 and Jenkins LTS 1.532.1. So, could this please be reopened as it currently still says "resolved" which it is apparently not.

            Fix doesn't work (2.37.1, Jenkins 1.548)

            jcarsique Julien Carsique added a comment - Fix doesn't work (2.37.1, Jenkins 1.548)
            alexism Alexis Midon added a comment -

            same issue here. (2.37.1, Jenkins 1.548)

            alexism Alexis Midon added a comment - same issue here. (2.37.1, Jenkins 1.548)
            slide_o_mix Alex Earl added a comment -

            I haven't been able to reproduce this...so I will need a bunch more information.

            slide_o_mix Alex Earl added a comment - I haven't been able to reproduce this...so I will need a bunch more information.
            slide_o_mix Alex Earl added a comment -

            Please try and install the config file provider plugin and see if the issue goes away.

            slide_o_mix Alex Earl added a comment - Please try and install the config file provider plugin and see if the issue goes away.

            Code changed in jenkins
            User: Alex Earl
            Path:
            pom.xml
            src/main/java/hudson/plugins/emailext/GroovyTemplateConfig.java
            src/main/java/hudson/plugins/emailext/JellyTemplateConfig.java
            src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
            http://jenkins-ci.org/commit/email-ext-plugin/a497a3d1392e97355c9c050109fd8c1bf9172a1a
            Log:
            Fix JENKINS-21326

            Made the config file provider classes optional Extensions.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: pom.xml src/main/java/hudson/plugins/emailext/GroovyTemplateConfig.java src/main/java/hudson/plugins/emailext/JellyTemplateConfig.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/a497a3d1392e97355c9c050109fd8c1bf9172a1a Log: Fix JENKINS-21326 Made the config file provider classes optional Extensions.
            slide_o_mix Alex Earl added a comment -

            Marked Extension on Config subclasses as optional so if the Config File Provider plugin is not available, they won't cause errors.

            slide_o_mix Alex Earl added a comment - Marked Extension on Config subclasses as optional so if the Config File Provider plugin is not available, they won't cause errors.
            medianick Nick Jones added a comment -

            Thanks Alex; the 2.37.2 version fixed this issue for me.

            medianick Nick Jones added a comment - Thanks Alex; the 2.37.2 version fixed this issue for me.
            ktheil Karl Theil added a comment -

            Thanks, fixed for me too.

            ktheil Karl Theil added a comment - Thanks, fixed for me too.

            People

              slide_o_mix Alex Earl
              tomaszuss Tomasz Uss
              Votes:
              2 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: