Zum Hauptinhalt gehen

Cached Mapservice error when trying to add to Site

Kommentare

2 Kommentare

  • Permanently deleted user

    Hi Jason,

    I'm assuming you're trying to use the cached base map found here:

    (http://www.lambtongis.ca/ArcGIS/rest/services/Basemap_WM_2011/MapServer) http://www.lambtongis.ca/ArcGIS/rest/services/Basemap_WM_2011/MapServer

    If you scroll through those many layers, you will see a gap in the Layer IDs right near the end - State boundaries has ID 393 and Waterbodies has ID 395.  This will cause a null pointer exception ("Object reference not set to an instance of an object") because Essentials will try to visit each layer to get the layer information after you add the layer to a site.  When it gets to Layer ID 394, or even 393, the server responds with an error message, which will return an empty result instead of layer info.

    (See: (http://www.lambtongis.ca/ArcGIS/rest/services/Basemap_WM_2011/MapServer/393) http://www.lambtongis.ca/ArcGIS/rest/services/Basemap_WM_2011/MapServer/393 )

    You may be able to manually add the service by editing the Site.xml, or you could try to resolve the data problems with your MXD.

    You may also want to republish the MXD with a much simplified version, particuarly if you do not want to query those 400-odd layers in your service.  ArcGIS Server will be just as happy with a single-layer service if the cached tiles are already built.

    Regards,

    -Malcolm

    0
  • Jason Hannigan

    Awesome,

     

     

    Thanks Malcolm!  That would not be something I would NOT have found myself.  When we go about recreating the cache we'll definitely be looking to simplify the layers.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.