Select to view content in your preferred language

map service delay on open

1630
10
Jump to solution
11-14-2012 06:52 AM
PeterHoffman
Deactivated User
I have an application on a 10.1 server using sdk 4.6 and api 3.0. Sometimes the map does not show upon inital opening of the application. It is not consistent and I cannot repeat this problem at will.
Any ideas? It display fine in rest services url.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Peter,

It sounds like sleeping map services, have a look at this link:

http://forums.arcgis.com/threads/26850-Sleeping-Server-Services-slow-to-start

Regards

Anthony

View solution in original post

0 Kudos
10 Replies
RhettZufelt
MVP Notable Contributor
I've been trying to figure this one out myself.  If I set addarcgisbasemaps="true" I will randomly get the error message that it can't find the topo layer on map load.
But, if I copy/paste the service URL as listed in the error message, it opens the REST page just fine.

Can never get it to repeat, and seems just random.  Solution for me is to not use ESRI basemaps.

If this is one of your services, you may try to delete it, and re-create.  Might even try re-creating with a different service name and see if it makes a difference.

R_
0 Kudos
BjornSvensson
Esri Regular Contributor
If anyone happen to have fiddler etc open at the time this happens, please share the problem URL request - and response.
0 Kudos
PeterHoffman
Deactivated User
I have this problem on all of my 10.1 applications including one without basemaps. I have used firefox with firebug and do not get any info that would point to the source of the problem. This happened before and after arcgis 10.1 sp1 install.
I will be putting in a incident report with ESRI.
0 Kudos
RhettZufelt
MVP Notable Contributor
Did not have fiddler running, and can't get it to do it again (ie, the "random" part), but here is the error message that I get:

SecurityError: Error #2048: Security sandbox violation: http://gis01.wch-rcc.com/otb/index.swf cannot load data from http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/?f=json.
 at com.esri.ags.tasks::BaseTask/handleFaultEvent()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()
 at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
 at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at DirectHTTPMessageResponder/securityErrorHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/redirectEvent()


However, I can copy/paste the MapServer URL and it opens.  Or, reload the map, sometimes it errors, usually it opens.

R_
0 Kudos
RhettZufelt
MVP Notable Contributor
Got this one also trying to search, but, I copy/paste the link into a browser, or reload and it opens:

SecurityError: Error #2048: Security sandbox violation: http://gis01.wch-rcc.com/final3/index.swf cannot load data from http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2?f=json.
 at com.esri.ags.tasks::BaseTask/handleFaultEvent()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()
 at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
 at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at DirectHTTPMessageResponder/securityErrorHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/redirectEvent()



attached is the fiddler2 log for all entries from the esri server during this load.

R_
0 Kudos
PeterHoffman
Deactivated User
I am using my own map services.
Here is my error messages in the application:
Aerials 2007 failed to load:Fault code:Channel.Security.Error
Fault info: Security error acessing url
Fault details: Destination:DefaultHTTP
0 Kudos
PeterHoffman
Deactivated User
I am still having problems with this. It does not show my layers at all. Happens intermittently.
Any new ideas?
0 Kudos
AnthonyGiles
Honored Contributor
Peter,

It sounds like sleeping map services, have a look at this link:

http://forums.arcgis.com/threads/26850-Sleeping-Server-Services-slow-to-start

Regards

Anthony
0 Kudos
PeterHoffman
Deactivated User
I thought i had set it to 0 before, maybe when i created a new app pool ?
Thanks.
0 Kudos