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

hudson.maven.MavenModule cannot be cast to hudson.model.TopLevelItem

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Upgraded to latest Jenkins from 1.489. We have a number of plugins including maven-plugin installed. For unauthenticated users, we get an http500 error within the default view.

      I would attempt to disable the Maven plugin to see if I can get rid of the error, but it is considered part of Maven core.

      [Edit: Also worth noting: this only occurs for unauthenticated users. Once logged in, it goes away. It's the home screen though, so everyone sees it. FWIW, occurs on different browsers, too.]

      Partial Stacktrace here. Attaching screenshot and more of the stacktrace.

      Exception: org.apache.commons.jelly.JellyTagException: jar:file:/usr/local/jboss-4.2.3.GA/server/production/tmp/deploy/tmp2463229018850549093hudson-exp.war/WEB-INF/lib/jenkins-core-1.514.jar!/hudson/model/View/index.jelly:44:43: <st:include> org.apache.commons.jelly.JellyTagException: jar:file:/usr/local/jboss-4.2.3.GA/server/production/tmp/deploy/tmp2463229018850549093hudson-exp.war/WEB-INF/lib/jenkins-core-1.514.jar!/lib/hudson/projectView.jelly:63:22: <d:invokeBody> hudson.maven.MavenModule cannot be cast to hudson.model.TopLevelItem
      Stacktrace:
      javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/usr/local/jboss-4.2.3.GA/server/production/tmp/deploy/tmp2463229018850549093hudson-exp.war/WEB-INF/lib/jenkins-core-1.514.jar!/hudson/model/View/index.jelly:44:43: <st:include> org.apache.commons.jelly.JellyTagException: jar:file:/usr/local/jboss-4.2.3.GA/server/production/tmp/deploy/tmp2463229018850549093hudson-exp.war/WEB-INF/lib/jenkins-core-1.514.jar!/lib/hudson/projectView.jelly:63:22: <d:invokeBody> hudson.maven.MavenModule cannot be cast to hudson.model.TopLevelItem
      at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117)
      at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:666)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:736)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:214)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      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:124)
      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)

      <snip>

        Attachments

          Issue Links

            Activity

            Hide
            bpatterson ben patterson added a comment -

            I forgot to mention an important detail: this only happens for unauthenticated users. Once I log in, this goes away. It's the home screen though, so it doesn't present to product folks very well.

            Show
            bpatterson ben patterson added a comment - I forgot to mention an important detail: this only happens for unauthenticated users. Once I log in, this goes away. It's the home screen though, so it doesn't present to product folks very well.
            Hide
            bpatterson ben patterson added a comment -

            Similar issue to Jenkins-16446. Resolved here by killing and re-adding a custom view. It may have been failing on the regular expression (which had worked before--I did not change it when I upgraded jenkins), but this time I used the 'job filter' option, rather than the usual regex on the custom view and that solved the problem.

            I'm closign this as a likely duplicate though.

            Show
            bpatterson ben patterson added a comment - Similar issue to Jenkins-16446. Resolved here by killing and re-adding a custom view. It may have been failing on the regular expression (which had worked before--I did not change it when I upgraded jenkins), but this time I used the 'job filter' option, rather than the usual regex on the custom view and that solved the problem. I'm closign this as a likely duplicate though.
            Hide
            bpatterson ben patterson added a comment -

            See previous notes.

            Show
            bpatterson ben patterson added a comment - See previous notes.

              People

              • Assignee:
                Unassigned
                Reporter:
                bpatterson ben patterson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: