1 Reply Latest reply on Mar 31, 2014 2:57 PM by mattd

    Server Electric Trace Showing Error: Object reference not set to an instance of an object

    Kevin Fox


      While trying to run a electric trace on ArcFM Server 10.2.1 the errors below. We are running with a 10.0 database and desktop. This is on a new 10.2.1 server.

      URL Using

      http://kubgis102demo.kub.org/arcgis/rest/services/MaximoSpatial/MS_ElecSystem/MapServer/exts/ArcFMMapServer/Electric%20T…

       

      {"error": { "code": 500, "message": "Object reference not set to an instance of an object." }}

       

      Server's Miner Event Viewer Logs Shows

      [DEFAULT LOG] 2014-03-31 16:09:32,799 [1] ERROR [(null)] - "Cannot get MMFeederExt object" File: "NetworkContext.cpp" Line: 830

       

      [DEFAULT LOG] 2014-03-31 16:09:32,800 [1] ERROR [(null)] - "CNetworkContext::SetNetwork failed" HRESULT: -2147467261 File: "MMFeederTracer.cpp" Line: 8692

      [DEFAULT LOG] 2014-03-31 16:09:32,800 [1] ERROR Miner.Framework.Trace.BaseElectricTraceStrategy [(null)] - BaseTraceStrategy::Find System.NullReferenceException: Object reference not set to an instance of an object. at Miner.Interop.MMFeederTracerClass.TraceDownstream(IGeometricNetwork GeometricNetwork, IMMNetworkAnalysisExtForFramework networkAnalysisExt, IMMElectricTraceSettingsEx settings, Int32 startEID, esriElementType startElementType, mmPhasesToTrace phasesToTrace, IEnumNetEID& Junctions, IEnumNetEID& Edges) at Miner.Framework.Trace.Strategies.ElectricDownstreamTrace.DoTrace() at Miner.Framework.Trace.BaseElectricTraceStrategy.Find(IMMSearchConfiguration searchConfig, IMMSearchControl searchControl)

       

       

      [DEFAULT LOG] 2014-03-31 16:09:32,801 [1] ERROR Miner.Server.Tracing.TraceHandler [(null)] - Failed to execute trace System.NullReferenceException: Object reference not set to an instance of an object. at Miner.Framework.Tracing.ElectricDownstreamTrace.DoTrace(IPoint startPoint, IFeature startFeature) at Miner.Server.Tracing.ElectricTraceHandler.<>c__DisplayClass7.<DownstreamTrace>b__6(IPoint point, IFeature feature) at Miner.Server.Tracing.TraceHandler.PerformTrace(IPoint startPoint, IFeature startFeature, TraceOptions traceOptions, IServerObject server, Func`3 traceMethod)

        • Re: Server Electric Trace Showing Error: Object reference not set to an instance of an object

          Hi Kevin,

          We are running with a 10.0 database and desktop.

          While mixed ArcFM versions is technically not supported (10.0 Desktop and 10.2 Server), since you're not editing, this should probably work.

           

          I'm guessing that you're pointing your 10.2 ArcFM Server at your 10.0.x License Manager?  If so, that's likely the problem.  10.1.1 and higher (so, 10.2 and 10.2.1 at the time of writing) require new updated license xml files, and if you're pointing ArcFM Server 10.2 at an old license manager, that won't work.  You'll need to split off your ArcFM Server license and load that up in an updated license manager.

           

          Good luck,

          Matt Denton