我有一个代码,用于使用 queryPlatformAction 方法从玉中的 ams 中查找容器列表。在将 sop 语句放在末尾时,我遇到了类型转换容器 ID 的问题。
Result result = (Result) content;
List listOfPlatforms = (List) result.getValue();
Iterator iter = listOfPlatforms.iterator();
while (iter.hasNext())
{
ContainerID next = (ContainerID) iter.next();
System.out.println(next.getID());
}
它向我抛出了一个例外。
例外是:java.lang.ClassCastException:jade.util.leap.ArrayList 不能强制转换为 java.util.List 请帮忙。