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

Cannot read property 'firstChild' of undefined

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello, 

      We have a problem to access to configure page of a job because of a js exception : 

      Uncaught TypeError: Cannot read property 'firstChild' of undefined
      at registerValidator (hudson-behavior.js:424)
      at Array.forEach (<anonymous>)
      at behavior.js:111
      at Array.forEach (<anonymous>)
      at behavior.js:107
      at Array.forEach (<anonymous>)
      at Object.applySubtree (behavior.js:93)
      at select.js:269

      So it always refresh.

        Attachments

          Issue Links

            Activity

            Hide
            chenrui Rui Chen added a comment -

            Baptiste Mathus yes, that is good to know that maven project support got deprecated.

            I think our config loading issue is around there.

            Show
            chenrui Rui Chen added a comment - Baptiste Mathus yes, that is good to know that maven project support got deprecated. I think our config loading issue is around there.
            Hide
            chenrui Rui Chen added a comment -

            Baptiste Mathus Do you have any documentation reference about migrating the jenkins maven projects?

            Thanks,
            Rui

            Show
            chenrui Rui Chen added a comment - Baptiste Mathus Do you have any documentation reference about migrating the jenkins maven projects? Thanks, Rui
            Hide
            theljade thomas cornez added a comment -

            How can we provide those necessary data?

            Do you want a config.xml from a project that has the problem?

            Show
            theljade thomas cornez added a comment - How can we provide those necessary data? Do you want a config.xml from a project that has the problem?
            Hide
            danielbeck Daniel Beck added a comment - - edited

            Rui Chen  Not really deprecated, we just know it's terrible, and have known for a long time. For example, you'll see references to http://javaadventure.blogspot.de/2013/11/jenkins-maven-job-type-considered-evil.html written by a Maven committer on the Jenkins team occasionally. (Baptiste Mathus Or did I miss something?) For that reason, use is generally discouraged, but given how plugin dependencies work, it's just there on most instances. And since it's both convenient and does things no other plugin does, people continue using it. I don't think the Pipeline Maven Plugin is quite there yet.

            thomas cornez config.xml might help, but not certain. Ideally you'll start Jenkins with an empty JENKINS_HOME. Do whatever is needed to make this issue appear, and take notes. If it's as easy as installing the plugins you have installed and dumping the job config.xml there so Jenkins loads it, that would be pretty straightforward. Then, do it again until you get streamlined steps to reproduce from scratch. Like Stack Overflow asking for minimal code samples, we're asking for minimal steps to reproduce. Less work and less errorprone that way.

            Show
            danielbeck Daniel Beck added a comment - - edited Rui Chen   Not really deprecated, we just know it's terrible, and have known for a long time. For example, you'll see references to http://javaadventure.blogspot.de/2013/11/jenkins-maven-job-type-considered-evil.html written by a Maven committer on the Jenkins team occasionally. ( Baptiste Mathus Or did I miss something?) For that reason, use is generally discouraged, but given how plugin dependencies work, it's just there on most instances. And since it's both convenient and does things no other plugin does, people continue using it. I don't think the Pipeline Maven Plugin is quite there yet. thomas cornez config.xml might help, but not certain. Ideally you'll start Jenkins with an empty JENKINS_HOME. Do whatever is needed to make this issue appear, and take notes. If it's as easy as installing the plugins you have installed and dumping the job config.xml there so Jenkins loads it, that would be pretty straightforward. Then, do it again until you get streamlined steps to reproduce from scratch. Like Stack Overflow asking for minimal code samples, we're asking for minimal steps to reproduce. Less work and less errorprone that way.
            Hide
            chenrui Rui Chen added a comment -

            Thanks Daniel Beck, the link is pretty helpful.

            Do you have any reference links for pipeline maven plugin as well?

            Show
            chenrui Rui Chen added a comment - Thanks Daniel Beck , the link is pretty helpful. Do you have any reference links for pipeline maven plugin as well?

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              theljade thomas cornez
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: