Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faces.ajax.request() fails due to null reference if used with prototype.js #5499

Closed
tnagao7 opened this issue Sep 6, 2024 · 0 comments · Fixed by #5500
Closed

faces.ajax.request() fails due to null reference if used with prototype.js #5499

tnagao7 opened this issue Sep 6, 2024 · 0 comments · Fixed by #5500

Comments

@tnagao7
Copy link
Member

tnagao7 commented Sep 6, 2024

Describe the bug

If Mojarra is used with a library (prototype.js), calling faces.ajax.request() causes a null reference error with the following stack trace:

TypeError: Cannot read properties of null (reading 'removeChild')
 at remove (http://localhost:4848/theme/META-INF/prototype/prototype.js:2176:24)
 at HTMLDivElement._methodized [as remove] (http://localhost:4848/theme/META-INF/prototype/prototype.js:456:23)
 at deleteNode (http://localhost:4848/jakarta.faces.resource/faces.js.jsf?ln=jakarta.faces:563:28)
 at doUpdate (http://localhost:4848/jakarta.faces.resource/faces.js.jsf?ln=jakarta.faces:975:25)
 at Object.response (http://localhost:4848/jakarta.faces.resource/faces.js.jsf?ln=jakarta.faces:2386:33)
 at Object.onComplete (http://localhost:4848/jakarta.faces.resource/faces.js.jsf?ln=jakarta.faces:1235:32)
 at AjaxEngine.req.sendRequest (http://localhost:4848/jakarta.faces.resource/faces.js.jsf?ln=jakarta.faces:1367:40)
 at sendRequest (http://localhost:4848/jakarta.faces.resource/faces.js.jsf?ln=jakarta.faces:2079:32)
 at Object.request (http://localhost:4848/jakarta.faces.resource/faces.js.jsf?ln=jakarta.faces:2083:21)

The library prototype.js is used in GlassFish administration console.
The bug is affecting the behavior of GlassFish administration console and reported in:

To Reproduce

Reproduction steps are available in the following GlassFish issues:

Expected behavior

It is expected that the null reference error does not occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant