I'm trying to create a script that removes inactive users from a project role.
First I run an SQL query that gives me the inactive users still in a role. Then I try to execute this function for each entry in the SQL result:
projectRoleService.removeAllRoleActorsByNameAndType (it.user_name, it.NAME, errorCollection)
But I get the following error for each entry:
WARN [ofbiz.ConnectionPoolHealthSqlInterceptor]: Dangerous use of multiple connections: taken => count=2; marks=[1-0]; pool=29/20
WARN [ofbiz.ConnectionPoolHealthSqlInterceptor]: Dangerous use of multiple connections: replaced => count=1; marks=[0-0]; pool=28/20
Does anyone have an idea on how to avoid this issue?