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

Uncaught TypeError: Cannot read property 'firstChild' of undefined

    XMLWordPrintable

Details

    Description

      Hi,

      I am developing a Jenkins plugin and I am stuck with the below issue.

      Uncaught TypeError: Cannot read property 'firstChild' of undefined
      at updateListBox (select.js:8)
      at select.js:79
      at h (hudson-behavior.js:1295)
      at refillOnChange (hudson-behavior.js:1310)
      at select.js:77
      at Array.forEach (<anonymous>)
      at behavior.js:111
      at Array.forEach (<anonymous>)
      at behavior.js:107
      at Array.forEach (<anonymous>)

      This works fine in jenkins version : 2.7.3 But, I get the above error when I load the plugin in any higher version of jenkins.

      The plugin is generated using maven version : 3.* and jdk version : 1.8

      Please help us to resolve this issue.

      Thank You

       

      Attachments

        1. Error.PNG
          Error.PNG
          11 kB
        2. error-message.png
          error-message.png
          135 kB
        3. stack-trace.png
          stack-trace.png
          128 kB

        Issue Links

          Activity

            wangfei0309 fei wang added a comment -

            I also have the same issue, my jenkins is installed on centos 6 with version 2.150.3 and java 8. when I open a maven project after a new creation, the issue came out.

            wangfei0309 fei wang added a comment - I also have the same issue, my jenkins is installed on centos 6 with version 2.150.3 and java 8. when I open a maven project after a new creation, the issue came out.
            preethamk Preetham Kamidi added a comment - - edited

            I just came across the same issue whenever I try to create a new Multibranch pipeline. UI is stuck at Loading screen and console show the above mentioned error. My Jenkins version is: 2.150.1, Java version: Java 8. It's a fresh install of Jenkins on Ubuntu 18.04 LTS. After I try to open the pipeline, all I can see is a stack trace.

            preethamk Preetham Kamidi added a comment - - edited I just came across the same issue whenever I try to create a new Multibranch pipeline. UI is stuck at Loading screen and console show the above mentioned error. My Jenkins version is: 2.150.1, Java version: Java 8. It's a fresh install of Jenkins on Ubuntu 18.04 LTS. After I try to open the pipeline, all I can see is a stack trace.

            Thank you for the review comments oleg_nenashev. I have made the necessary changes to the comments. Please review and advice.

            saiprasadt Sai Prasad Tirunagari Narayan added a comment - Thank you for the review comments oleg_nenashev . I have made the necessary changes to the comments. Please review and advice.
            oleg_nenashev Oleg Nenashev added a comment -

            Sorry, missed the ping here. https://github.com/jenkinsci/jenkins/pull/3645/ is a patch

            Let's review it there

            oleg_nenashev Oleg Nenashev added a comment - Sorry, missed the ping here. https://github.com/jenkinsci/jenkins/pull/3645/  is a patch Let's review it there

            Hi oleg_nenashev, Is there some update on this issue. Please help me out a little. Thanks

            saiprasadt Sai Prasad Tirunagari Narayan added a comment - Hi oleg_nenashev , Is there some update on this issue. Please help me out a little. Thanks

            Hi oleg_nenashev, Jenkins version : 2.121.3

            This is what the version we are trying to install the plugin with.

            saiprasadt Sai Prasad Tirunagari Narayan added a comment - Hi oleg_nenashev , Jenkins version :  2.121.3 This is what the version we are trying to install the plugin with.
            oleg_nenashev Oleg Nenashev added a comment -

            Please provide a Jenkins version for which you see the exception. I need to know the version to map the line numbers to the code

             

            oleg_nenashev Oleg Nenashev added a comment - Please provide a Jenkins version for which you see the exception. I need to know the version to map the line numbers to the code  

            People

              Unassigned Unassigned
              saiprasadt Sai Prasad Tirunagari Narayan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: