Open javaserverfaces opened 7 years ago
Reported by fjuma
ren.zhijun.oracle said: Use this bug to track in the Mojarra side: Bug 25683409 - JSF 1.2.15 PATCH REQUEST
Issue-Links: clones JAVASERVERFACES-3378
This issue was imported from java.net JIRA JAVASERVERFACES-4234
Please see this important message regarding community contributions to Mojarra.
https://javaee.groups.io/g/jsf-spec/message/30
Also, please consider joining that group, as that group has taken the place of the old dev@javaserverfaces.java.net mailing list.
Thanks,
Ed Burns
When deploying an EAR that contains multiple JSF web apps to JBoss EAP 6.x, the following ArrayIndexOutOfBoundsException sometimes occurs:
The underlying issue seems to be that when multiple JSF web apps are deployed in parallel, it's possible for two threads to execute ApplicationImpl#getELResolver() at the same time. In this case, it's possible for both threads to get past the null check in ApplicationImpl#performOneTimeELInitialization, causing this initialization to be executed twice, in parallel. This ultimately results in the ArrayIndexOutOfBoundsException shown above.
The following patch fixes this problem by placing the call to performOneTimeELInitialization in a synchronized block:
Environment
EAP 6.2.2, Mojarra 2.1.27
Affected Versions
[1.2_16]