javax.jcr.InvalidItemStateException: OakState0001: Unresolved conflicts in /content/dam/fetch123 | Community
Skip to main content
Level 2
October 10, 2017

javax.jcr.InvalidItemStateException: OakState0001: Unresolved conflicts in /content/dam/fetch123

  • October 10, 2017
  • 4 replies
  • 18826 views

Hi All,

I kept files in drop box and I created one cloud service and fetching metadata of files from drop box. While fetching file getting following exception in log javax.jcr.InvalidItemStateException: OakState0001: Unresolved conflicts in /content/dam/fetch123. But its able to fetch metadata successfully. How can I resolve this exception? What I have to do?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

joerghoh
Adobe Employee
Adobe Employee
October 10, 2017

Hi,

You get this exception when 2 threads concurrently try to write to the same location. Does your code do this?

Level 2
October 11, 2017

Hi,

I'm not sure whether 2 threads concurrently try to write to the same location.

smacdonald2008
Level 10
October 11, 2017

As Joerg suggests - looks like these threads are attempting to write to the same JCR location.

Bharath_valse
Level 4
May 16, 2019

Long running sessions might also be the cause for such conflicts as mentioned in [0], Please add debug level logs to the package mentioned by Joerg and additionally add debug level logging around the below packages. This will give more details into the conflict

  • org.apache.jackrabbit.oak.plugins.commit.MergingNodeStateDiff
  • org.apache.jackrabbit.oak.plugins.commit.ConflictValidator
  • org.apache.jackrabbit.oak.api
  • org.apache.jackrabbit.oak.spi.commit
  • org.apache.jackrabbit.oak.jcr.session

[0]

AEM anti pattern: Long running sessions | Things on a content management system

navinkaushal
Level 4
May 17, 2019

Hi @Bharath

This issue we are facing while creating a translation job (with language copies) it should create launch however the launch is not being created.

Will check with debug log.

Thanks

-Navin

February 24, 2020

Do you have any clue on Language Copies?

February 24, 2020

Did you find a solution for this? We also have the same problem in our translation projects such as:

24.02.2020 20:43:31.861 *ERROR* [10.222.101.124 [1582576275042] POST /content/projects/site/site-support---part-2/jcr:content/dashboard/gadgets/translationjob HTTP/1.1] com.adobe.cq.wcm.translation.impl.TranslationObjectImpl Error while saving

javax.jcr.InvalidItemStateException: OakState0001: Unresolved conflicts in /content/projects/site/site-support---part-2/jcr:content/dashboard/gadgets/translationjob