[mapguide-trac] #1879: Maestro API - Fail to Create RuntimeMap

MapGuide Open Source trac_mapguide at osgeo.org
Mon Dec 5 07:32:43 EST 2011


#1879: Maestro API - Fail to Create RuntimeMap
----------------------------+-----------------------------------------------
   Reporter:  crispinatime  |       Owner:  jng        
       Type:  defect        |      Status:  new        
   Priority:  medium        |   Milestone:  Maestro-4.0
  Component:  Maestro       |     Version:             
   Severity:  major         |    Keywords:  Maestro API
External_id:                |  
----------------------------+-----------------------------------------------
 A change in the Maestro API sometime in the last few weeks now results in
 an exception being thrown when creating a runtime map.

 I rolled back some Maestro API DLLs that I had built and my app runs again
 - hopefully there is enough in the stack trace to see what the issue is.

 It looks to be layer-dependent as on my test data in the office it does
 not occur, only on a complex site with many data connection types (SHP,
 SDF, ODBC) including joins and base layers.

 The build that caused the err below was from Friday 3 December.


 Exception Details: System.NullReferenceException: Object reference not set
 to an instance of an object.

 Source Error:


 Line 248:
 Line 249:               RuntimeMap rtMap = mpSvc.CreateMap(md);
 Line 250:


 Source File: e:\Projects\-blah-\mapFrame.aspx.cs    Line: 249

 Stack Trace:


 [NullReferenceException: Object reference not set to an instance of an
 object.]
 OSGeo.MapGuide.MaestroAPI.Mapping.RuntimeMapLayer.InitIdentityProperties(IVectorLayerDefinition
 vl) +110
    OSGeo.MapGuide.MaestroAPI.Mapping.RuntimeMapLayer..ctor(RuntimeMap
 parent, ILayerDefinition ldf) +169
    OSGeo.MapGuide.MaestroAPI.Mapping.RuntimeMapLayer..ctor(RuntimeMap
 parent, IBaseMapLayer source, ILayerDefinition ldf) +60
    OSGeo.MapGuide.MaestroAPI.Mapping.RuntimeMap..ctor(IMapDefinition mdf,
 Double metersPerUnit) +570
    OSGeo.MapGuide.MaestroAPI.PlatformConnectionBase.CreateMap(String
 runtimeMapResourceId, IMapDefinition mdf, Double metersPerUnit) +38
    OSGeo.MapGuide.MaestroAPI.PlatformConnectionBase.CreateMap(String
 runtimeMapResourceId, IMapDefinition mdf) +63
 OSGeo.MapGuide.MaestroAPI.PlatformConnectionBase.CreateMap(IMapDefinition
 mdf) +95
 OSGeo.MapGuide.MaestroAPI.HttpServerConnection.OSGeo.MapGuide.MaestroAPI.Services.IMappingService.CreateMap(IMapDefinition
 ) +5
    _Default.Page_Load(Object sender, EventArgs e) in
 e:\Projects\-blah-\mapFrame.aspx.cs:249
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
 Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
 EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean
 includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

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


More information about the mapguide-trac mailing list