javax.jcr.InvalidItemStateException when when I remove the component. | Community
Skip to main content
aliaksandr_hvozdzeu
Level 3
June 2, 2021
Solved

javax.jcr.InvalidItemStateException when when I remove the component.

  • June 2, 2021
  • 2 replies
  • 1553 views

Hello.

Guys, please tell me. What could be causing this error?

I add a component to a page and when I remove it I get an error.

To work further I have to reload the page.

There is an error in the logs:

All bundles are active. AEM version 6.5.8

Very grateful in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pawan-Gupta

Hello,

I experience this issue, if

1. you have shard servers configured to divide content

      - if yes, do you see similar issue when you directly access the app server not via web server/above

2. you are executing operations at deletion of component node (before_delete or after_delete or similar)

 

plz share so that we can suggest!!

2 replies

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 2, 2021

@aliaksandr_hvozdzeu,

Is there. custom cq:listener or some sort of JavaScript running on the author, wherever a component have been removed from the page?

aliaksandr_hvozdzeu
Level 3
June 2, 2021
No, nothing like that. This message appears for any component and appeared after the version update from 6.5.6 to 6.5.8.
Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
June 3, 2021

Hello,

I experience this issue, if

1. you have shard servers configured to divide content

      - if yes, do you see similar issue when you directly access the app server not via web server/above

2. you are executing operations at deletion of component node (before_delete or after_delete or similar)

 

plz share so that we can suggest!!

aliaksandr_hvozdzeu
Level 3
June 3, 2021

I am performing a component removal on a web server on the author. Steps to reproduce:

  1. Add a component to the page
  2. Delete it
  3. Notice the error message at the top of the page
  4. Notice the component isn't deleted
  5. Refresh the page
  6. Notice the component is deleted.

But in the CRX can see that the component has been removed.

However, if I do this on a local Instance, I don't see such an error.