java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.TopLevelItem

Jenkins JIRA | Jorge Rodríguez Pedrianes | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at hudson.plugins.view.dashboard.core.UnstableJobsPortlet.getUnstableJobs()
    2. hudson.plugins.view
      UnstableJobsPortlet.getUnstableJobs
      1. hudson.plugins.view.dashboard.core.UnstableJobsPortlet.getUnstableJobs(UnstableJobsPortlet.java:44)
      2. hudson.plugins.view.dashboard.core.UnstableJobsPortlet.getUnstableJobs(UnstableJobsPortlet.java:46)
      2 frames
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.GeneratedMethodAccessor597.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2 frames