Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

AEMaaCS AC Tool is giving null pointer exception for yaml execution

Avatar

Level 3

Hi All,

 

I need some help here, I am using AEMaaCS AC tool to apply the groups and permissions to it.

I have created some new groups and also updating the externalId for some existing groups in that yaml file, now when I am running this yaml file, its is giving me below error :

Installation triggered: Fri Jun 09 03:00:51 UTC 2023

03:00:51.200: *** Applying AC Tool Configuration...
03:00:51.201: Running with v3.0.4 on instance id 08857f1c-401a-4c12-be54-1751f1a707b5
03:00:51.233: Using YAML parser with ConfigurationAdmin Plugin placeholder support
03:00:51.234: Using configuration file /apps/projectname/actool/author/dam/dam-groups.yaml
03:00:51.625: Loaded configuration in 423ms
03:00:56.300: Retrieved existing ACLs from repository in 4.7sec
03:00:56.300: *** Starting installation of 6 authorizables from configuration...
03:00:56.671: Prefetched 481 authorizables in 369ms
03:00:58.566: Prefetched 540 memberships in 1.9sec
03:00:58.632: ERROR: Could not process yaml files / e=biz.netcentric.cq.tools.actool.authorizableinstaller.AuthorizableCreatorException: java.lang.NullPointerException
Execution time: 0 ms
Success: false

 

When I checked the logs I can see 

09.06.2023 03:00:58.631 [cm-p15699-e36842-aem-author-567dbcfc4f-9pkfj] *WARN* [165.225.232.176 [1686279651140] POST /mnt/overlay/netcentric/actool/content/overview/content/items/actoolpanel HTTP/1.1-ACTool-Config-Worker] biz.netcentric.cq.tools.actool.authorizableinstaller.impl.AuthorizableInstallerServiceImpl Group xx-campaign-managers already exists in system!
09.06.2023 03:00:58.713 [cm-p15699-e36842-aem-author-567dbcfc4f-9pkfj] *INFO* [165.225.232.176 [1686279651140] POST /mnt/overlay/netcentric/actool/content/overview/content/items/actoolpanel HTTP/1.1-ACTool-Config-Worker] biz.netcentric.cq.tools.actool.history.impl.HistoryUtils Saved history in node: /var/statistics/achistory/history_1686279658633_via_aem_admin_ui
09.06.2023 03:00:58.818 [cm-p15699-e36842-aem-author-567dbcfc4f-9pkfj] *INFO* [165.225.232.176 [1686279651140] POST /mnt/overlay/netcentric/actool/content/overview/content/items/actoolpanel HTTP/1.1-ACTool-Config-Worker] org.apache.jackrabbit.oak.plugins.blob.AbstractSharedCachingDataStore Added blob [a83f280f5dfb2b9d4056d079cc09fcc0856d4d5d05e2c1a81ecf19cc9e35f55c] to backend
09.06.2023 03:00:59.097 [cm-p15699-e36842-aem-author-567dbcfc4f-9pkfj] *WARN* [165.225.232.176 [1686279651140] POST /mnt/overlay/netcentric/actool/content/overview/content/items/actoolpanel HTTP/1.1] biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl Exception during installation of authorizables (no rollback), e=biz.netcentric.cq.tools.actool.authorizableinstaller.AuthorizableCreatorException: java.lang.NullPointerException
biz.netcentric.cq.tools.actool.authorizableinstaller.AuthorizableCreatorException: java.lang.NullPointerException
at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.installAuthorizables(AcInstallationServiceImpl.java:539) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.0.4]
at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.installAcConfiguration(AcInstallationServiceImpl.java:329) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.0.4]
at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.installMergedConfigurations(AcInstallationServiceImpl.java:643) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.0.4]
at biz.netcentric.cq.tools.actool.impl.AcInstallationServiceImpl.installConfigurationFiles(AcInstallationServiceImpl.java:289) [biz.netcentric.cq.tools.accesscontroltool.bundle:3.0.4]

 

Does Cloud service don't allow us to overwrite the existing user groups permissions?

 

Thanks,

SD

3 Replies

Avatar

Community Advisor

@SDusane This is due to the incorrect format in the yaml file. 
look for provided spacing in the yaml file, there should be a space between a '-' and string.

Addition to that, you can check if all of your yamls have been resolved properly or not by using the URL below.

http://localhost:4502/mnt/overlay/netcentric/actool/content/overview.html/actool

Avatar

Level 3

Hi @Rohit_Utreja ,

 

I have run the same yaml script on Dev without any issue but when I am running it on stage it is causing this issue. I suspect permissions issue on Stage.

However I recheck my yaml file and I don't find any syntax issue in it. 

Any other solution would be appreciated.

 

Thanks,

SD

Avatar

Community Advisor

@SDusane 
Are you still facing the issue?
and could you please share, how are you deploying the code to AEM (via pipeline would be preferred)