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

"AdjunctManager is not installed for this application" upon failed boot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      AdjunctManager is installed only during the Hudson class constructor, so if the bootup fails in the pre-test of WebAppMain, it never gets instantiated, which breaks the <layout> tag, yet it's used to render error messages.

      I can add AdjunctManager to ErrorObject, but for the time being it was easier to make this a non-fatal error by changing stapler.

      I believe this is a regression introduced in ffbc0829bcb0c9e0abebca6c92663374abda0511

        Attachments

          Issue Links

            Activity

            Hide
            davida2009 David Aldrich added a comment -

            I am seeing this exception with Jenkins 2.52:

            AdjunctManager is not installed for this application. Skipping <adjunct> tags
            java.lang.Exception
            	at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74)
            	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
            	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
            	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
            	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
            	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
            	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:95)
            	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:140)
            	at org.kohsuke.stapler.IndexViewDispatcher.dispatch(IndexViewDispatcher.java:30)
            	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:812)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
            	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
            	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:169)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
            	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
            	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
            	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
            	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
            	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
            	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
            	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
            	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
            	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
            	at org.eclipse.jetty.server.Server.handle(Server.java:499)
            	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
            	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
            	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
            	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
            	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:745)
            Show
            davida2009 David Aldrich added a comment - I am seeing this exception with Jenkins 2.52: AdjunctManager is not installed for this application. Skipping <adjunct> tags java.lang.Exception at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) 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:95) 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:140) at org.kohsuke.stapler.IndexViewDispatcher.dispatch(IndexViewDispatcher.java:30) 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:812) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:169) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) 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:745)
            Hide
            danielbeck Daniel Beck added a comment -

            David Aldrich For reopening an issue that's several years old you're providing too little information. Please be more specific when/how this occurs.

            Show
            danielbeck Daniel Beck added a comment - David Aldrich For reopening an issue that's several years old you're providing too little information. Please be more specific when/how this occurs.
            Hide
            davida2009 David Aldrich added a comment -

            The exception happens at startup and I noticed it happening since upgrading from Jenkins 2.44:

            Mar 27, 2017 10:16:13 AM INFO org.eclipse.jetty.util.log.JavaUtilLog info
            Started w.@4d3266b4{/jenkins,file:/var/lib/jenkins/war/,AVAILABLE}{/var/lib/jenkins/war}
            Mar 27, 2017 10:16:13 AM INFO org.eclipse.jetty.util.log.JavaUtilLog info
            Started ServerConnector@410624b0{HTTP/1.1}{0.0.0.0:8090}
            Mar 27, 2017 10:16:13 AM INFO org.eclipse.jetty.util.log.JavaUtilLog info
            Started @3918ms
            Mar 27, 2017 10:16:13 AM INFO winstone.Logger logInternal
            Winstone Servlet Engine v2.0 running: controlPort=disabled
            Mar 27, 2017 10:16:14 AM WARNING org.kohsuke.stapler.jelly.AdjunctTag doTag
            AdjunctManager is not installed for this application. Skipping <adjunct> tags
            java.lang.Exception
            Show
            davida2009 David Aldrich added a comment - The exception happens at startup and I noticed it happening since upgrading from Jenkins 2.44: Mar 27, 2017 10:16:13 AM INFO org.eclipse.jetty.util.log.JavaUtilLog info Started w.@4d3266b4{/jenkins,file:/ var /lib/jenkins/war/,AVAILABLE}{/ var /lib/jenkins/war} Mar 27, 2017 10:16:13 AM INFO org.eclipse.jetty.util.log.JavaUtilLog info Started ServerConnector@410624b0{HTTP/1.1}{0.0.0.0:8090} Mar 27, 2017 10:16:13 AM INFO org.eclipse.jetty.util.log.JavaUtilLog info Started @3918ms Mar 27, 2017 10:16:13 AM INFO winstone.Logger logInternal Winstone Servlet Engine v2.0 running: controlPort=disabled Mar 27, 2017 10:16:14 AM WARNING org.kohsuke.stapler.jelly.AdjunctTag doTag AdjunctManager is not installed for this application. Skipping <adjunct> tags java.lang.Exception
            Hide
            davida2009 David Aldrich added a comment -

            This exception has not recurred since restarting Jenkins. Please feel free to close this issue again.

            Show
            davida2009 David Aldrich added a comment - This exception has not recurred since restarting Jenkins. Please feel free to close this issue again.
            Hide
            martinjost Martin Jost added a comment -

            I see this on every startup of jenkins 2.57 here. Especially the exception thrown then is annoying. I check the jenkins log after start; actually I made my start script to spit it to console after waiting for a short time and before quitting; this way I see the errors, which came up immediately. Unfortunately this means I see the exception on each start - and each time its "oh, what's on - ah just the usual culprit...")

            {{WARNING: AdjunctManager is not installed for this application. Skipping <adjunct> tags }}
            {{ java.lang.Exception }}
            {{ at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74) }}
            {{ at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) }}
            {{ at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) }}
            {{ at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) }}
            {{ at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) }}
            {{ at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) }}
            {{ 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:95) }}
            {{ 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.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:55) }}
            {{ at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) }}
            {{ at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) }}
            {{ at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184) }}
            {{ at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117) }}
            {{ at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:397) }}
            {{ ...}}

            Show
            martinjost Martin Jost added a comment - I see this on every startup of jenkins 2.57 here. Especially the exception thrown then is annoying. I check the jenkins log after start; actually I made my start script to spit it to console after waiting for a short time and before quitting; this way I see the errors, which came up immediately. Unfortunately this means I see the exception on each start - and each time its "oh, what's on - ah just the usual culprit...") {{WARNING: AdjunctManager is not installed for this application. Skipping <adjunct> tags }} {{ java.lang.Exception }} {{ at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74) }} {{ at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) }} {{ at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) }} {{ at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) }} {{ at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) }} {{ at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) }} {{ 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:95) }} {{ 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.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:55) }} {{ at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) }} {{ at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) }} {{ at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184) }} {{ at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117) }} {{ at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:397) }} {{ ...}}

              People

              Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              kohsuke Kohsuke Kawaguchi
              Votes:
              2 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated: