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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core, maven-plugin
    • CentOS 5.8, JBoss 4.x,jenkins.war 1.514

      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>

        1. jenkinshttp500.png
          37 kB
          ben patterson
        2. morestacktrace.txt
          14 kB
          ben patterson

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

              Created:
              Updated:
              Resolved: