R9 => R10 migration (unit tests)
After some initial nuget hell. I succeed in recompiling my plugin with R10. However my unit tests are failing (test setup) - it looked like I needed to switch from .Net4 to .Net4.5. Which I did (xunit is on 4.5) But now when I run the unit tests I get the following error. Which is not something I've seen before SetUp : JetBrains.TestFramework.Utils.TestLoggerListener+TestWrapperException : Arithmetic operation resulted in an overflow. --- EXCEPTION #1/2 [OverflowException] Message = “Arithmetic operation resulted in an overflow.” ExceptionPath = Root.InnerException ClassName = System.OverflowException HResult = COR_E_OVERFLOW=80131516 Source = JetBrains.Platform.Shell StackTraceString = “ at JetBrains.Application.License2.NewLicenses.UserLicenseService.GetRevocedCertificateSerialNumbers(Byte[] crlBytes) at JetBrains.Application.License2.NewLicenses.UserLicenseService.LoadCRL() ” --- Outer --- --- EXCEPTION #2/2 [LoggerException] Message = “Arithmetic operation resulted in an overflow.” ExceptionPath = Root ClassName = JetBrains.Util.LoggerException InnerException = “Exception #1 at Root.InnerException” HResult = COR_E_APPLICATION=80131600 StackTraceString = “ at JetBrains.Util.Logging.Logger.LogException(Exception ex) at JetBrains.Application.License2.NewLicenses.UserLicenseService.LoadCRL() at JetBrains.Application.License2.NewLicenses.UserLicenseService.get_RevocedCertificateSerialNumbers() at JetBrains.Application.License2.NewLicenses.UserLicenseService.<>c__DisplayClass2.
b__1() at JetBrains.Util.Logging.Logger.CatchIgnore[TValue](Func`1 F) at JetBrains.Application.License2.UserLicenses.UserLicenseViewSubmodel.<>c__DisplayClass55.b__54() at JetBrains.Util.ILoggerEx.CatchSilent(ILogger thіs, Action action) at JetBrains.Application.License2.LicenseCheckResult`1.BulkChanges(Action action) at JetBrains.Application.License2.UserLicenses.UserLicenseViewSubmodel.AddLicense(UserLicense userLicense, Boolean doCheckSynchronousely) at JetBrains.Application.License2.UserLicenses.UserLicenseViewSubmodel..ctor(Lifetime lifetime, LicenseViewModel allModel, ILicenseData data, ITaskHost taskHost, ILogger logger, JetBrainsLicenseServerAccess licenseServerAccess, UserNotifications userNotifications, License2CheckComponent license2CheckComponent, NewLicenseDataCache newLicenseDataCache) at JetBrains.Application.License2.LicenseViewModelBuilder.<>c__DisplayClassa.b__7(Lifetime lt, LicenseViewModel model, ILicenseData data) at JetBrains.Application.License2.LicenseViewModel..ctor(Lifetime parentLifetime, ILogger logger, String name, ILicenseData data, IList`1 entities, IList`1 submodelBuilders) at JetBrains.Application.License2.LicenseViewModelBuilder.CreateModel(Lifetime modelLifetime, String name, ILicenseData data, License2CheckComponent license2CheckComponent) at JetBrains.Application.License2.License2CheckComponent..ctor(Lifetime lifetime, ILogger logger, LicenseViewModelBuilder viewModelBuilder, LicenseDataPersister persister, IEnumerable`1 licensedEntities, IThreading threading, JetEnvironment environment, AnyProductSettingsLocation settingsLocation) at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context) at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container) at JetBrains.Application.Components.SingletonDescriptor.GetValue() at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context) at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container) at JetBrains.Application.Components.SingletonDescriptor.GetValue() at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context) at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container) at JetBrains.Application.Components.SingletonDescriptor.GetValue() at JetBrains.Application.Components.EnumerableValueResolver.EnumerableComponentDescriptor`1.d__0.MoveNext() at JetBrains.Application.Components.EnumerableValueResolver.EnumerableComponentDescriptor`1.GetValue() at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context) at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container) at JetBrains.Application.Components.SingletonDescriptor.GetValue() at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context) at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container) at JetBrains.Application.Components.SingletonDescriptor.GetValue() at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context) at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context) at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container) at JetBrains.Application.Components.SingletonDescriptor.GetValue() at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, IComponentDescriptor dsc) at JetBrains.Application.Components.ComponentStorage.InstantiateDescriptors(IEnumerable`1 descriptors) at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors) at JetBrains.Application.Components.ComponentStorage.Compose() at JetBrains.Application.Environment.JetEnvironment..ctor(Lifetime lifetime, JetHostParametersCaller host) at JetBrains.Application.Environment.JetEnvironment.<>c__DisplayClasse.b__b() at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) at JetBrains.Application.Environment.JetEnvironment.InternalCreate(LifetimeDefinition lifetimeDefinition, JetHostParametersCaller host, JetEnvironment& environment) at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing) at JetBrains.Application.Environment.JetEnvironment.CreateDontRun(Lifetime lifetime, JetHostParameters hostparams) at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger) at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext) at JetBrains.Util.Logging.Logger.Catch(Action action) at JetBrains.TestFramework.TestEnvironmentAssembly`1.SetUp() at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at NUnit.Core.Reflect.InvokeMethod(MethodInfo method, Object fixture, Object[] args) at NUnit.Core.TestSuite.DoOneTimeSetUp(TestResult suiteResult) at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter) at NUnit.Core.SetUpFixture.Run(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter) at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter) at NUnit.Core.TestSuiteThread.RunTest() at NUnit.Core.TestThread.RunTestProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() ” at JetBrains.Util.Tests.ThrowsAccumulatedLoggerExceptions.ThrowLoggedExceptions() at JetBrains.TestFramework.TestEnvironmentAssembly`1.SetUp()Please sign in to leave a comment.
It looks like the license check fails in 64 bit - make sure your test project is set to 32 bit.
Thanks ! (again)