vasmel

NullReferenceException is thrown sometimes by one or several rest map services

Discussion created by vasmel on Jun 16, 2010
Latest reply on Jun 23, 2010 by vasmel
Hello,

I have developed Silverlight application which uses 4 rest map services.
When application starts to intialize these four layers (ArcGISDynamicMapServiceLayer), sometimes one or two of them are failed to initialize.
However after next initialization - everything is fine.
This always happens after IIS (which hosts ArcGIS Rest) and ArcGIS Server Object Manager services are restarted. Also after map services were idle for long period of time.

Response for failed layer:
{"error":{"code":500,"message":"Server Error - Object reference not set to an instance of an object.","details":[]}}


Rest log:
Log Entry : 16.06.2010 14:46:01
  INFO:Handling REST request
  http://server/ArcGIS/rest/services/Sattelite/MapServer?f=json
-------------------------------

Log Entry : 16.06.2010 14:46:01
  INFO:Handling REST request
  http://server/ArcGIS/rest/services/AC/Address/MapServer?f=json
-------------------------------

Log Entry : 16.06.2010 14:46:01
  INFO:Handling REST request
  http://server/ArcGIS/rest/services/BaseMap/MapServer?f=json
-------------------------------

Log Entry : 16.06.2010 14:46:01
  INFO:Handling REST request
  http://server/ArcGIS/rest/services/SLCC/CAD/MapServer?f=json
-------------------------------

Log Entry : 16.06.2010 14:46:01
  ERROR:Object reference not set to an instance of an object. ::    at ESRI.ArcGIS.REST.RequestHandler.ProcessRequest()
   at ESRI.ArcGIS.REST.RestHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
  http://server/ArcGIS/rest/services/AC/Address/MapServer?f=json
-------------------------------

I use:
ArcGIS Server 9.3.1 (SP1), security is not enabled for services.

Is there any solution for this problem?

Thanks,
Vasyl Melnychuk

Outcomes