laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: August 25, 2014 ArcGIS Server (.NET)
Bug-ID-Nummer NIM089595
EingereichtMarch 7, 2013
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Server (.NET)
Gefunden in Version10.0.4
ProgrammspracheJava
StatusNon-Reproducible

Zusätzliche Informationen

No Public Explanation

Workaround

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()); }

Schritte zur Reproduzierung

Bug-ID: NIM089595

Software:

  • ArcGIS Server (.NET)

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln