Tuesday, October 11, 2016

PermissionDeniedException while creating site agents in BCC

When creating site agents in BCC, there is error in logs:
Caused by: CONTAINER:atg.repository.RepositorySecurityException; SOURCE:atg.security.PermissionDeniedException: You do not have read access to the project item descriptor.
        at atg.adapter.secure.GenericSecuredRepository.checkAccess(GenericSecuredRepository.java:457) [_DAS_slib_sclasses.jar:]
        at atg.adapter.secure.GenericSecuredRepositoryView.executeQuery(GenericSecuredRepositoryView.java:401) [_DAS_slib_sclasses.jar:]
        at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:227) [_DAS_slib_sclasses.jar:]
        at atg.repository.tojava.runtime.RJSupport.executeRqlStatementForOne(RJSupport.java:1121) [_DAS_slib_sclasses.jar:]
        ... 42 more


This is caused because there user selected the project and then trying to create the agents.
The workaround is logout and login directly to <bcc-url>/atg/atgadmin and create the agents.