0
Fixed

Service fails to start due to Null reference exception.

Tony Sheehy 12 years ago updated by anonymous 9 years ago 4

The following is being logged with a clean installation using the most recent installer in prdgrp-test1.

Service cannot be started. System.NullReferenceException: Object reference not set to an instance of an object.
   at Unify.Framework.Data.DataEngine..ctor(IConfigurationEngine configurationEngine, IStandardPostEngine postEngine)
   at Unify.Framework.Data.DataEnginePlugInFactory`1.CreateComponent(IUnifyEnginePlugInFactoryInformation`1 factoryInformation)
   at Unify.Framework.DependencyPlugInGenerator`4..ctor(ICollection`1 plugInGenerator, IPlugInFactory`2 factoryInformationFactory)
   at Unify.Framework.UnifyEngine`1..ctor(TBranding branding, IEnumerable`1 additionalPlugInFactories, DirectoryInfo executingAssemblyLocation, IsolatedStorageFile isolatedStorageLocation)
   at Unify.Service.IdentityBrokerServiceEngine..ctor(DirectoryInfo assemblyExcutionPath, IsolatedStorageFile isolatedFile, IIdentityBrokerBranding branding)
   at Unify.Service.IdentityBrokerService.OnStart(String[] args)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

Tony, as discussed:
Please trap errors on each line that could create the exception, to allow you to know what is null.

  • If it is the configuration coming back null, then look at the changes that you made with it.
  • If it's a resource that's null, then put the old AppDomainLoader back in and let me know how it goes.

Thanks.

From yesterday i've managed to determine that it's an issue with the dataengine, but not the internal logic of the constructor, which leads me to believe that it's the static members.

The assembly Unify.Framework.Data.UI was not embedded in Unify.Service.Connect; I've improved the exception handling for the AppDomainLoader to make it more clear which assemblies are failing, and in what context.

I've been able to successfully install following these changes; reassigned for confirmation of completion.

Confirmed. Closed.