Troubleshooting
Problem
This technote explains why the error []Unable to get current foundation's closure for stream[] might occur when using IBM® Rational® ClearCase® to rebase a UCM stream.
Cause
Attempts to rebase a UCM stream results in the following error:
Unable to get current foundation's closure for stream.
This error indicates a possible problem with one of the stream's current foundation's baselines.
An unknown action previously occurred, possibly associated with a VOB database issue, in which a baseline was associated with two label types.
SYMPTOM:
A cleartool describe -long baseline:<baseline selector>@\<pvob> will show no label status and two hyperlinks to label types at the end of the output:
baseline "TEST.1234" created 05-Jul-07.15:37:31 by
owner: DOMAIN\jdoe
group: DOMAIN\Domain Users
component: COMP@\projects
label status: <-----NOTE: This baseline has no label
change sets:
promotion level: INITIAL
depends on:
Attributes:
PromotionLevel =
"INITIAL"
Hyperlinks:
BaselineLbtype@463850@\projects -> lbtype:TEST.1234@\ProvOne
BaselineLbtype@464078@\projects -> lbtype:TEST.3245@\ProvOne
UseBaseline@463965@\projects <- stream:mystream@\projects
Resolving The Problem
- Check to make sure that both of these lbtypes above exist.
From a command prompt, cd into a UCM view and into the component that this baseline is associated with. Run cleartool lstype -kind lbtype -invob <vobtag>
From Type Explorer GUI verify that both lbtypes exist: - Click Start > Programs > Rational Software > Rational ClearCase > Type Explorer.
- Click the VOB where the label type resides from the Select VOB applet.
- Click OK.
- Double click the label type folder.
- Ensure that both label types are present
- If only one of the lbtypes are present, proceed to step 4.
- If both lbtypes are present, then the lbtype whose name matches the baseline will be the correct one.
- Remove the base BaselineLbtype hyperlink via the command prompt.
Using our example above, the command is:
cleartool rmhlink BaselineLbtype@464078
The resulting describe of the baseline will show something like the following:
baseline "TEST.1234" created 05-Jul-07.15:37:31 by
owner: DOMAIN\jdoe
group: DOMAIN\Domain Users
component: COMP@\projects
label status: <-----NOTE: This baseline still has no label
change sets:
promotion level: INITIAL
depends on:
Attributes:
PromotionLevel =
"INITIAL"
Hyperlinks:
BaselineLbtype@463850@\projects -> lbtype:TEST.1234@\ProvOne
UseBaseline@463965@\projects <- stream:mystream@\projects
- Promote the baseline to either a full or incremental label from a command prompt. In the example here, we will promote the baseline to full:
cleartool chbl -full baseline:TEST.1234@\projects
- A final describe of the baseline shows that it is now labelled properly and can be used in the environment:
baseline "TEST.1234" created 05-Jul-07.15:37:31 by
owner: DOMAIN\jdoe
group: DOMAIN\Domain Users
component: COMP@\projects
label status: full
change sets:
promotion level: INITIAL
depends on:
Attributes:
PromotionLevel =
"INITIAL"
Hyperlinks:
BaselineLbtype@463850@\projects -> lbtype:TEST.1234@\ProvOne
UseBaseline@463965@\projects <- stream:mystream@\projects
Related Information
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21266367