Error after upgrading project from 5.3.2 to 5.4.0

2
We upgraded our project from 5.3.2 to 5.4.0 and when we try to run it (locally), we receive the following error: An error occurred while running the project. Error message: Exception has been thrown by the target of an invocation STACKTRACE: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary`2.FindEntry(TKey key) at Mendix.Modeler.Integration.AppServices.MsdBuilder.AddEntity(Entity entity, IList`1 dataMembers, Dictionary`2 entities, List`1 associations) in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\AppServices\MendixServiceDefinition\MsdBuilder.cs:line 106 at Mendix.Modeler.Integration.AppServices.MsdBuilder.BuildDomainModel(VersionedService versionedService) in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\AppServices\MendixServiceDefinition\MsdBuilder.cs:line 68 at Mendix.Modeler.Integration.WebServices.VersionedService.get_DomainModelJsonString() in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\WebServices\Publish\VersionedService.cs:line 185 --- End of inner exception stack trace --- 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 System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonObject(BsonWriter writer, IStorageUnit enclosingUnit, IStorageObject obj) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 36 at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonValue(BsonWriter writer, IStorageUnit enclosingUnit, CachedProperty prop, Object value) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 90 at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonObject(BsonWriter writer, IStorageUnit enclosingUnit, IStorageObject obj) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 47 at Mendix.Modeler.Storage.Operations.Deployer.WriteUnitsContents(FileStream fileStream, HashSet`1 units, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\Deployer.cs:line 75 at Mendix.Modeler.Storage.Operations.Deployer.Deploy(IStorageUnit unit, String targetFilePath, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\Deployer.cs:line 27 at Mendix.Modeler.Storage.StorageUtil.Deploy(IStorageUnit unit, String targetFilePath, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\StorageUtil.cs:line 17 at Mendix.Modeler.Deployment.DeploymentProcessBuilder.ExportModel(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\DeploymentProcessBuilder.cs:line 88 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>c__DisplayClass2.<>c__DisplayClass4.<AddStep>b__1() in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.CatchDiskException(Action action) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 28 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>c__DisplayClass2.<AddStep>b__0(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.Utility.Progress.Step.Run(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\Step.cs:line 22 at Mendix.Modeler.Utility.Progress.ProcessRunner.RunStep(Step step) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\ProcessRunner.cs:line 85 at Mendix.Modeler.Utility.Progress.ProcessRunner.worker_DoWork(Object sender, DoWorkEventArgs e) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\ProcessRunner.cs:line 67 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) Anyone else encountered the same issue?
asked
2 answers
0

Thanks Bas for your call. Your workaround worked.

Happily making use of the Hot-deployment function!

Thanks!

answered
0

I'm having a similar message after creating a branch line in a Mx 5.4.1 project:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at Mendix.Modeler.Integration.AppServices.MsdBuilder.AddEntity(Entity entity, IList1 dataMembers, Dictionary2 entities, List1 associations) in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\AppServices\MendixServiceDefinition\MsdBuilder.cs:line 106 at Mendix.Modeler.Integration.AppServices.MsdBuilder.BuildDomainModel(VersionedService versionedService) in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\AppServices\MendixServiceDefinition\MsdBuilder.cs:line 68 at Mendix.Modeler.Integration.WebServices.VersionedService.getDomainModelJsonString() in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\WebServices\Publish\VersionedService.cs:line 185 --- End of inner exception stack trace --- 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 System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonObject(BsonWriter writer, IStorageUnit enclosingUnit, IStorageObject obj) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 36 at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonValue(BsonWriter writer, IStorageUnit enclosingUnit, CachedProperty prop, Object value) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 90 at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonObject(BsonWriter writer, IStorageUnit enclosingUnit, IStorageObject obj) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 47 at Mendix.Modeler.Storage.Operations.Deployer.WriteUnitsContents(FileStream fileStream, HashSet`1 units, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\Deployer.cs:line 75 at Mendix.Modeler.Storage.Operations.Deployer.Deploy(IStorageUnit unit, String targetFilePath, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\Deployer.cs:line 27 at Mendix.Modeler.Storage.StorageUtil.Deploy(IStorageUnit unit, String targetFilePath, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\StorageUtil.cs:line 17 at Mendix.Modeler.Deployment.DeploymentProcessBuilder.ExportModel(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\DeploymentProcessBuilder.cs:line 88 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>cDisplayClass2.<>cDisplayClass4.<addstep>b1() in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.CatchDiskException(Action action) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 28 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>cDisplayClass2.<addstep>b0(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.Utility.Progress.Step.Run(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\Step.cs:line 22 at Mendix.Modeler.Utility.Progress.ProcessRunner.RunStep(Step step) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\ProcessRunner.cs:line 85 at Mendix.Modeler.Utility.Progress.ProcessRunner.workerDoWork(Object sender, DoWorkEventArgs e) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\ProcessRunner.cs:line 67 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

answered