Exception being thrown

Jul 2, 2009 at 4:05 PM
Got this exception on calling Window.Get("nxsProductShortName")

Any idea why White would be throwing an exception?

Andy

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Core.WhiteException: AutomationId: CreateSchemeWizard
ControlType: ControlType.Window
Name: Create Scheme
HelpText:
Bounding rectangle: 375,261,529,467
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: wizCreateScheme
ControlType: ControlType.Pane
Name:
HelpText:
Bounding rectangle: 378,297,523,428
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: WizardPagesPanel
ControlType: ControlType.Pane
Name:
HelpText:
Bounding rectangle: 378,297,523,388
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: wipSchemeShell
ControlType: ControlType.Pane
Name:
HelpText:
Bounding rectangle: 378,297,523,388
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: ucSchemeDetails
ControlType: ControlType.Pane
Name:
HelpText:
Bounding rectangle: 391,372,471,350
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: tblInitialSchemeDetails
ControlType: ControlType.Pane
Name:
HelpText:
Bounding rectangle: 391,372,467,346
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: nxsSchemeName
ControlType: ControlType.Edit
Name:
HelpText:
Bounding rectangle: 503,376,240,98
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: innerTextBox
ControlType: ControlType.Document
Name:
HelpText:
Bounding rectangle: 503,376,240,98
ClassName: WindowsForms10.EDIT.app.0.189441b
IsOffScreen: False

AutomationId: lblName
ControlType: ControlType.Text
Name: Scheme name:
HelpText:
Bounding rectangle: 394,377,102,101
ClassName: WindowsForms10.STATIC.app.0.189441b
IsOffScreen: False

AutomationId: lblProductShortName
ControlType: ControlType.Text
Name: Product:
HelpText:
Bounding rectangle: 394,483,102,28
ClassName: WindowsForms10.STATIC.app.0.189441b
IsOffScreen: False

AutomationId: nxsProductShortName
ControlType: ControlType.ComboBox
Name: Site code:
HelpText:
Bounding rectangle: 503,482,240,25
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: comboBox
ControlType: ControlType.ComboBox
Name: Trust Based Pension
HelpText:
Bounding rectangle: 503,482,240,24
ClassName: WindowsForms10.COMBOBOX.app.0.189441b
IsOffScreen: False

AutomationId: ListBox
ControlType: ControlType.List
Name:
HelpText:
Bounding rectangle: 0,24,240,18
ClassName: ComboLBox
IsOffScreen: True

AutomationId:
ControlType: ControlType.ListItem
Name: Trust Based Pension
HelpText:
Bounding rectangle: 1,25,238,16
ClassName:
IsOffScreen: True

AutomationId: DropDown
ControlType: ControlType.Button
Name: Drop Down Button
HelpText:
Bounding rectangle: 721,483,21,22
ClassName:
IsOffScreen: False

AutomationId: ButtonsPanel
ControlType: ControlType.Pane
Name:
HelpText:
Bounding rectangle: 378,687,523,38
ClassName: WindowsForms10.Window.8.app.0.189441b
IsOffScreen: False

AutomationId: BackButton
ControlType: ControlType.Button
Name: < Back
HelpText:
Bounding rectangle: 580,694,75,23
ClassName: WindowsForms10.BUTTON.app.0.189441b
IsOffScreen: False

AutomationId: NextButton
ControlType: ControlType.Button
Name: Next >
HelpText:
Bounding rectangle: 655,694,75,23
ClassName: WindowsForms10.BUTTON.app.0.189441b
IsOffScreen: False

AutomationId: CancelButton
ControlType: ControlType.Button
Name: Cancel
HelpText:
Bounding rectangle: 737,694,75,23
ClassName: WindowsForms10.BUTTON.app.0.189441b
IsOffScreen: False

AutomationId: TitleBar
ControlType: ControlType.TitleBar
Name: Create Scheme
HelpText:
Bounding rectangle: 378,264,523,33
ClassName:
IsOffScreen: False

AutomationId: CreateSchemeWizard
ControlType: ControlType.MenuBar
Name: System Menu Bar
HelpText:
Bounding rectangle: 378,264,22,32
ClassName:
IsOffScreen: False

AutomationId: Item 1
ControlType: ControlType.MenuItem
Name: System
HelpText:
Bounding rectangle: 378,264,22,32
ClassName:
IsOffScreen: False

AutomationId: Close
ControlType: ControlType.Button
Name: Close
HelpText:
Bounding rectangle: 870,264,31,31
ClassName:
IsOffScreen: False

---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Core.UIItems.UIItem..ctor(AutomationElement automationElement, ActionListener actionListener) in d:\white-os\Core\UIItems\UIItem.cs:line 35
at Core.UIItems.Button..ctor(AutomationElement automationElement, ActionListener actionListener) in d:\white-os\Core\UIItems\Button.cs:line 11
at Core.UIItems.ListBoxItems.ComboBox.ToggleDropDown() in d:\white-os\Core\UIItems\ListBoxItems\ComboBox.cs:line 59
at Core.UIItems.ListBoxItems.ComboBox.MakeActionReady() in d:\white-os\Core\UIItems\ListBoxItems\ComboBox.cs:line 53
at Core.UIItems.ListBoxItems.ComboBox..ctor(AutomationElement automationElement, ActionListener actionListener) in d:\white-os\Core\UIItems\ListBoxItems\ComboBox.cs:line 21
at Core.UIItems.ListBoxItems.WinFormComboBox..ctor(AutomationElement automationElement, ActionListener actionListener) in d:\white-os\Core\UIItems\ListBoxItems\WinFormComboBox.cs:line 12
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.ConstructorInfo.Invoke(Object[] parameters)
at Bricks.RuntimeFramework.Class.New(Object[] arguments)
at Core.Factory.DictionaryMappedItemFactory.Create(AutomationElement automationElement, Type itemType, ActionListener actionListener) in d:\white-os\Core\Factory\DictionaryMappedItemFactory.cs:line 28
at Core.Factory.DictionaryMappedItemFactory.Create(AutomationElement automationElement, ActionListener actionListener) in d:\white-os\Core\Factory\DictionaryMappedItemFactory.cs:line 15
at Core.Factory.DictionaryMappedItemFactory.Create(AutomationElement automationElement, ActionListener actionListener, Type customItemType) in d:\white-os\Core\Factory\DictionaryMappedItemFactory.cs:line 22
at Core.UIItems.UIItemCollection..ctor(IEnumerable automationElements, ActionListener actionListener, Type customItemType) in d:\white-os\Core\UIItems\UIItemCollection.cs:line 45
at Core.Factory.PrimaryUIItemFactory.CreateAll(SearchCriteria searchCriteria, ActionListener actionListener) in d:\white-os\Core\Factory\PrimaryUIItemFactory.cs:line 101
at Core.Factory.PrimaryUIItemFactory.Create(SearchCriteria searchCriteria, ActionListener actionListener) in d:\white-os\Core\Factory\PrimaryUIItemFactory.cs:line 93
at Core.UIItems.Container.NonCachedContainerItemFactory.Find(SearchCriteria searchCriteria) in d:\white-os\Core\UIItems\Container\NonCachedContainerItemFactory.cs:line 25
at Core.UIItems.Container.ContainerItemFactory.Get(SearchCriteria searchCriteria, ActionListener uiItemActionListener) in d:\white-os\Core\UIItems\Container\ContainerItemFactory.cs:line 14
at Core.Sessions.NullWindowSession.Get(ContainerItemFactory containerItemFactory, SearchCriteria searchCriteria, ActionListener actionListener) in d:\white-os\Core\Sessions\NullWindowSession.cs:line 19
at Core.UIItems.Container.CurrentContainerItemFactory.Find(SearchCriteria searchCriteria, WindowSession windowSession) in d:\white-os\Core\UIItems\Container\CurrentContainerItemFactory.cs:line 41
at Core.UIItems.UIItemContainer.Get(SearchCriteria searchCriteria) in d:\white-os\Core\UIItems\UIItemContainer.cs:line 82
Coordinator
Jul 4, 2009 at 9:16 AM

before I investigate this issue. can you let me know what generic type you are supplying with window.Get call?

Jul 4, 2009 at 12:01 PM

Turned out I was doing something dumb with user controls and AccessibilityObjects.  Don't worry about it...