laptop and a wrench

漏洞

ArcGIS Server 10.0 SP4 SDK MapServer.clearLayers() somehow clears everything in the context so that if method is called like mapServer.refreshServerObjects the following exception is returned. "AutomationException: A request to obtain a free servercontext has failed because the wait timeout interval has lapsed." It only happens when you clear the layers from the default map. There is no delay. It immediately puts out the error. Clearing the layers shouldn't force an automation exception with refresh server objects because the layers are associated to the default map. There could be other maps associated with that map server. If you individually delete each layer from the map it works great. Its the clearLayers that is doing something to the underlying context.

上次发布: August 25, 2014 ArcGIS Server (.NET)
漏洞 ID 编号 NIM089595
已提交March 7, 2013
上次修改时间June 5, 2024
适用范围ArcGIS Server (.NET)
找到的版本10.0.4
编程语言Java
状态Non-Reproducible

附加信息

No Public Explanation

解决办法

Replace // map.clearLayers();with Stack<ILayer> iLayers = new Stack<ILayer>(); for (int i = 0; i < map.getLayerCount(); ++i) { iLayers.push(map.getLayer(i)); } while (!iLayers.empty()) { map.deleteLayer(iLayers.pop()); }

重现步骤

漏洞 ID: NIM089595

软件:

  • ArcGIS Server (.NET)

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项