This discussion is archived
6 Replies Latest reply: Jan 28, 2013 2:57 AM by Rajeev_R RSS

deployment error

333 Newbie
Currently Being Moderated
hi all,

the below error am getting when doing deployment:


14:22:10,880 ERROR [DeploymentServer]
CAUGHT AT:
CONTAINER:atg.deployment.common.DeploymentException: Deployment '800002' to target 'Production' encountered a system level deployment error during data transfer.; SOURCE:atg.deployment.DistributedDeploymentException: Cannot resume deployment 800002 because it was cancelled before the deployment data
and markers were saved.
at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:414)
at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1399)
at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)
at atg.deployment.server.Deployment.run(Deployment.java:1951)
at java.lang.Thread.run(Thread.java:662)
Caused by: atg.deployment.DistributedDeploymentException: Cannot resume deployment 800002 because it was cancelled before the deployment data and markers were saved.
at atg.deployment.DeploymentManager.deploy(DeploymentManager.java:1069)
at atg.deployment.adapter.DistributedDeploymentAdapter.resumeDafDeployment(DistributedDeploymentAdapter.java:1944)
at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1307)
... 3 more
SOURCE EXCEPTION:
atg.deployment.DistributedDeploymentException: Cannot resume deployment 800002 because it was cancelled before the deployment data and markers were saved.
at atg.deployment.DeploymentManager.deploy(DeploymentManager.java:1069)
at atg.deployment.adapter.DistributedDeploymentAdapter.resumeDafDeployment(DistributedDeploymentAdapter.java:1944)
at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1307)
at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)



