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

Dashboard trend graphs not displayed following plugin upgrade

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins 2.10, Windows 2008 Server 64bit, Java 1.8.0_92 64bit, Dashboard View 2.9.10, Static Code Analysis 1.78

      Compiler warning trend graph portlet and open task trend graph portlet not displaying in Dashboard View following recent Jenkins/plugins updates. Jenkins logs indicated:

      java.lang.NoSuchMethodError: org.joda.time.LocalDate.compareTo(Lorg/joda/time/ReadablePartial;)I

      Most recent Dashboard View uses Joda 1.6, most recent Static Analysis uses Joda 2.1. Going in to JENKINS_HOME/plugins and removing Joda 1.6 jar from Dashboard View and copying in 2.1 jar from Static Analysis (and updating files e.g. pom.xml) resolves issues.

      Better way to clean up these dependencies?

          [JENKINS-36281] Dashboard trend graphs not displayed following plugin upgrade

          J K created issue -

          Paul Eipper added a comment -

          Is there a step by step workaround to fix this?

          Paul Eipper added a comment - Is there a step by step workaround to fix this?
          Paul Eipper made changes -
          Attachment New: jenkins-dashboard-view.log [ 33182 ]

          Ulli Hafner added a comment -

          A workaround is already in the description.

          Ulli Hafner added a comment - A workaround is already in the description.

          Ulli Hafner added a comment -

          Either analysis-core requires a downgrade of joda or dashboard-view an upgrade... I'll check which makes more sense as soon as my laptop is back from repair...

          Ulli Hafner added a comment - Either analysis-core requires a downgrade of joda or dashboard-view an upgrade... I'll check which makes more sense as soon as my laptop is back from repair...

          Paul Eipper added a comment - - edited

          I am not sure how to perform the "updating files e.g. pom.xml" step

          Paul Eipper added a comment - - edited I am not sure how to perform the "updating files e.g. pom.xml" step

          J K added a comment -

          Don't know if it's necessary to edit these files, or if plugins will load whatever jar is present, but with the Jenkins service stopped I edited:

          1. JENKINS_HOME\plugins\dashboard-view\WEB-INF\licenses.xml

          2. JENKINS_HOME\plugins\dashboard-view\META-INF\maven\org.jenkins-ci.plugins\dashboard-view\pom.xml

          In both, search for where joda is mentioned, and change the version listed from "1.6" to "2.1". Then restart Jenkins service.

          J K added a comment - Don't know if it's necessary to edit these files, or if plugins will load whatever jar is present, but with the Jenkins service stopped I edited: 1. JENKINS_HOME\plugins\dashboard-view\WEB-INF\licenses.xml 2. JENKINS_HOME\plugins\dashboard-view\META-INF\maven\org.jenkins-ci.plugins\dashboard-view\pom.xml In both, search for where joda is mentioned, and change the version listed from "1.6" to "2.1". Then restart Jenkins service.

          Paul Eipper added a comment -

          Thanks it worked:

          1. remove JENKINS_HOME/plugins/dashboard-view/WEB-INF/lib/joda-time-1.6.jar
          2. copy JENKINS_HOME/plugins/analysis-core/WEB-INF/lib/joda-time-2.1.jar to that folder
          3. edit the files and change the version listed from "1.6" to "2.1":
            • JENKINS_HOME/plugins/dashboard-view/WEB-INF/licenses.xml
            • JENKINS_HOME/plugins/dashboard-view/META-INF/maven/org.jenkins-ci.plugins/dashboard-view/pom.xml
          4. restart Jenkins

          Paul Eipper added a comment - Thanks it worked: remove JENKINS_HOME/plugins/dashboard-view/WEB-INF/lib/joda-time-1.6.jar copy JENKINS_HOME/plugins/analysis-core/WEB-INF/lib/joda-time-2.1.jar to that folder edit the files and change the version listed from "1.6" to "2.1": JENKINS_HOME/plugins/dashboard-view/WEB-INF/licenses.xml JENKINS_HOME/plugins/dashboard-view/META-INF/maven/org.jenkins-ci.plugins/dashboard-view/pom.xml restart Jenkins

          Hi Ulli Hafner, Have you checked whether we have to upgrade the dashboard-view? Using the workaround doesn't seem correct way to resolve the problem. Better, we should have an update of the plugin.

          Shobhit Upadhyay added a comment - Hi Ulli Hafner, Have you checked whether we have to upgrade the dashboard-view? Using the workaround doesn't seem correct way to resolve the problem. Better, we should have an update of the plugin.

          Ulli Hafner added a comment -

          No, it works if I set the dependency to joda time 1.6 in analysis-core. The fix is already ready to be released...

          Ulli Hafner added a comment - No, it works if I set the dependency to joda time 1.6 in analysis-core. The fix is already ready to be released...

            drulli Ulli Hafner
            jck2 J K
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: