Capture Snapshot data fails with StackOverflowError
search cancel

Capture Snapshot data fails with StackOverflowError

book

Article ID: 92572

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal

Issue/Introduction

User Roles Report capture Snapshot data failed as following:
ERROR [com.netegrity.ims.exception.EventExecuteStateException] (Thread-36827) Exception: : java.lang.reflect.InvocationTargetException 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_71] 
... 
Caused by: java.lang.StackOverflowError 
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_71] 
at org.jboss.security.auth.login.BaseAuthenticationInfo.disableSecurityDomainInOptions(BaseAuthenticationInfo.java:131) [picketbox-4.0.21.Final.jar:4.0.21.Final]

Environment

Observed with IM r14.1.0 as a virtual Appliance implementation on CentOS.

Cause

A server log in DEBUG mode for "ims" category showed a huge abnormal activity in term of number of debug lines for a triggered access role object and ending with the java.lang.StackOverflowError.
It appeared as a loop.
Reviewing the definition of this particular access role showed a wrong Member Policy Rule definition.

This issue was caused by a Member Policy Rule of one access role "xxxxxxxx" which was: 
who are members of ( access role "xxxxxxxx" ) 
So the members of this access role were the members of this access role. 
This was a recursive definition that caused a loop and so the java.lang.StackOverflowError.

Resolution

Reviewed the Member Policy Rule setting to make sense.