2

非常感谢 Andreas 帮助我之前的 NSB 3.2 问题 (http://stackoverflow.com/questions/10904857/nservicebus-endpoints-looking-for-ravenb-for-timeouts-after-upgrading-3-0-3 )。实施该更改后,我现在在每个服务启动期间都有一个致命异常。

每个服务(在实现 IWantCustomInitialisation 的类中)配置如下;

        Configure.With()
            .DBSubcriptionStorage()
            .Sagas()
            .NHibernateSagaPersister()
            .NHibernateUnitOfWork()
            .DisableSecondLevelRetries()                      
            .DisableTimeoutManager();

这是在启动期间的日志中:

2012-06-08 21:49:46,946 [4] INFO  NServiceBus.Host - Going to activate profile: NServiceBus.PerformanceCounters, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c
2012-06-08 21:49:46,947 [4] INFO  NServiceBus.Host - Going to activate profile: NServiceBus.Production, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c
2012-06-08 21:49:46,947 [4] INFO  NServiceBus.Host - Going to activate profile: NServiceBus.PerformanceCounters, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c
2012-06-08 21:49:46,962 [4] DEBUG NServiceBus.Host - Activating profile handler: NServiceBus.Hosting.Windows.Profiles.Handlers.PerformanceCountersProfileHandler, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c
2012-06-08 21:49:46,963 [4] DEBUG NServiceBus.Host - Activating profile handler: NServiceBus.Hosting.Windows.Profiles.Handlers.ProductionProfileHandler, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c
2012-06-08 21:49:52,063 [4] FATAL NServiceBus.Hosting.GenericHost - System.NullReferenceException: Object reference not set to an instance of an object.
 at NServiceBus.Timeout.Core.TimeoutRunner.CacheExistingTimeouts()
 at NServiceBus.Timeout.Core.TimeoutRunner.Run()
 at NServiceBus.Unicast.Config.StartupRunners.<Run>b__5(IWantToRunWhenTheBusStarts r)
 at System.Collections.Generic.List`1.ForEach(Action`1 action)
 at NServiceBus.Unicast.Config.StartupRunners.<Run>b__4(Object obj, EventArgs ev)
 at NServiceBus.Unicast.UnicastBus.NServiceBus.IStartableBus.Start(Action startupAction)
 at NServiceBus.Unicast.UnicastBus.NServiceBus.IStartableBus.Start()
 at NServiceBus.Hosting.GenericHost.Start() in d:\BuildAgent-03\work\nsb.master22\src\hosting\NServiceBus.Hosting\GenericHost.cs:line 32
4

0 回答 0