Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1096190

Summary: NPE in LinkedList$ListItr.next when iterating over UIGroupMembershipSelect.getListMemberhip()
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Peter Palaga <ppalaga>
Component: PortalAssignee: Peter Palaga <ppalaga>
Status: CLOSED UPSTREAM QA Contact: Tomas Kyjovsky <tkyjovsk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: epp-bugs, oskutka
Target Milestone: ER03   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:35:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Palaga 2014-05-09 11:47:17 UTC
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.


Version-Release number of selected component (if applicable):
JBoss Portal 6.2.0.ER2

How reproducible:
Cca once per 10 attempts.


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 in https://issues.jboss.org/browse/GTNPORTAL-3475):
Unable to find source-code formatter for language: plain. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
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]
Expected: No NPE

Comment 2 Peter Palaga 2014-05-16 14:53:00 UTC
PR sent to upstream https://github.com/gatein/gatein-portal/pull/854

Comment 3 Peter Palaga 2014-05-27 12:40:20 UTC
https://github.com/gatein/gatein-portal/pull/854 was merged in upstream.

Comment 4 Tomas Kyjovsky 2014-06-24 10:27:10 UTC
Counldn't reproduce. Performed 12 attempts with 6.2.0.ER2, 3 attempts with 6.2.0.ER3.

Comment 5 Petr Mensik 2014-06-24 10:27:32 UTC
I attempted to import applications about 50 times and there was no NPE in the server log.

Comment 8 Red Hat Bugzilla 2025-02-10 03:35:48 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.