Getting Persistent exception in the highlighted line of code. 'stageAssetPath' and 'destinationAssetFilePath' are coming correct. Any idea what could be the cause?
Solved! Go to Solution.
Views
Replies
Total Likes
Please add a check if there are changes in resource resolver and then call the commit().
if (resourceResolver.hasChanges()) {
resourceResolver.commit();
}
Also without removing the asset, cannot you move the asset to the destination? It's a move operation so it should work.
Thanks!
Please add a check if there are changes in resource resolver and then call the commit().
if (resourceResolver.hasChanges()) {
resourceResolver.commit();
}
Also without removing the asset, cannot you move the asset to the destination? It's a move operation so it should work.
Thanks!
Hi @P_V_Nair ,
Please check below link
org.apache.sling.api.resource.ResourceResolver.commit java code examples | Tabnine
Hope this helps!!
Thanks
Can you please share the complete exception, at best including the stacktrace?
Views
Likes
Replies
Views
Likes
Replies