StackOverflowError in EPP 5 with LDAP

Solution Verified - Updated -

Environment

  • JBoss Enterprise Portal Platform (EPP)
    • 5.0.1.GA

Issue

Having configured to read groups from LDAP, EPP 5.0.1.GA fails to start with the following error:

WARN [core.security.SetCurrentIdentityFilter] An error occured while cache user profile 
javax.servlet.ServletException: java.lang.StackOverflowError 
at org.exoplatform.portal.application.PortalController.onService(PortalController.java:131) 
at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
[...] 
Caused by: java.lang.StackOverflowError 
at org.exoplatform.services.organization.idm.GroupDAOImpl.getGroupId(GroupDAOImpl.java:576) 
at org.exoplatform.services.organization.idm.GroupDAOImpl.getGroupId(GroupDAOImpl.java:611) 
[...] 

Resolution

Upgrade to EPP 5.1.0 or later, which contains a fix for JBEPP-635

Root Cause

This is caused by some groups in the LDAP structure containing a circular cross reference, which leads to a loop in the GroupDAOImpl.getGroupId(..) method.

https://jira.jboss.org/browse/JBEPP-635 has been created to get this fixed.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.