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

Analysis Collector Plugin prevents other plugins from loading when the Dashboard View Plugin is not installed

      The Analysis Collector Plugin prevents other plugins from loading when the Dashboard View Plugin is not installed and activated. In my case, this effectively disables the SCM Plugins and thus prevents Jenkins from fetching SCM changes. Log attached.

          [JENKINS-13101] Analysis Collector Plugin prevents other plugins from loading when the Dashboard View Plugin is not installed

          Ulli Hafner added a comment -

          I don't see any references to the analysis collector plug-in in the log. It seems that the dashboard view just could not be loaded. (The dependency is optional in my plug-in)

          Ulli Hafner added a comment - I don't see any references to the analysis collector plug-in in the log. It seems that the dashboard view just could not be loaded. (The dependency is optional in my plug-in)

          Martin Ziel added a comment -

          The problem occured after I installed a few plugins on my production system. So I tried to isolate the problem: I deactivated all plugins and activated each plugin after another. After I activated the analysis-collector-plugin the problem started to reoccur.

          Then I set up a second, isolated instance of a jenkins server with just the default plugins. Next I installed the analysis-collector-plugin and again, the problem occured. After I installed the dashboard-view-plugin and the problem vanished.

          The problem seems to happen when jenkins tries to load one or more classes of the dashboard-view-plugin. Maybe due to default configurations?

          Martin Ziel added a comment - The problem occured after I installed a few plugins on my production system. So I tried to isolate the problem: I deactivated all plugins and activated each plugin after another. After I activated the analysis-collector-plugin the problem started to reoccur. Then I set up a second, isolated instance of a jenkins server with just the default plugins. Next I installed the analysis-collector-plugin and again, the problem occured. After I installed the dashboard-view-plugin and the problem vanished. The problem seems to happen when jenkins tries to load one or more classes of the dashboard-view-plugin. Maybe due to default configurations?

          Ulli Hafner added a comment -

          Did you also install the analysis-core plug-in? This is required for the analysis-collector.

          Maybe something in Jenkins core class loading has been changed that causes this issue. I'll try to reproduce on 1.455.

          What I don't understand from the log is:

          INFO: Plugin dashboard-view.jpi is disabled
          

          Didn't you say the plugin is not installed? Do you still have a view using the dashboard view? This might be the reason for the exception message. (And is unrelated to your problem)

          Ulli Hafner added a comment - Did you also install the analysis-core plug-in? This is required for the analysis-collector. Maybe something in Jenkins core class loading has been changed that causes this issue. I'll try to reproduce on 1.455. What I don't understand from the log is: INFO: Plugin dashboard-view.jpi is disabled Didn't you say the plugin is not installed? Do you still have a view using the dashboard view? This might be the reason for the exception message. (And is unrelated to your problem)

          Martin Ziel added a comment -

          Sorry I forgot to mention: Yes, the core has been installed both times. I disabled the plugin to create the log. But whether the plugins is disabled or not installed, the error occurs.

          Martin Ziel added a comment - Sorry I forgot to mention: Yes, the core has been installed both times. I disabled the plugin to create the log. But whether the plugins is disabled or not installed, the error occurs.

          Ulli Hafner added a comment -

          Ok, I can reproduce the problem with 1.458.

          Ulli Hafner added a comment - Ok, I can reproduce the problem with 1.458.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/analysis/collector/dashboard/AnalysisGraphDescriptor.java
          src/main/java/hudson/plugins/analysis/collector/dashboard/WarningsOriginGraphPortlet.java
          src/main/java/hudson/plugins/analysis/collector/dashboard/WarningsTablePortlet.java
          src/main/resources/hudson/plugins/analysis/collector/Messages_fr.properties
          http://jenkins-ci.org/commit/analysis-collector-plugin/9b7918907bf37ed25b4ba7e57ad825978df41e2e
          Log:
          [FIXED JENKINS-13101] Don't use dashboard classes in abstract base
          classes that do not define an extension.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/analysis/collector/dashboard/AnalysisGraphDescriptor.java src/main/java/hudson/plugins/analysis/collector/dashboard/WarningsOriginGraphPortlet.java src/main/java/hudson/plugins/analysis/collector/dashboard/WarningsTablePortlet.java src/main/resources/hudson/plugins/analysis/collector/Messages_fr.properties http://jenkins-ci.org/commit/analysis-collector-plugin/9b7918907bf37ed25b4ba7e57ad825978df41e2e Log: [FIXED JENKINS-13101] Don't use dashboard classes in abstract base classes that do not define an extension.

          dogfood added a comment -

          Integrated in plugins_analysis-collector #334

          Result = SUCCESS

          dogfood added a comment - Integrated in plugins_analysis-collector #334 Result = SUCCESS

            drulli Ulli Hafner
            zilluss Martin Ziel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: