[
https://issues.jboss.org/browse/GTNPORTAL-3475?page=com.atlassian.jira.pl...
]
Peter Palaga commented on GTNPORTAL-3475:
-----------------------------------------
The two requests are sent only if my Chrome extension (1) is active. When I disable it,
there is only one request sent. The extension used to work without problems before, so it
is maybe a bug in the current Chrome version.
But anyway, given that two concurrent requests are possible by design of WebUI, this needs
to be fixed in {{UIGroupMembershipSelector}}. The second concurrent request can
theoretically also come from some other source, say a browser refresh (combined with an
overloaded server) or similar. So, I am going to fix this in UIGroupMembershipSelector
through loading listMemberhip in a thread-safe manner.
(1)
https://github.com/ppalaga/misc-content-scripts
NPE in LinkedList$ListItr.next when iterating over
UIGroupMembershipSelect.getListMemberhip()
---------------------------------------------------------------------------------------------
Key: GTNPORTAL-3475
URL:
https://issues.jboss.org/browse/GTNPORTAL-3475
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Peter Palaga
Attachments: GTNPORTAL-3475.log
Looks like a concurrent modification of the {{LinkedList}} refered to by
{{UIGroupMembershipSelect.listMemberhip}}, because:
i. It is not always reproducible, the NPE occurs roughly once per 10 attempts.
ii. It happens on line {{next = next.next}} of the JRE's {{LinkedList.ListItr}} where
it is hard to thing of anything else than concurrent modification as a cause.
Steps to reproduce:
(1) Start clean Portal instance for the first time
(2) Go to Application Registry
(3) Import Applications
Not OK: There is an NPE logged (the whole log is attached):
{code:none}
Caused by: java.lang.NullPointerException
at java.util.LinkedList$ListItr.next(LinkedList.java:891) [rt.jar:1.7.0_55]
at UIGroupMembershipSelector.run(UIGroupMembershipSelector.gtmpl:20) at
org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:99)
[exo.portal.component.scripting-3.8.0.Beta02-SNAPSHOT.jar:3.8.0.Beta02-SNAPSHOT]
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:115)
[exo.portal.component.scripting-3.8.0.Beta02-SNAPSHOT.jar:3.8.0.Beta02-SNAPSHOT]
{code}
Expected: No NPE
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)