Getting warning while deleting a component from a page. | Community
Skip to main content
Umesh_Thakur
New Participant
Mar 31, 2021 11:20 AM UTC
Solved

Getting warning while deleting a component from a page.

Dear Members,

I am facing one issue while deleting a component from a page.

In aem's error log I can see below warning when try to delete an already authored component in it though component get deleted.

Some more details:

this stack trace is from my local.

I am not able to reproduce this issue in wknd site on the same local instance.

though I can see this warning in error log but component get deleted with this warning.

 

so I just wanted to check, is there any way we can handle this warning ?

As per this https://github.com/jwadolowski/cookbook-cq/issues/37 it seems to be a bug but still if anyone can provide some input on it.

 

Thanks

Umesh Thakur

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Umesh_Thakur
Umesh_ThakurAccepted solution
New Participant
Apr 1, 2021 4:25 AM UTC

Thanks everyone for spending sometime for the below issue.

Now we have the root cause of the below warning that is :

We have one org.apache.sling.rewriter.Transformer and org.apache.sling.rewriter.TransformerFactory implementation in our project that was looking for the path, which was deleted as part of the deletion activity, and trying to do some operation.

 

5 replies

Umesh_Thakur
Umesh_ThakurAuthorAccepted solution
New Participant
Apr 1, 2021 4:25 AM UTC

Thanks everyone for spending sometime for the below issue.

Now we have the root cause of the below warning that is :

We have one org.apache.sling.rewriter.Transformer and org.apache.sling.rewriter.TransformerFactory implementation in our project that was looking for the path, which was deleted as part of the deletion activity, and trying to do some operation.

 

Translate
Bhuwan_B
New Participant
Mar 31, 2021 1:15 PM UTC

@umesh_thakur Can you please check below article and try checking mentioned root cause to fix your issue if that helps.

https://stackoverflow.com/questions/38878394/javax-jcr-invaliditemstateexception-item-cannot-be-saved

https://helpx.adobe.com/in/experience-manager/kb/how-to-find-conflicts-when-getting-oakstate0001.html

In most cases, the following might be root cause:

  • Same operation was trigerred in a short time. 
  • Customized workflow or jsp being used wiithout consideration of session management

 

Translate
Employee
Mar 31, 2021 1:12 PM UTC

If the issue is not reproducible on the WKND site, I highly doubt it's an issue with the core AEM code and the issue might be related to the Sling model Or other backend custom code that gets invoked during the component deletion.

 

That said, If you are able to reproduce it without any custom code, I would recommend logging a support case.

 

 

Translate
Asutosh_Jena_
New Participant
Mar 31, 2021 12:12 PM UTC

Hi @umesh_thakur 

 

This issue occurs when two threads concurrently try to write or perform same operation to the same location.

Is this reproducible for all the components or for any specific component? Also is this on all the pages or on any specific page?

 

Thanks!

Translate
Umesh_Thakur
New Participant
Mar 31, 2021 12:29 PM UTC
That I know @Asuthos, if same thread try to write at the same location, but how can I stop this ? this is happening for all the pages and all the components in the project but not in wknd site in the same instance.
Translate