Saturday, December 17, 2011

ATG - Illegal attempt to diff snapshots on different branches

Problem
    Are you getting the following error in your when you deploy projects from BCC to a target ? Are you using late staged deployment ?

[12/27/08 7:24:35:795 UTC] 000000be SystemOut     O /atg/epub/DeploymentServer  ---     CONTAINER:atg.deployment.common.DeploymentException: Deployment '{0}' to target '{1}' encountered a versioning error building the manifest.; SOURCE:atg.versionmanager.exceptions.VersionException: java.lang.IllegalArgumentException: illegal attempt to diff snapshots on different branches.
        at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:360)
        at atg.deployment.adapter.DistributedDeploymentAdapter.createStandardDeploymentData(DistributedDeploymentAdapter.java:1082)
        at atg.deployment.adapter.DistributedDeploymentAdapter.createDeploymentData(DistributedDeploymentAdapter.java:554)
        at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:277)
        at atg.deployment.server.Deployment.run(Deployment.java:1549)
        at java.lang.Thread.run(Thread.java:570)
Caused by :atg.versionmanager.exceptions.VersionException: java.lang.IllegalArgumentException: illegal attempt to diff snapshots on different branches.
        at atg.versionmanager.impl.SnapshotRepositoryImpl.createSnapshotDiff(SnapshotRepositoryImpl.java:108)
        at atg.deployment.adapter.DistributedDeploymentAdapter.createStandardDeploymentData(DistributedDeploymentAdapter.java:1034)
        at atg.deployment.adapter.DistributedDeploymentAdapter.createDeploymentData(DistributedDeploymentAdapter.java:554)
        at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:277)
        at atg.deployment.server.Deployment.run(Deployment.java:1549)
        at java.lang.Thread.run(Thread.java:570)
Caused by (#2):java.lang.IllegalArgumentException: illegal attempt to diff snapshots on different branches.
        at atg.versionmanager.impl.SnapshotRepositoryImpl.createSnapshotDiff(SnapshotRepositoryImpl.java:108)
        at atg.deployment.adapter.DistributedDeploymentAdapter.createStandardDeploymentData(DistributedDeploymentAdapter.java:1034)
        at atg.deployment.adapter.DistributedDeploymentAdapter.createDeploymentData(DistributedDeploymentAdapter.java:554)
        at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:277)
        at atg.deployment.server.Deployment.run(Deployment.java:1549)
        at java.lang.Thread.run(Thread.java:570)

Solution
    I got this error because i was having both my staging and production targets in my late staged workflow point to the same node. When i made them point to two different customer facing node instances the issue got resolved.

No comments:

Post a Comment