TeamRepositoryException: Cannot close change set that is not active in workspace or in suspended list
![]()
We have a custom follow up action extending the operation "com.ibm.team.scm.server.deliver" so when a delivery in to a stream occurs, then the current change sets are promoted to a "mirror" stream, too.
We used this server extension since RTC v2.0.0.2, but now that we migrated to RTC v4.0.7 an exception is thrown:
com.ibm.team.repository.common.TeamRepositoryException: Cannot close change set that is not active in workspace or in suspended listWe found this exception is thrown by "com.ibm.team.scm.service.internal.operations.CloseChangeSetsOperation" as: if( cs.isActive() || checkActive )We tried to change the change sets status to not active as well as to close the change sets before the deliver operation, but these didn't do the trick...
Any advice?
Thanks in advance.
|
2 answers
![]()
When you are making a call to close the changesets, you may be passing 'checkActive' parameter as true.
Here is a javadoc for 'checkActive' -
if <code>true</code>, checks that all of the given change sets
* are among this workspace's set of active change sets or active
* in the suspended set of the workspace. If any of them do not
* meet this criteria, throws TeamRepositoryException.
* If <code>false</code>, the check is skipped. Skipping the
* check is useful for callers that just want to ensure that a
* change set is closed, whether or not it started out as active.
May be, you should try passing this parameter as 'false'.
|