It's all about the answers!

Ask a question

ClearCase Sync fails after checking-in from ClearCase


Thomas Birkl (324) | asked Aug 09 '12, 3:19 a.m.
Hi there,

I'm doing my first steps in RTC I've setup the ClearCase Synchronizer for two dedicated synchronized RTC streams using two different CC branches.
Initialization, loading of my workspace, creating change sets and even delivery worked well.
RTC delivery caused CC checkins on the configured branches as expected.

However, after I checked-in on the dedicated rtc_main branch from the ClearCase end, my synchronizer does not work anymore and always produces the following error:

Problem running 'synchronizeStream':
Synchronization blocked by error: 
javax.wvcm.WvcmException: 'Deliver' failed. Preconditions have not been met: The associated work item must specify for which iteration the work is planned.
com.ibm.team.process.common.advice.TeamOperationCanceledException: 'Deliver' failed. Preconditions have not been met: The associated work item must specify for which iteration the work is planned.
Build failed. Exit value was 3.
I'm not sure what's the entire problem and what's RTC is tryining to tell me.
Could it me that I manually (using CLI) have to assiciate my ClearCase chekcin with an existing RTC work item? Is this causing sync to fail?
As far as I understood documentation such a scenario should work and in case of conflicts RTC should support me on merging/solving conflicts.
I even removed my first synced stream and created it again, working well until I checked-in from the CC end.

Any hints are very welcome!

BTW: I have latest RTC installed (4.0 RJF-I20120531-1400) and running CC v8.0.0.1 on SLES11 and Windows client.

thanks and best regards,
Thomas

3 answers



permanent link
Simon Eickel (1.1k75457) | answered Oct 11 '12, 4:21 a.m.
Hi Thomas,

I faced the same problem and got it solved when I filled the "Planned For" attribute in the WorkItem Template connected with this Synchronized Stream.
So if you open the Synchronization Stream (in Eclipse through the Clearcase Synchronized Streams View) you just have to switch to "TeamConcert" Tab where you'll find the WorkItem Template:
WorkItemTemplate

Then just click on the Link to the WorkItem and you'll be able to fill out the "planned for" attribute (If you have Timelines in your project):
plannedFor

Greetings,
Simon


permanent link
Karl Weinert (2.0k52736) | answered Aug 10 '12, 9:06 a.m.
JAZZ DEVELOPER
edited Aug 10 '12, 9:07 a.m.
I haven't set up the integration before but from the error it looks like your work item has a field requirement that isn't being met by the synchronizer.
The associated work item must specify for which iteration the work is planned

To see the required fields from the Project Area Editor go to Team Configuration then to Operation Behavior Under Operations select Save Work Item and select the Roll Column Now you should be able to look through the preconditions section.

Comments
Thomas Birkl commented Aug 14 '12, 8:25 a.m. | edited Aug 17 '12, 8:04 a.m.

Hi Karl,

thanks for your response.

There is a work item synchronized with the CC synchronized stream and it actually worked already before (the work item is assiciated to an iteration).
I imported the source tree from ClearCase using the synchronizer and setup my RTC workspace.
I created a change set with Jazz source control and it was successfully checked-in, delivered and synced back to ClearCase (checked-in by the synchronizer on my rtc_main branch).

It failed to work since a checked-in from the ClearCase end on the rtc_main branch, but as far as I understood documentation, bidirectional sync is supposed to work. So actually I expected to get my ClearCase change synced back to JAzz SCM, but unfortunately since then the synchronizer permanently fails with the error above.

Any hint from someone that has it sucessfully setup or had a similar issue?

Thanks,
Thomas


permanent link
Geoffrey Clemm (30.0k23035) | answered Aug 17 '12, 8:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The operations performed by the synchronizer must satisfy all of the process constraints that you have defined in RTC.   In particular, for an RTC stream, you can specify in the process area that any change-set delivered to the stream must be associated with a work item that has a Planned-For attribute that matches the current iteration of the project/team area that owns the stream.  Apparently, that process constraint has been set in the project area that owns the synchronization stream (perhaps this was set by someone recently, after you performed your initial sync?).  To satisfy this constraint, the Synchronizer automatically creates a work item for each "import from ClearCase" change-set, and tries to set the Planned-For attribute appropriately.  For some reason, the Planned-For attribute is not being set in that automatically generated work item.

So you'll want to work with Rational Support to find out why that attribute is not being set.   (And if you are not on Rational Support, keep posting here, and we'll see if we can help).

As a workaround, you are allowed to associate a "work item template" with a synchronization stream in the Properties or Editor page for that sync stream.   This is just a work item which has the fields you want set in that automatically generated work item.   In your case, you'll want to make sure that this work item has the Planned-For attribute set to the right value. 


Your answer


Register or to post your answer.