Run local error System.NullReferenceException: Object reference not set to an instance of an object

0
Hi, I made some changes to my project and now when running locally it fails to start and shows the following error, see below. This error is also shown when deploying the app for eclipse. Do you have suggestions? System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Mendix.Modeler.WebUI.Forms.Exporter.ExportContext.GetExportID(IDocumentObject documentObject, String subcomponentName) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\ExportContext.cs:line 89 at Mendix.Modeler.WebUI.Forms.Actions.ParameterResolutionUtil.WriteParameterResolution(IFlowCall flowCall, FlowSettingsConfig config, JsonWriter writer, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Actions\ParameterResolutionUtil.cs:line 137 at Mendix.Modeler.WebUI.Forms.Actions.ClientAction.WriteProperties(JsonWriter writer, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Actions\ClientAction.cs:line 20 at Mendix.Modeler.WebUI.PluginWidgets.PropertyValues.ActionValue.<>c__DisplayClass7_0.<Write>b__0(IJsObjectWriter paramsWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\PluginWidgets\PropertyValues\ActionValue.cs:line 32 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteProperty(String type, Action`1 paramsWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 47 at Mendix.Modeler.Utility.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Utility\EnumerableUtil.cs:line 151 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteJson(Action`1 contentWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 32 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteJson(Action`1 contentWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 32 at Mendix.Modeler.Utility.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Utility\EnumerableUtil.cs:line 151 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteArray(Action`1 contentWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 39 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.GetWidgetProperties(Action`1 writeProperties) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 124 at Mendix.Modeler.WebUI.PluginWidgets.PluginWidget.WriteWidget(IFormWriter formWriter, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\PluginWidgets\PluginWidget.cs:line 46 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteWidget(IWriteWidget widget, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 80 at Mendix.Modeler.WebUI.Forms.Documents.Snippets.Snippet.WriteContent(IFormWriter formWriter, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Documents\Snippets\Snippet.cs:line 22 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteWidget(IWriteWidget widget, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 80 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteArgument(ExportContext context, String parameterName, IEnumerable`1 widgets) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 59 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteArguments(ExportContext exportContext, IDictionary`2 arguments) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 212 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.Write() in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 153 at Mendix.Modeler.WebUI.Forms.Exporter.FormExporter.<>c__DisplayClass6_0.<ExportForms>b__4(<>f__AnonymousType6`3 x) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormExporter.cs:line 68 at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute() at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId) at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream) at System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings) at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream) at System.Linq.Parallel.SelectManyQueryOperator`3.WrapPartitionedStreamNotIndexed[TLeftKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, QuerySettings settings) at System.Linq.Parallel.SelectManyQueryOperator`3.WrapPartitionedStream[TLeftKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings) at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream) at System.Linq.Parallel.IndexedSelectQueryOperator`2.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings) at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream) at System.Linq.Parallel.ScanQueryOperator`1.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings) at System.Linq.Parallel.ForAllOperator`1.RunSynchronously() at Mendix.Modeler.WebUI.Forms.Exporter.FormExporter.ExportForms(IProject project, Boolean updateRunningProject) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormExporter.cs:line 57 at Mendix.Modeler.WebUI.Deployment.WebUIDeploymentWorker.ExportPages(IProject project, IProgressInfo info, Boolean updateRunningProject) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Deployment\WebUIDeploymentWorker.cs:line 134 at Mendix.Modeler.WebUI.Deployment.WebUIDeploymentWorker.DoWork(DeploymentPhase phase, IProject project, DeploymentSettings settings, IProgressInfo info) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Deployment\WebUIDeploymentWorker.cs:line 77 at Mendix.Modeler.Deployment.DeploymentProcessBuilder.<>c__DisplayClass12_0.<AddBuildStepsForPhase>b__0(IProgressInfo info) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Deployment\DeploymentProcessBuilder.cs:line 123 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.CatchDiskException(Action action) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Deployment\FileIOExceptionHandlingProcess.cs:line 28 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>c__DisplayClass1_0.<AddStep>b__0(IProgressInfo info) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.UIFramework.Progress.ProcessRunner.RunStep(Step step) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 81 at Mendix.Modeler.UIFramework.Progress.ProcessRunner.OnDoWork(Object sender, DoWorkEventArgs e) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 61 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at Mendix.Modeler.WebUI.Forms.Exporter.ExportContext.GetExportID(IDocumentObject documentObject, String subcomponentName) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\ExportContext.cs:line 89 at Mendix.Modeler.WebUI.Forms.Actions.ParameterResolutionUtil.WriteParameterResolution(IFlowCall flowCall, FlowSettingsConfig config, JsonWriter writer, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Actions\ParameterResolutionUtil.cs:line 137 at Mendix.Modeler.WebUI.Forms.Actions.ClientAction.WriteProperties(JsonWriter writer, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Actions\ClientAction.cs:line 20 at Mendix.Modeler.WebUI.PluginWidgets.PropertyValues.ActionValue.<>c__DisplayClass7_0.<Write>b__0(IJsObjectWriter paramsWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\PluginWidgets\PropertyValues\ActionValue.cs:line 32 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteProperty(String type, Action`1 paramsWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 47 at Mendix.Modeler.Utility.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Utility\EnumerableUtil.cs:line 151 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteJson(Action`1 contentWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 32 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteJson(Action`1 contentWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 32 at Mendix.Modeler.Utility.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Utility\EnumerableUtil.cs:line 151 at Mendix.Modeler.WebUI.Export.PluginWidgets.JsAsJsonWriter.WriteArray(Action`1 contentWriter) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI.Export\PluginWidgets\JsAsJsonWriter.cs:line 39 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.GetWidgetProperties(Action`1 writeProperties) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 124 at Mendix.Modeler.WebUI.PluginWidgets.PluginWidget.WriteWidget(IFormWriter formWriter, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\PluginWidgets\PluginWidget.cs:line 46 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteWidget(IWriteWidget widget, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 80 at Mendix.Modeler.WebUI.Forms.Documents.Snippets.Snippet.WriteContent(IFormWriter formWriter, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Documents\Snippets\Snippet.cs:line 22 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteWidget(IWriteWidget widget, IExportContext context) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 80 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteArgument(ExportContext context, String parameterName, IEnumerable`1 widgets) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 59 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.WriteArguments(ExportContext exportContext, IDictionary`2 arguments) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 212 at Mendix.Modeler.WebUI.Forms.Exporter.FormWriter.Write() in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormWriter.cs:line 153 at Mendix.Modeler.WebUI.Forms.Exporter.FormExporter.<>c__DisplayClass6_0.<ExportForms>b__4(<>f__AnonymousType6`3 x) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Exporter\FormExporter.cs:line 68 at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey) at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Threading.Tasks.Task.Execute()<---  
asked
1 answers
0

Did you see this post: https://forum.mendix.com/link/questions/91660 ? Seems like a similair issue.

Regards,

Ronald

 

answered