Java 在Teamcenter中使用TCComponentBOMLIne进行操作

Java 在Teamcenter中使用TCComponentBOMLIne进行操作,java,soa,Java,Soa,我正在通过API与Teamcenter合作。 如何从结构中正确删除子行? 这是我的密码: TCComponentBOMLine bl= bomWin.setWindowTopLine(***); //ROOT BOMLine AIFComponentContext[] cntx=bl.getChildren(); for (AIFComponentContext cnt:cntx) { TCComponentBOMLine child=(TCComponentBOMLine)cnt.g

我正在通过API与Teamcenter合作。 如何从结构中正确删除子行?

这是我的密码:

TCComponentBOMLine bl= bomWin.setWindowTopLine(***); //ROOT BOMLine

AIFComponentContext[] cntx=bl.getChildren();
for (AIFComponentContext cnt:cntx) {
    TCComponentBOMLine child=(TCComponentBOMLine)cnt.getComponent();
    bl.remove("bl_all_child_lines", child);
    bl.save();
}
bl.save();
bl.refresh();
bomWin.save();
bomWin.refresh();
之后,我将为结构添加新的子行

在富客户端中,一切都很好,但在控制台中,我看到一个ICCTException

com.teamcenter.soaictstubs.ICCTException: - Wrong sign
    at com.teamcenter.soaictstubs.ICCT.getProperty(Unknown Source)
怎么了