• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • favorite-plugin
    • None

      I have the Role Strategy Plugin and Anonymous is configured with view permissions. But it causes a 500 error when visiting the default page for Jenkins (which I've configured to be Favorites)...

      Status Code: 500

      Exception: org.apache.commons.jelly.JellyTagException: jar:file:/opt/local/stow/apache-tomcat-7.0.6/share/apache-tomcat-7.0.6/webapps/automan/WEB-INF/lib/jenkins-core-1.467.jar!/hudson/model/View/index.jelly:44:43: <st:include> Cannot invoke method isEmpty() on null object
      Stacktrace:
      javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/opt/local/stow/apache-tomcat-7.0.6/share/apache-tomcat-7.0.6/webapps/automan/WEB-INF/lib/jenkins-core-1.467.jar!/hudson/model/View/index.jelly:44:43: <st:include> Cannot invoke method isEmpty() on null object
      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:563)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      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:574)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
      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:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      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.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:63)
      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:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      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:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1824)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/opt/local/stow/apache-tomcat-7.0.6/share/apache-tomcat-7.0.6/webapps/automan/WEB-INF/lib/jenkins-core-1.467.jar!/hudson/model/View/index.jelly:44:43: <st:include> Cannot invoke method isEmpty() on null object
      at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:716)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:282)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
      at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
      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:119)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
      at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
      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.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.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:119)
      at org.kohsuke.stapler.jelly.CompressTag.doTag(CompressTag.java:44)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
      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:107)
      ... 63 more
      Caused by: java.lang.NullPointerException: Cannot invoke method isEmpty() on null object
      at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
      at hudson.model.View.main.run(main.groovy:6)
      at org.kohsuke.stapler.jelly.groovy.GroovierJellyScript.run(GroovierJellyScript.java:66)
      at org.kohsuke.stapler.jelly.groovy.GroovierJellyScript.run(GroovierJellyScript.java:59)
      at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
      ... 94 more

          [JENKINS-14031] Anonymouse triggers 500 error

          Christian Höltje added a comment - Favorite: https://wiki.jenkins-ci.org/display/JENKINS/Favorite+Plugin

          The default view is "Favorites" which is a view that uses the regular expression ".*" and applies the Favorites Filter.

          I have to admit that I'm assuming that this is due to the favorites because I don't see this 500 on any other views. But it's possible a column is doing this?

          My columns are:

          • Status
          • Weather
          • Name
          • Last Success
          • Last Failure
          • Last Duration
          • Favorite
          • Node Name

          Christian Höltje added a comment - The default view is "Favorites" which is a view that uses the regular expression ".*" and applies the Favorites Filter. I have to admit that I'm assuming that this is due to the favorites because I don't see this 500 on any other views. But it's possible a column is doing this? My columns are: Status Weather Name Last Success Last Failure Last Duration Favorite Node Name

          Hmmm... I can't see my code anywhere in the stacktrace, so I'm not sure were to look in my code.

          I'm also running role strategy plugin, and 1.467, and not having problems.

          Larry Shatzer, Jr. added a comment - Hmmm... I can't see my code anywhere in the stacktrace, so I'm not sure were to look in my code. I'm also running role strategy plugin, and 1.467, and not having problems.

          In the stacktrace I see hudson.plugins.greenballs.GreenBallFilter.doFilter

          Try removing the Green Balls plugin, and see if that fixes the problem. If so, then probably best to move this ticket to that plugin.

          Larry Shatzer, Jr. added a comment - In the stacktrace I see hudson.plugins.greenballs.GreenBallFilter.doFilter Try removing the Green Balls plugin, and see if that fixes the problem. If so, then probably best to move this ticket to that plugin.

          Can you post screenshots of your role strategy configuration and list of all your plugins?

          The more I have and can try to replicate it, the better.

          Larry Shatzer, Jr. added a comment - Can you post screenshots of your role strategy configuration and list of all your plugins? The more I have and can try to replicate it, the better.

          This is my manage and assign roles page. The Anonymous user has the global "reader" role and no other.

          Christian Höltje added a comment - This is my manage and assign roles page. The Anonymous user has the global "reader" role and no other.

          If it's Green Balls then it's a new problem. Also, you can view any other "view" without an error. Only the filter one creates the 500.

          Here's my plugin list:

          Active Directory plugin - 1.28
          Analysis Collector Plugin - 1.27
          AnsiColor Plugin - 0.3.0
          Async Http Client - 1.7.4-1
          Build-timeout Plugin - 1.8
          Checkstyle Plugin - 3.27
          Copy Artifact Plugin - 1.22
          Copy To Slave Plugin - 1.4
          DRY Plugin - 2.27
          Deploy Plugin - 1.8
          Favorite Plugin - 1.7
          FindBugs Plugin - 4.40
          Gerrit Trigger - 2.5.2
          Git Plugin - 1.1.18
          Green Balls - 1.12
          HTML Publisher plugin - 1.0
          Hudson Cron Column Plugin - 1.003
          Hudson Groovy builder - 1.12
          Hudson Label Verifier plugin - 1.0
          Hudson Locks and Latches plugin - 0.6
          Hudson Next Build Number Plugin - 1.0
          Hudson Personal View - 1.8
          Hudson Port Allocator Plug-in - 1.5
          Hudson Post build task - 1.8
          Hudson Ruby Plugin - 1.2
          Hudson SCP publisher plugin - 1.8
          Hudson Setenv Plugin - 1.1
          Hudson platformlabeler plugin - 1.1
          Jenkins CVS Plug-in - 2.4
          Jenkins Clone Workspace SCM Plug-in - 0.4
          Jenkins Cobertura Plugin - 1.5
          Jenkins Dependency Analyzer Plugin - 0.6
          Jenkins Doxygen Plug-in - 0.11
          Jenkins IRC Plugin - 2.18
          Jenkins Jabber notifier plugin - 1.22
          Jenkins Job Configuration History Plugin - 1.13
          Jenkins M2 Extra Steps Plugin - 1.1.7
          Jenkins Maven Release Plug-in Plug-in - 0.9.1
          Jenkins NUnit plugin - 0.14
          Jenkins Parameterized Trigger plugin - 2.15
          Jenkins Rake plugin - 1.7.7
          Jenkins SSH Slaves plugin - 0.21
          Jenkins Subversion Plug-in - 1.40
          Jenkins Translation Assistance plugin - 1.9
          Jenkins Version Column plugin - 0.2
          Jenkins Violations plugin - 0.7.10
          Jenkins batch task plugin - 1.16
          Jenkins disk-usage plugin - 0.17
          Jenkins instant-messaging plugin - 1.21
          Jenkins promoted builds plugin - 2.5
          Jenkins ruby metrics plugin - 1.5.0
          Jython Plugin - 1.9
          Log Parser Plugin - 1.0.8
          Matrix Tie Parent plugin - 1.1
          Maven 2 Project Plugin - 1.467
          Maven Deployment Linker - 1.5
          Measurement Plots - 0.1
          NCover plugin - 0.3
          Node Name Column - 1.1
          PMD Plugin - 3.28
          PegDown Formatter Plugin - 1.3
          Request Rename Or Delete Plugin - 1.1.0
          Role-based Authorization Strategy - 1.1.2
          SLOCCount Plugin - 1.7
          Safe Restart Plugin - 0.2
          Sectioned View Plugin - 1.16
          Shelve Project Plugin - 1.3
          Show Build Parameters plugin - 1.0
          Sidebar Link - 1.6
          Slave Monitor for system load average - 1.2
          Static Code Analysis Plug-ins - 1.41
          Task Scanner Plugin - 4.30
          Timestamper - 1.2.2
          URL Change Trigger - 1.2
          View Job Filters - 1.22
          Warnings Plugin - 4.5
          ant - 1.1
          eXtreme Feedback Panel - 1.0.11
          friend-of-jenkins - 1.0
          javadoc – 1.0
          xUnit Plugin - 1.45

          Christian Höltje added a comment - If it's Green Balls then it's a new problem. Also, you can view any other "view" without an error. Only the filter one creates the 500. Here's my plugin list: Active Directory plugin - 1.28 Analysis Collector Plugin - 1.27 AnsiColor Plugin - 0.3.0 Async Http Client - 1.7.4-1 Build-timeout Plugin - 1.8 Checkstyle Plugin - 3.27 Copy Artifact Plugin - 1.22 Copy To Slave Plugin - 1.4 DRY Plugin - 2.27 Deploy Plugin - 1.8 Favorite Plugin - 1.7 FindBugs Plugin - 4.40 Gerrit Trigger - 2.5.2 Git Plugin - 1.1.18 Green Balls - 1.12 HTML Publisher plugin - 1.0 Hudson Cron Column Plugin - 1.003 Hudson Groovy builder - 1.12 Hudson Label Verifier plugin - 1.0 Hudson Locks and Latches plugin - 0.6 Hudson Next Build Number Plugin - 1.0 Hudson Personal View - 1.8 Hudson Port Allocator Plug-in - 1.5 Hudson Post build task - 1.8 Hudson Ruby Plugin - 1.2 Hudson SCP publisher plugin - 1.8 Hudson Setenv Plugin - 1.1 Hudson platformlabeler plugin - 1.1 Jenkins CVS Plug-in - 2.4 Jenkins Clone Workspace SCM Plug-in - 0.4 Jenkins Cobertura Plugin - 1.5 Jenkins Dependency Analyzer Plugin - 0.6 Jenkins Doxygen Plug-in - 0.11 Jenkins IRC Plugin - 2.18 Jenkins Jabber notifier plugin - 1.22 Jenkins Job Configuration History Plugin - 1.13 Jenkins M2 Extra Steps Plugin - 1.1.7 Jenkins Maven Release Plug-in Plug-in - 0.9.1 Jenkins NUnit plugin - 0.14 Jenkins Parameterized Trigger plugin - 2.15 Jenkins Rake plugin - 1.7.7 Jenkins SSH Slaves plugin - 0.21 Jenkins Subversion Plug-in - 1.40 Jenkins Translation Assistance plugin - 1.9 Jenkins Version Column plugin - 0.2 Jenkins Violations plugin - 0.7.10 Jenkins batch task plugin - 1.16 Jenkins disk-usage plugin - 0.17 Jenkins instant-messaging plugin - 1.21 Jenkins promoted builds plugin - 2.5 Jenkins ruby metrics plugin - 1.5.0 Jython Plugin - 1.9 Log Parser Plugin - 1.0.8 Matrix Tie Parent plugin - 1.1 Maven 2 Project Plugin - 1.467 Maven Deployment Linker - 1.5 Measurement Plots - 0.1 NCover plugin - 0.3 Node Name Column - 1.1 PMD Plugin - 3.28 PegDown Formatter Plugin - 1.3 Request Rename Or Delete Plugin - 1.1.0 Role-based Authorization Strategy - 1.1.2 SLOCCount Plugin - 1.7 Safe Restart Plugin - 0.2 Sectioned View Plugin - 1.16 Shelve Project Plugin - 1.3 Show Build Parameters plugin - 1.0 Sidebar Link - 1.6 Slave Monitor for system load average - 1.2 Static Code Analysis Plug-ins - 1.41 Task Scanner Plugin - 4.30 Timestamper - 1.2.2 URL Change Trigger - 1.2 View Job Filters - 1.22 Warnings Plugin - 4.5 ant - 1.1 eXtreme Feedback Panel - 1.0.11 friend-of-jenkins - 1.0 javadoc – 1.0 xUnit Plugin - 1.45

          Try upgrading to 1.8, and I have 1.9 releasing right now (so you can try to build it from source or wait). There were some null checks I added for another issue, and a few other logic changes in both versions.

          If there is still an issue, see if the stacktrace differs.

          Larry Shatzer, Jr. added a comment - Try upgrading to 1.8, and I have 1.9 releasing right now (so you can try to build it from source or wait). There were some null checks I added for another issue, and a few other logic changes in both versions. If there is still an issue, see if the stacktrace differs.

          I got 1.9 released, please give that a try, once it shows up in your update center.

          Thanks!

          Larry Shatzer, Jr. added a comment - I got 1.9 released, please give that a try, once it shows up in your update center. Thanks!

          W00T! That fixed the problem.

          Excellent!

          Christian Höltje added a comment - W00T! That fixed the problem. Excellent!

            lshatzer Larry Shatzer, Jr.
            docwhat Christian Höltje
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: