Error on startup | Galaktikasoft

Error on startup

StatusIDPriorityType
Closed27767CriticalBug
ProfileReply
WullumpieClient

After adding the Xafari modules to an existing application, the program starts with the following (non-fatal) error message:

Object reference not set to an instance of an object.
at Xafari.Editors.Win.XafariLookupEditor.CreateControlCore()
at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.GetControl(ViewItem viewItem, String name, Boolean forceControlCreation)
at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.controlItem_QueryControl(Object sender, QueryControlEventArgs e)
at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseQueryControl()
at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
at DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
at DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
at DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
at DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
at DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
at DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
at DevExpress.XtraLayout.LayoutGroup.Invalidate()
at DevExpress.XtraLayout.BaseLayoutItem.ComplexUpdate(Boolean shouldUpdateViewInfo, Boolean shouldResize, Boolean shouldArrangeTextSize)
at DevExpress.XtraLayout.LayoutItemContainer.EndUpdate()
at DevExpress.XtraLayout.LayoutItemContainer.EndChangeUpdate(Boolean setVisibilityState)
at DevExpress.XtraLayout.LayoutDesignerMethodsProvider.DevExpress.XtraLayout.ILayoutDesignerMethods.EndChangeUpdate()
at DevExpress.XtraLayout.LayoutControlImplementor.ProcessLookAndFeelStyleChanged()
at DevExpress.XtraLayout.LayoutControlImplementor.OnLookAndFeelStyleChanged(Object sender, EventArgs e)
at DevExpress.XtraLayout.LayoutControlImplementor.EndInitCore()
at DevExpress.XtraLayout.LayoutControlImplementor.set_UpdatedCount(Int32 value)
at DevExpress.XtraLayout.LayoutControlImplementor.EndInit()
at DevExpress.XtraLayout.LayoutControl.EndInit()
at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.LayoutControls(IModelNode layoutNode, ViewItemsCollection viewItems)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControllers.ModelEditorLayoutManagerProvider.InitializeLayout(ModelNode node, Boolean readOnly, Boolean isWinLayout)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControllers.ModelEditorLayoutManagerProvider..ctor(ModelNode node, Boolean readOnly, Boolean isWinLayout)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControl.ShowDetailViewLayout(ModelNode node, Boolean readOnly)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControl.ShowLayoutIfNeed(ModelNode node, Boolean readOnly)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorViewController.set_CurrentModelNode(ModelTreeListNode value)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorViewController.ModelEditorControl_SelectedNodesChanged(Object sender, EventArgs e)
at DevExpress.ExpressApp.Win.Core.ModelEditor.HandlerWrapper.SafeExceute(Object obj, EventArgs e)

I can't find anything in the Devexpress log file (level = 3)

Hope to hear from you!

Willem

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Agent

Hello Wullumpie,

Please give us additional information about your Xafari Framework and Xafari modules your project.

Thanks, Sasha.

WullumpieClient

I'm using XAF 16.1.8 with the corresponding Xafari version (Xafari.Framework-16.1.8010.954).
I installed the following modules:
Xafari
Xafari.Editors
Xafari.Editors.Win
Xafari.Utils
Xafari.Win

The same error occurs during design time when i try to modify the layout of a wizard detail view layout:

Object reference not set to an instance of an object.
at Xafari.Editors.Win.XafariLookupEditor.CreateControlCore()
at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.controlItem_QueryControl(Object sender, QueryControlEventArgs e)
at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseQueryControl()
at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
at DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
at DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
at DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
at DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
at DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
at DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
at DevExpress.XtraLayout.BaseLayoutItem.set_ShouldUpdateConstraintsDoUpdate(Boolean value)
at DevExpress.XtraLayout.LayoutControlItem.set_Control(Control value)
at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
at DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
at DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
at DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
at DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
at DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
at DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
at DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
at DevExpress.XtraLayout.LayoutGroup.Invalidate()
at DevExpress.XtraLayout.BaseLayoutItem.ComplexUpdate(Boolean shouldUpdateViewInfo, Boolean shouldResize, Boolean shouldArrangeTextSize)
at DevExpress.XtraLayout.LayoutItemContainer.EndUpdate()
at DevExpress.XtraLayout.LayoutItemContainer.EndChangeUpdate(Boolean setVisibilityState)
at DevExpress.XtraLayout.LayoutDesignerMethodsProvider.DevExpress.XtraLayout.ILayoutDesignerMethods.EndChangeUpdate()
at DevExpress.XtraLayout.LayoutControlImplementor.ProcessLookAndFeelStyleChanged()
at DevExpress.XtraLayout.LayoutControlImplementor.OnLookAndFeelStyleChanged(Object sender, EventArgs e)
at DevExpress.XtraLayout.LayoutControlImplementor.EndInitCore()
at DevExpress.XtraLayout.LayoutControlImplementor.set_UpdatedCount(Int32 value)
at DevExpress.XtraLayout.LayoutControlImplementor.EndInit()
at DevExpress.XtraLayout.LayoutControl.EndInit()
at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.LayoutControls(IModelNode layoutNode, ViewItemsCollection viewItems)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControllers.ModelEditorLayoutManagerProvider.InitializeLayout(ModelNode node, Boolean readOnly, Boolean isWinLayout)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControllers.ModelEditorLayoutManagerProvider..ctor(ModelNode node, Boolean readOnly, Boolean isWinLayout)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControl.ShowDetailViewLayout(ModelNode node, Boolean readOnly)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorControl.ShowLayoutIfNeed(ModelNode node, Boolean readOnly)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorViewController.set_CurrentModelNode(ModelTreeListNode value)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelEditorViewController.ModelEditorControl_SelectedNodesChanged(Object sender, EventArgs e)
at DevExpress.ExpressApp.Win.Core.ModelEditor.HandlerWrapper.SafeExceute(Object obj, EventArgs e)

WullumpieClient

The error even occurs after starting VS, loading the project and searching for some string.

Sasha (Xafari Support)Agent

Hi Willem,

Thanks for the additional information.
In order to fix the issue, we must first reproduce the issue. We are unable to reproduce the issue with the info you provided using the Demo Center, shipped with Xafari and using specific sample for XafariLookupEditor. We do not have ideas why this error can occur on your machine either.
Could you please provide us with the following info?
- a small demo project, reproducing the problem.

Best regards,
Sasha.

WullumpieClient

No I cannot.

I have added Xafari to my well running application (until now).

There won't be too many objects in Xafari.Editors.Win.XafariLookupEditor.CreateControlCore() that can be affected from the outside, i think.

When run from the debugger, my program starts but the error blocks the UI of Visual Studio until i press OK.

Sasha (Xafari Support)Agent

Hello,

Sorry for the delay with the answer.
We are going to investigate this issue further. It will take some additional time because we are unable to reproduce the problem on this information about exception.

Thanks, Sasha.

WullumpieClient

Hello Sasha,

I understand.

Since i had to roll out the application, i have collected some info from the users. They do not see the error. Meanwhile, working from the debugger, i still experience the error.

Willem

Sasha (Xafari Support)Agent

Hello Willem,

Thanks for reporting the issue.
We found the bug and we are going to fix this issue in new Xafari version.

Best regards,
Sasha.

Sasha (Xafari Support)Agent

Hello,

You can download new Xafari Framework x011.

Feel free to contact us if you have any questions.
We will be happy to help you.
Best regards,
Sasha.

× This ticket is closed.