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

Some jobs not loaded after jenkins restart: java.lang.NoSuchFieldError: triggers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      CentOS 6.3
      JDK 1.6.0_37-b06
    • Similar Issues:

      Description

      After upgrading to version 1.522, some jobs were not correctly loaded once restarting jenkins. The following error is shown for some jobs in the jenkins log while restarting:

      Jul 9, 2013 10:15:55 AM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Loading job Base-Checkout.Install
      java.lang.NoSuchFieldError: triggers
      at hudson.maven.AbstractMavenProject.createTransientActions(AbstractMavenProject.java:187)

      Not sure which specific configuration inside that jobs cause the problem but once jenkins is started the jobs are not listed nor located by other jobs that depend on them

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            changelog.html
            core/pom.xml
            core/src/main/java/hudson/ClassicPluginStrategy.java
            core/src/main/java/hudson/PluginManager.java
            core/src/main/java/hudson/model/AbstractProject.java
            pom.xml
            http://jenkins-ci.org/commit/jenkins/47de54d070f67af95b4fefb6d006a72bb31a5cb8
            Log:
            [FIXED JENKINS-18677]

            Integrated bytecode-compatibility-transformer that allows core to
            do signature changes on properties that plugins might depend on.

            The library performs necessary bytecode transformation to achieve this.

            The first use of this is to fix plugins that looks for List
            AbstractProject.triggers, thereby resolving JENKINS-18677.

            For the time being, I'm not loading such compatibility annotations from
            plugins, but I did code that in PluginManager. Let's see how this
            feature work out for a while in the core, and if it looks stable and
            solid, we'll open it up to plugins at that point.

            Compare: https://github.com/jenkinsci/jenkins/compare/2135a17552fd...47de54d070f6

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/pom.xml core/src/main/java/hudson/ClassicPluginStrategy.java core/src/main/java/hudson/PluginManager.java core/src/main/java/hudson/model/AbstractProject.java pom.xml http://jenkins-ci.org/commit/jenkins/47de54d070f67af95b4fefb6d006a72bb31a5cb8 Log: [FIXED JENKINS-18677] Integrated bytecode-compatibility-transformer that allows core to do signature changes on properties that plugins might depend on. The library performs necessary bytecode transformation to achieve this. The first use of this is to fix plugins that looks for List AbstractProject.triggers, thereby resolving JENKINS-18677 . For the time being, I'm not loading such compatibility annotations from plugins, but I did code that in PluginManager. Let's see how this feature work out for a while in the core, and if it looks stable and solid, we'll open it up to plugins at that point. Compare: https://github.com/jenkinsci/jenkins/compare/2135a17552fd...47de54d070f6
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2781
            [FIXED JENKINS-18677] (Revision 47de54d070f67af95b4fefb6d006a72bb31a5cb8)

            Result = SUCCESS
            kohsuke : 47de54d070f67af95b4fefb6d006a72bb31a5cb8
            Files :

            • pom.xml
            • core/src/main/java/hudson/PluginManager.java
            • core/pom.xml
            • core/src/main/java/hudson/model/AbstractProject.java
            • core/src/main/java/hudson/ClassicPluginStrategy.java
            • changelog.html
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2781 [FIXED JENKINS-18677] (Revision 47de54d070f67af95b4fefb6d006a72bb31a5cb8) Result = SUCCESS kohsuke : 47de54d070f67af95b4fefb6d006a72bb31a5cb8 Files : pom.xml core/src/main/java/hudson/PluginManager.java core/pom.xml core/src/main/java/hudson/model/AbstractProject.java core/src/main/java/hudson/ClassicPluginStrategy.java changelog.html
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/pom.xml
            core/src/main/java/hudson/ClassicPluginStrategy.java
            core/src/main/java/hudson/PluginManager.java
            core/src/main/java/hudson/model/AbstractProject.java
            pom.xml
            http://jenkins-ci.org/commit/jenkins/235e9b8ac4dde3244b87e1d9d3abaac7034ca868
            Log:
            [FIXED JENKINS-18677]

            Integrated bytecode-compatibility-transformer that allows core to
            do signature changes on properties that plugins might depend on.

            The library performs necessary bytecode transformation to achieve this.

            The first use of this is to fix plugins that looks for List
            AbstractProject.triggers, thereby resolving JENKINS-18677.

            For the time being, I'm not loading such compatibility annotations from
            plugins, but I did code that in PluginManager. Let's see how this
            feature work out for a while in the core, and if it looks stable and
            solid, we'll open it up to plugins at that point.

            (cherry picked from commit 47de54d070f67af95b4fefb6d006a72bb31a5cb8)

            Conflicts:
            changelog.html
            pom.xml

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/pom.xml core/src/main/java/hudson/ClassicPluginStrategy.java core/src/main/java/hudson/PluginManager.java core/src/main/java/hudson/model/AbstractProject.java pom.xml http://jenkins-ci.org/commit/jenkins/235e9b8ac4dde3244b87e1d9d3abaac7034ca868 Log: [FIXED JENKINS-18677] Integrated bytecode-compatibility-transformer that allows core to do signature changes on properties that plugins might depend on. The library performs necessary bytecode transformation to achieve this. The first use of this is to fix plugins that looks for List AbstractProject.triggers, thereby resolving JENKINS-18677 . For the time being, I'm not loading such compatibility annotations from plugins, but I did code that in PluginManager. Let's see how this feature work out for a while in the core, and if it looks stable and solid, we'll open it up to plugins at that point. (cherry picked from commit 47de54d070f67af95b4fefb6d006a72bb31a5cb8) Conflicts: changelog.html pom.xml
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/src/main/java/hudson/model/AbstractProject.java
            http://jenkins-ci.org/commit/jenkins/1be9d9dd459331d61730994119c5c3fbbe323d69
            Log:
            JENKINS-18677 bug fix

            (cherry picked from commit d8f74cf86644ff338aff53879f674b971c11967e)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/1be9d9dd459331d61730994119c5c3fbbe323d69 Log: JENKINS-18677 bug fix (cherry picked from commit d8f74cf86644ff338aff53879f674b971c11967e)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            core/src/main/java/hudson/model/AbstractProject.java
            http://jenkins-ci.org/commit/jenkins/22878baaa3ab81832b7b7de57fb8fe0dd4c614a3
            Log:
            JENKINS-18677 more bug fix

            (cherry picked from commit c9282915416653ff6fc904c3f9e467cb2d46ff3e)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/22878baaa3ab81832b7b7de57fb8fe0dd4c614a3 Log: JENKINS-18677 more bug fix (cherry picked from commit c9282915416653ff6fc904c3f9e467cb2d46ff3e)

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                arturoduran Arturo Duran
              • Votes:
                3 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: