[mapguide-trac] #1361: Error after executing SetResource() several times

MapGuide Open Source trac_mapguide at osgeo.org
Mon May 17 04:06:48 EDT 2010


#1361: Error after executing SetResource() several times
--------------------------------+-------------------------------------------
   Reporter:  andymorf          |       Owner:       
       Type:  defect            |      Status:  new  
   Priority:  high              |   Milestone:       
  Component:  Resource Service  |     Version:  2.1.0
   Severity:  major             |    Keywords:       
External_id:                    |  
--------------------------------+-------------------------------------------
 While saving all layers of a map to the session repository, the following
 sequence fails after saving the first few layers:

 while () { // all map layers
 ...
 resourceService.SetResource(ResId, layerContent, null);
 layer.SetLayerDefinition(newLayerResId, resourceService); // throws
 exception
 ...
 }

 The command after executing SetResource() (in this case
 'SetLayerDefinition' but also tested with 'GetResourceContent') raises an
 exception after some cycles. It seems as if writing to the repository is
 not synced correctly.
 Restarting mgserver is necessary after this error.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1361>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list