Hi,
Below code was working fine previously. But recently we found that exceptions were throwing while system excuting below VAP API, and the stack info shows it's related to parse some particular ldap groups. Anybody has any idea why was this happening? Thanks much.
try{
UserGroupManager ug = UserGroupManager.getInstance();
com.epicentric.entity.EntityType entityType = ug.getUserGroupEntityType();
Set<UserGroup> groupSet = (Set<UserGroup>) currentUser.getParents(entityType, false); // throw below exceptions here
for (UserGroup group : groupSet){
String groupName = (String) group.getProperty("title");
if (StringUtils.equals(stxlevelguidecode, ROLE_NAME_OPERATOR)){
groupName = SetUserInfo.ROLE_NAME_OPERATOR; //add by Srini
}
String currentRole = getRoleByGroupName(groupName);
if(SetUserInfo.roleMap.get(currentRole).intValue() > SetUserInfo.roleMap.get(ret).intValue()){
ret = currentRole;
}
}
}
catch(EntityPersistenceException e)
{
LOG.error(e);
e.printStackTrace();
}
com.epicentric.entity.EntityPersistenceException: An error occurred while storing, retrieving, or querying an entity or entity relationship from the entity persistence store. The exception was related to the entity with UID, Unable to locate primary delegate entity using foreign keys { title=VGN-SeagateNews-CC-TopStories,ou=Applications }..
com.epicentric.entity.EntityPersistenceException: An error occurred while storing, retrieving, or querying an entity or entity relationship from the entity persistence store. The exception was related to the entity with UID, Unable to locate primary delegate entity using foreign keys { title=VGN-SeagateNews-CC-TopStories,ou=Applications }..
at com.epicentric.entity.datasource.internal.aggregate.AggregateEntity.getPrimaryDelegateEntity(AggregateEntity.java:282)
at com.epicentric.entity.datasource.internal.aggregate.AggregateEntity.<init>(AggregateEntity.java:143)
at com.epicentric.entity.datasource.internal.aggregate.AggregateDataSource.convertToAggregateEntity(AggregateDataSource.java:1049)
com.epicentric.entity.EntityPersistenceException: An error occurred while storing, retrieving, or querying an entity or entity relationship from the entity persistence store. The exception was related to the entity with UID, Unable to locate primary delegate entity using foreign keys { title=VGN-SeagateNews-CC-IndustryNews,ou=Applications }..
com.epicentric.entity.EntityPersistenceException: An error occurred while storing, retrieving, or querying an entity or entity relationship from the entity persistence store. The exception was related to the entity with UID, Unable to locate primary delegate entity using foreign keys { title=VGN-SeagateNews-CC-IndustryNews,ou=Applications }..
at com.epicentric.entity.datasource.internal.aggregate.AggregateEntity.getPrimaryDelegateEntity(AggregateEntity.java:282)
at com.epicentric.entity.datasource.internal.aggregate.AggregateEntity.<init>(AggregateEntity.java:143)
at