timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-53182] Uncaught TypeError: Cannot read property 'firstChild' of undefined #10027

Open timja opened 6 years ago

timja commented 6 years ago

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 ()
at behavior.js:111
at Array.forEach ()
at behavior.js:107
at Array.forEach ()

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

 


Originally reported by saiprasadt, imported from: Uncaught TypeError: Cannot read property 'firstChild' of undefined
  • status: In Review
  • priority: Major
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 6 years ago

oleg_nenashev:

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

 

timja commented 6 years ago

saiprasadt:

Hi oleg_nenashev, Jenkins version : 2.121.3

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

timja commented 6 years ago

saiprasadt:

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

timja commented 6 years ago

oleg_nenashev:

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

Let's review it there

timja commented 6 years ago

saiprasadt:

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

timja commented 5 years ago

preethamk:

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.

timja commented 5 years ago

wangfei0309:

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.