com.tridion.deployer.ProcessingException: Phase: Deployment Prepare Commit Phase failed. Unable to prepare transaction: tcm:0-1120538-66560

Tridion | Tridion_Learner | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Tridion 2013 SP1 Publishing Failed. Deployment Prepare Commit Phase failed. Unable to prepare transaction - Tridion Stack Exchange

    stackexchange.com | 1 year ago
    com.tridion.deployer.ProcessingException: Phase: Deployment Prepare Commit Phase failed. Unable to prepare transaction: tcm:0-1120538-66560
  2. 0

    Tridion 2013 SP1 Publishing Failed. Deployment Prepare Commit Phase failed. Unable to prepare transaction

    Tridion | 2 years ago | Tridion_Learner
    com.tridion.deployer.ProcessingException: Phase: Deployment Prepare Commit Phase failed. Unable to prepare transaction: tcm:0-1120538-66560

    Root Cause Analysis

    1. javax.persistence.OptimisticLockException

      org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

      at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException()
    2. Hibernate EJB
      QueryImpl.getResultList
      1. org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402)[hibernate-entitymanager.jar:4.0.1.Final]
      2. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308)[hibernate-entitymanager.jar:4.0.1.Final]
      3. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)[hibernate-entitymanager.jar:4.0.1.Final]
      4. org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261)[hibernate-entitymanager.jar:4.0.1.Final]
      4 frames
    3. com.tridion.storage
      PageWorker.doDeploy
      1. com.tridion.storage.persistence.JPABaseDAO.executeQueryListResult(JPABaseDAO.java:281)[cd_datalayer.jar:na]
      2. com.tridion.storage.persistence.JPABaseDAO.executeQueryListResult(JPABaseDAO.java:249)[cd_datalayer.jar:na]
      3. com.tridion.storage.persistence.JPABaseDAO.executeQueryListResult(JPABaseDAO.java:220)[cd_datalayer.jar:na]
      4. com.tridion.storage.persistence.JPATaxonomyDAO.findTaxonomyKeyword(JPATaxonomyDAO.java:157)[cd_datalayer.jar:na]
      5. com.tridion.storage.services.TaxonomyCounterService.updateKeywordReferenceCount(TaxonomyCounterService.java:66)[cd_datalayer.jar:na]
      6. com.tridion.storage.services.TaxonomyCounterService.updateKeywordReferenceCount(TaxonomyCounterService.java:86)[cd_datalayer.jar:na]
      7. com.tridion.storage.services.TaxonomyCounterService.updateKeywordsReferenceCount(TaxonomyCounterService.java:49)[cd_datalayer.jar:na]
      8. com.tridion.storage.services.TaxonomyCounterService.updateKeywordsReferenceCount(TaxonomyCounterService.java:35)[cd_datalayer.jar:na]
      9. com.tridion.storage.deploy.workers.PageWorker.doDeploy(PageWorker.java:78)[cd_datalayer.jar:na]
      9 frames
    4. com.tridion.deployer
      QueueLocationHandler$1.run
      1. com.tridion.deployer.model.transaction.TransactionLogItemWorker.doWork(TransactionLogItemWorker.java:27)[cd_model.jar:na]
      2. com.tridion.deployer.phases.PreCommitPhase.runPrepare(PreCommitPhase.java:155)[cd_deployer.jar:na]
      3. com.tridion.deployer.phases.PreCommitPhase.execute(PreCommitPhase.java:101)[cd_deployer.jar:na]
      4. com.tridion.deployer.phases.DeployPipelineExecutor.runMainExecutePhase(DeployPipelineExecutor.java:198)[cd_deployer.jar:na]
      5. com.tridion.deployer.phases.DeployPipelineExecutor.doExecute(DeployPipelineExecutor.java:100)[cd_deployer.jar:na]
      6. com.tridion.deployer.phases.DeployPipelineExecutor.execute(DeployPipelineExecutor.java:64)[cd_deployer.jar:na]
      7. com.tridion.deployer.TransactionManager.handleDeployPackage(TransactionManager.java:82)[cd_deployer.jar:na]
      8. com.tridion.deployer.queue.QueueLocationHandler$1.run(QueueLocationHandler.java:180)[cd_deployer.jar:na]
      8 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[na:1.7.0_60]
      2. java.util.concurrent.FutureTask.run(Unknown Source)[na:1.7.0_60]
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.7.0_60]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.7.0_60]
      5. java.lang.Thread.run(Unknown Source)[na:1.7.0_60]
      5 frames