thanks in advance
333
  • 1. Re: deployment error
    Obed Murillo Newbie
    Currently Being Moderated
    Hi 333,

    Try to delete projects that are not completed and afterwards try doing a full deployment to initialize your snapshots.

    With that you will be able to complete your deploymnet

    Regards,
    Obed
  • 2. Re: deployment error
    Nooruddin Shaik Expert
    Currently Being Moderated
    Try look for more errors in logs. My guess would be there should be more error messages in the logs.

    The stack trace you have pasted is during resuming the deployment failed project.
    The deployment failed project most of the times fails when stopped and resumed.

    Cancel the deployment and deploy the project again. If you see errors then paste the error messages here.

    Peace
    Shaik
  • 3. Re: deployment error
    333 Newbie
    Currently Being Moderated
    hi,

    this is the error am getting while deploying for the first time,

    11:13:21,085 ERROR [DeploymentManager]
    CAUGHT AT:
    CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionIm
    ple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled t
    o enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >))
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7254)
    at atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1046)
    at atg.deployment.repository.ReferenceItemGenerator.createDummyItem(ReferenceItemGenerator.java:577)
    at atg.deployment.repository.ReferenceItemGenerator.findDummyReferenceItem(ReferenceItemGenerator.java:655)
    at atg.deployment.repository.ReferenceItemGenerator.generateDummyItems(ReferenceItemGenerator.java:312)
    at atg.deployment.repository.RepositoryWorkerThread.preDeploymentPhase(RepositoryWorkerThread.java:567)
    at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:338)
    Caused by: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f
    33:7b19 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnin
    gs. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >))
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
    at atg.service.jdbc.SwitchingDataSource.getConnection(SwitchingDataSource.java:930)
    at atg.adapter.gsa.GSATransaction.getConnection(GSATransaction.java:794)
    at atg.adapter.gsa.GSAItemDescriptor.getConnection(GSAItemDescriptor.java:2631)
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7171)
    ... 6 more
    Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde
    5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >)
    at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:409)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
    ... 10 more
    Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >
    at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:879)
    at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:675)
    at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)
    ... 14 more
    SOURCE EXCEPTION:
    org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 sta
    tus: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=Tran
    sactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >))
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
    at atg.service.jdbc.SwitchingDataSource.getConnection(SwitchingDataSource.java:930)
    at atg.adapter.gsa.GSATransaction.getConnection(GSATransaction.java:794)
    at atg.adapter.gsa.GSAItemDescriptor.getConnection(GSAItemDescriptor.java:2631)
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7171)
    at atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1046)
    at atg.deployment.repository.ReferenceItemGenerator.createDummyItem(ReferenceItemGenerator.java:577)
    at atg.deployment.repository.ReferenceItemGenerator.findDummyReferenceItem(ReferenceItemGenerator.java:655)
    at atg.deployment.repository.ReferenceItemGenerator.generateDummyItems(ReferenceItemGenerator.java:312)
    at atg.deployment.repository.RepositoryWorkerThread.preDeploymentPhase(RepositoryWorkerThread.java:567)
    at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:338)
    Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde
    5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >)
    at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:409)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
    ... 10 more
    Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >
    at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:879)
    at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:675)
    at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)
    ... 14 more
    11:13:21,138 ERROR [DeploymentManager] item = null cause = CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to
    enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax
    .transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >))
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7254)
    at atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1046)
    at atg.deployment.repository.ReferenceItemGenerator.createDummyItem(ReferenceItemGenerator.java:577)
    at atg.deployment.repository.ReferenceItemGenerator.findDummyReferenceItem(ReferenceItemGenerator.java:655)
    at atg.deployment.repository.ReferenceItemGenerator.generateDummyItems(ReferenceItemGenerator.java:312)
    at atg.deployment.repository.RepositoryWorkerThread.preDeploymentPhase(RepositoryWorkerThread.java:567)
    at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:338)
    message = An error occurred during the pre-deployment phase. time = 2013-01-28 atg.deployment.DeploymentFailure@5ef0e20f
    CAUGHT AT:
    CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionIm
    ple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled t
    o enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:7b19 status: ActionStatus.ABORT_ONLY >))
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:7254)
    at atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1046)
    at atg.deployment.repository.ReferenceItemGenerator.createDummyItem(ReferenceItemGenerator.java:577)
    at atg.deployment.repository.ReferenceItemGenerator.findDummyReferenceItem(ReferenceItemGenerator.java:655)

    11:13:21,542 INFO [DeploymentServer] DEBUG DistributedDeploymentAdapter:DeploymentListener.deploymentFailed called for deployment with ID: 1200002
    11:13:21,542 INFO [DeploymentServer] DEBUG DistributedDeploymentAdapter:DAFDeploymentID: 1200002 matches DeploymmentID: 1200002
    11:13:21,542 INFO [DeploymentServer] DEBUG DistributedDeploymentAdapter:DeploymentListener.deploymentFailed
    11:13:21,544 INFO [DeploymentServer] DEBUG DistributedDeploymentAdapter:found 1 failure messages
    11:13:21,544 INFO [DeploymentServer] DEBUG DistributedDeploymentAdapter:adding failure message An error occurred during the pre-deployment phase. with severity Error
    11:13:21,551 INFO [DeploymentServer] DEBUG DistributedDeploymentAdapter: deployment failed
    11:13:21,666 ERROR [DeploymentServer]
    atg.deployment.common.DeploymentException: Deployment '1200002' to target 'Production' encountered a system level deployment error during data transfer.
    at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:333)
    at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1369)
    at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)
    at atg.deployment.server.Deployment.run(Deployment.java:1951)
    at java.lang.Thread.run(Thread.java:662)

    --------------------------------------------------
    Note:

    after getting the above error, as you said i cancelled the deployment and again i tried and i got the below error:

    11:17:37,120 WARN [PublishingRepository] ConcurrentUpdateException caught updating an item during a commit. Call updateItem explicitly to catch and handle this exception.
    atg.repository.ConcurrentUpdateException: no rows updated oldVersion=4 for item=targetDef:tar132 in GSATransaction=atg.adapter.gsa.GSATransaction@ecd1e98 thread=Thread-82 transaction=TransactionImple < ac, BasicAction: ad14695:fde5:51060f33:84c8 status: ActionStatus.RUNNING >
    at atg.adapter.gsa.GSAItemDescriptor.updateItem(GSAItemDescriptor.java:7507)
    at atg.adapter.gsa.ItemTransactionState.updateItemState(ItemTransactionState.java:984)
    at atg.adapter.gsa.GSATransaction.beforeCompletion(GSATransaction.java:452)
    at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)
    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:269)
    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:89)
    at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
    at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)
    at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
    at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
    at atg.dtm.TransactionManagerWrapper.commit(TransactionManagerWrapper.java:438)
    at atg.dtm.TransactionDemarcation.end(TransactionDemarcation.java:551)
    at atg.deployment.server.Deployment.initializeTarget(Deployment.java:4648)
    at atg.deployment.server.Deployment.createPrerequisiteSnapshots(Deployment.java:2325)
    at atg.deployment.server.Deployment.prepareAgents(Deployment.java:4362)
    at atg.deployment.server.Deployment.run(Deployment.java:1898)
    at java.lang.Thread.run(Thread.java:662)
    11:17:37,165 ERROR [DeploymentServer]
    atg.deployment.common.DeploymentException: Initial Snapshot 'null' could not be retrieved for Target 'Production'.
    at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:333)
    at atg.deployment.server.Deployment.getTargetInitialSnapshot(Deployment.java:3509)
    at atg.deployment.server.Deployment.calculateDeploymentSnapshotsInternal(Deployment.java:3596)
    at atg.deployment.server.Deployment.calculateDeploymentSnapshots(Deployment.java:3544)
    at atg.deployment.server.Deployment.prepareAgents(Deployment.java:4366)
    at atg.deployment.server.Deployment.run(Deployment.java:1898)
    at java.lang.Thread.run(Thread.java:662)

    Edited by: 333 on Jan 28, 2013 11:19 AM
  • 4. Re: deployment error
    Nooruddin Shaik Expert
    Currently Being Moderated
    Its a JBoss datasource issue.
    Can you confirm is you are using XA transactions in your JBoss datasources otherwise you get this error?
    There are few workaround suggested for this error to tweak in JBoss.
    http://blogs.adobe.com/livecycle/2011/06/javax-ejb-transactionrolledbacklocalexception-could-not-enlist-in-transaction-on-entering-meta-aware-object-error-seen-in-jboss-server-log.html

    Peace
    Shaik
  • 5. Re: deployment error
    333 Newbie
    Currently Being Moderated
    hi,

    yes, my datasource file is the problem,, now i got the answer

    thanks for the assistance

    regards
    333

    Edited by: 333 on Jan 28, 2013 12:55 PM
  • 6. Re: deployment error
    Rajeev_R Journeyer
    Currently Being Moderated
    Could you please provide the fix as well here, this will help other users.

    Cheers
    R

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points