Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-885

Gracefully handle unknown setting types in ServerSettings service

    XMLWordPrintable

Details

    Description

      <p>Server side exception when loading unknown setting type:</p>

      <p>&nbsp;</p>

      <p>[2021-12-31 21:06:22,359] [225175 ] [42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ] [ERROR] - Warn.: SOAPHandler: Error invoking UPnP action 'Load'<br>
      [2021-12-31 21:06:22,360] [225176 ] [42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ] [DEBUG] - Exception: System.NullReferenceException: Object reference not set to an instance of an object.<br>
      &nbsp;&nbsp; at MediaPortal.Common.Services.Settings.SettingsManager.GetGlobalFilePath(Type settingsType)<br>
      &nbsp;&nbsp; at MediaPortal.Common.Services.Settings.SettingsManager.LoadSettingsObject(Type settingsType, Boolean useGlobaleScope, Boolean useUserScope)<br>
      &nbsp;&nbsp; at MediaPortal.Common.Services.Settings.SettingsManager.Load(Type settingsType)<br>
      &nbsp;&nbsp; at MediaPortal.Plugins.ServerSettings.ServerSettingsImpl.Load(String settingsTypeName)<br>
      &nbsp;&nbsp; at MediaPortal.Plugins.ServerSettings.ServerSettingsImpl.OnLoad(DvAction action, IList`1 inParams, IList`1&amp; outParams, CallContext context)<br>
      &nbsp;&nbsp; at UPnP.Infrastructure.Dv.DeviceTree.DvAction.FireActionInvoked(IList`1 inParams, IList`1&amp; outParams, CallContext context)<br>
      &nbsp;&nbsp; at UPnP.Infrastructure.Dv.DeviceTree.DvAction.InvokeAction(IList`1 inParameters, IList`1&amp; outParameters, Boolean checkSignature, CallContext context)<br>
      &nbsp;&nbsp; at UPnP.Infrastructure.Dv.SOAP.SOAPHandler.HandleRequest(DvService service, Stream messageStream, Encoding streamEncoding, Boolean subscriberSupportsUPnP11, CallContext context, String&amp; result)</p>

      <p>&nbsp;</p>

      <p>Caused by client side call:</p>

      <p>[2021-12-31 21:06:22,364] [16032&nbsp; ] [InputMgr ] [ERROR] - Error loading configuration class 'MediaPortal.Extensions.TranscodingService.Client.Settings.Configuration.HardwareAccelerationSetting'<br>
      UPnP.Infrastructure.CP.UPnPException: Error invoking action 'Load' ---&gt; UPnP.Infrastructure.CP.UPnPRemoteException: Action Failed<br>
      &nbsp;&nbsp; at UPnP.Infrastructure.CP.DeviceTree.CpAction.AsyncActionCallResult.GetOutParams()<br>
      &nbsp;&nbsp; at UPnP.Infrastructure.CP.DeviceTree.CpAction.EndInvokeAction(IAsyncResult result)<br>
      &nbsp;&nbsp; --- End of inner exception stack trace ---<br>
      &nbsp;&nbsp; at UPnP.Infrastructure.CP.DeviceTree.CpAction.EndInvokeAction(IAsyncResult result)<br>
      &nbsp;&nbsp; at MediaPortal.Plugins.ServerSettings.UPnP.ServerSettingsProxy.Load(String settingsTypeName)<br>
      &nbsp;&nbsp; at MediaPortal.Plugins.ServerSettings.UPnP.ServerSettingsProxy.Load[SettingsType]()<br>
      &nbsp;&nbsp; at MediaPortal.Extensions.TranscodingService.Client.Settings.Configuration.HardwareAccelerationSetting.Load()<br>
      &nbsp;&nbsp; at MediaPortal.Configuration.ConfigurationManagement.ConfigurationNode.Instantiate(ConfigBaseMetadata metadata, PluginRuntime pluginRuntime)</p>

      <p>&nbsp;</p>

      <p>Also check for existance of Transcoding settings on Server</p>

      Attachments

        Activity

          People

            morpheus_xx morpheus_xx
            morpheus_xx morpheus_xx
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: