• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Windows 7, Jenkins 1.606, most recent Java runtime x64, a lot of plugins

      Between two task runs after changing some config, all history of this task isn't shown on the left pane under the task commands (Build, Configure, ...).
      The links like "view console output of the latest build" are still working, since the builds folder of this task is still existing with (full history).

      When I was browsing through the jenkins log, I found the following exception, pointing to an error while executing "LazyLoadRunMap" (see below).

      This bug is a showstopper for my project, since nobody want to use the newly setup build server.

      This could be the same reason for my missing build history on view level. Some view still have their history, some don't.

      Apr 06, 2015 12:25:58 AM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: it.resolve(job) in /job/Project_Pack_Data/. Reason: java.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.model.Action
      java.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.model.Action
      at hudson.model.Run.onLoad(Run.java:348)
      at hudson.model.RunMap.retrieve(RunMap.java:223)
      at hudson.model.RunMap.retrieve(RunMap.java:57)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:465)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:448)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:356)
      at jenkins.model.lazy.LazyBuildMixIn.getBuildByNumber(LazyBuildMixIn.java:226)

          [JENKINS-27748] Jenkins loses history (task page and overview)

          Kevin Zellner added a comment -

          Find attached the list of all installed plugins.

          Kevin Zellner added a comment - Find attached the list of all installed plugins.

          Daniel Beck added a comment -

          This is, once again, after JENKINS-27537 and JENKINS-27615, caused by Build Pipeline plugin (with some help from Xstream).

          Edit the build.xml of 21 and 23 and remove the attribute 'reference' of the element 'comparator' inside hudson.plugins.parameterizedtrigger.CapturedEnvironmentAction.

          Reload configuration from disk, or restart Jenkins.

          Daniel Beck added a comment - This is, once again, after JENKINS-27537 and JENKINS-27615 , caused by Build Pipeline plugin (with some help from Xstream). Edit the build.xml of 21 and 23 and remove the attribute 'reference' of the element 'comparator' inside hudson.plugins.parameterizedtrigger.CapturedEnvironmentAction . Reload configuration from disk, or restart Jenkins.

          Daniel Beck added a comment -

          Actually, it appears this duplicates JENKINS-27615.

          Daniel Beck added a comment - Actually, it appears this duplicates JENKINS-27615 .

          Kanstantsin Shautsou added a comment - - edited

          Actually this is other part of problem. I have 5+6 builds with 1.4.7 pipeline plugin version i have all history disappeared. When i have only 5 builds on disk - history appears. So bad builds killing lazyloading. In my particular case seems it was caused by https://github.com/jenkinsci/matrix-auth-plugin/pull/1 that throw IllegalArgumentException when user permissions disappeared.

          Kanstantsin Shautsou added a comment - - edited Actually this is other part of problem. I have 5+6 builds with 1.4.7 pipeline plugin version i have all history disappeared. When i have only 5 builds on disk - history appears. So bad builds killing lazyloading. In my particular case seems it was caused by https://github.com/jenkinsci/matrix-auth-plugin/pull/1 that throw IllegalArgumentException when user permissions disappeared.

          Seems a XStream bug to me.

          After loading build data in a debugger, I can see that Actionable.actions does not only contain Action, but also Integer and String objects. Content of CapturedEnvironmentAction instance in build.xml file is appearing in Actionable.actions map, which should definitively not happen. I guess XStream is failing while parsing reference tag and continue to parse content of CapturedEnvironmentAction as if it was owned by the upper <actions> tag.

          Yoann Dubreuil added a comment - Seems a XStream bug to me. After loading build data in a debugger, I can see that Actionable.actions does not only contain Action , but also Integer and String objects. Content of CapturedEnvironmentAction instance in build.xml file is appearing in Actionable.actions map, which should definitively not happen. I guess XStream is failing while parsing reference tag and continue to parse content of CapturedEnvironmentAction as if it was owned by the upper <actions> tag.

          I created these two pull requests in order to avoid null and not desired object as Actions.

          Improve exception management in RunMap#retrieve
          https://github.com/jenkinsci/jenkins/pull/1693

          Remove not actions and logging null and other kind of objects
          https://github.com/jenkinsci/jenkins/pull/1694

          Félix Belzunce Arcos added a comment - I created these two pull requests in order to avoid null and not desired object as Actions. Improve exception management in RunMap#retrieve https://github.com/jenkinsci/jenkins/pull/1693 Remove not actions and logging null and other kind of objects https://github.com/jenkinsci/jenkins/pull/1694

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/model/RunMap.java
          http://jenkins-ci.org/commit/jenkins/c1e3a64eea8889b5483343f9bc717bb803fd8357
          Log:
          Merge pull request #1693 from fbelzunc/runmap-retrieve

          JENKINS-27748 Improve exception management in RunMap#retrieve

          Compare: https://github.com/jenkinsci/jenkins/compare/5adf5fa9050c...c1e3a64eea88

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/model/RunMap.java http://jenkins-ci.org/commit/jenkins/c1e3a64eea8889b5483343f9bc717bb803fd8357 Log: Merge pull request #1693 from fbelzunc/runmap-retrieve JENKINS-27748 Improve exception management in RunMap#retrieve Compare: https://github.com/jenkinsci/jenkins/compare/5adf5fa9050c...c1e3a64eea88

          Daniel Beck added a comment -

          integer You reopened this, is it still an issue?

          Daniel Beck added a comment - integer You reopened this, is it still an issue?

          I am Facing same issue with Jenkins 2.32.2 and Build Pipeline Plugin - 1.5.6..

          Is there any fix for this issue ?

          Dnyaneshwar Sonawane added a comment - I am Facing same issue with Jenkins 2.32.2 and Build Pipeline Plugin - 1.5.6.. Is there any fix for this issue ?

          dnyaneshwar, I do not see how you can observe the same issue on 2.32.2. This is long fixed and no new info was provided. If you experience a problem please file a new issue with all relevant information including the stacktrace - which will not be the same.

          Oliver Gondža added a comment - dnyaneshwar , I do not see how you can observe the same issue on 2.32.2. This is long fixed and no new info was provided. If you experience a problem please file a new issue with all relevant information including the stacktrace - which will not be the same.

            Unassigned Unassigned
            kevin75 Kevin Zellner
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: