It's all about the answers!

Ask a question

[closed] com.ibm.team.scm.common.ComponentNotInWorkspaceException:Unable to obtain all component


Yang Xu (134) | asked Mar 24 '22, 3:28 a.m.
closed Mar 24 '22, 3:54 a.m. by Ralph Schoon (63.5k33646)

 当我想使用客户端 API 创建基线并交付时,使用 IWorkspaceConnection.createBaseline()时提示:

com.ibm.team.scm.common.ComponentNotInWorkspaceException:无法获取所有组件

IWorkspaceConnection 连接 = wm.getWorkspaceConnection(workspaceHandle, monitor);
System.out.println("创建基线...");
IBaselineConnection 基线 = connection.createBaseline(cHandle, "TETS", "TETS", monitor);
System.out.println("比较基线...");
IChangeHistorySyncReport baselineSync = connection.compareTo(
联系,
WorkspaceComparisonFlags.INCLUDE_BASELINE_INFO,
Collections.EMPTY_LIST,监视器);

// 交付基线
System.out.println("交付基线...");
connection.deliver(连接,baselineSync,
baselineSync.outgoingBaselines(cHandle),
baselineSync.outgoingChangeSets(cHandle),监视器);
System.out.println("提取成功...");
不知道为什么,谁有相关经验,期待回复,谢谢!


Comments
Yang Xu commented Mar 24 '22, 3:52 a.m.

 

com.ibm.team.scm.common.ComponentNotInWorkspaceException:Unable to obtain all component locks

The question has been closed for the following reason: "Other" by rschoon Mar 24 '22, 3:54 a.m.

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Mar 24 '22, 3:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 I will close this question, as it does not seem to be a question. The primary language in this forum is English. The exception mentioned above surfaced at least in this question and was correctly answered: https://jazz.net/forum/questions/279404/comibmteamscmcommoncomponentnotinworkspaceexception