This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 111278 - [a11y] - A11Y test tool throws exception if context menu is up
Summary: [a11y] - A11Y test tool throws exception if context menu is up
Status: VERIFIED WONTFIX
Alias: None
Product: soa
Classification: Unclassified
Component: JBI Test Driver (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jun Qian
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2007-07-28 00:58 UTC by lchang
Modified: 2007-09-26 20:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
tester results (1.30 KB, application/octet-stream)
2007-07-28 00:59 UTC, lchang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lchang 2007-07-28 00:58:39 UTC
Netbeans Build:  200707250000
UI Accessibility Tester v 2.4

If I run the A11Y tool when the right-click menu of the JBI Test driver is up, an exception is thrown.

Steps to reproduce:
1.  In a Comp App Project
2.  Right-click the Test folder to open the contextual menu
3.  Run A11Y tool when the menu is up.

An exception is thrown, and the test results show an error (see attached):
java.lang.IllegalStateException: Assertion failed. WindowsAPI is required to be called from AWT thread only, see 
http://core.netbeans.org/proposals/threading/
	at org.netbeans.core.windows.WindowManagerImpl.assertEventDispatchThreadWeak(WindowManagerImpl.java:1422)
	at org.netbeans.core.windows.WindowManagerImpl.topComponentID(WindowManagerImpl.java:1174)
	at org.openide.windows.WindowManager.findTopComponentID(WindowManager.java:491)
	at org.netbeans.core.windows.model.TopComponentSubModel.getID(TopComponentSubModel.java:343)
	at org.netbeans.core.windows.model.TopComponentSubModel.containsTopComponent(TopComponentSubModel.java:238)
	at org.netbeans.core.windows.model.DefaultModeModel.containsTopComponent(DefaultModeModel.java:238)
	at org.netbeans.core.windows.model.DefaultModel.containsModeTopComponent(DefaultModel.java:778)
	at org.netbeans.core.windows.Central.containsModeTopComponent(Central.java:1404)
	at org.netbeans.core.windows.ModeImpl.containsTopComponent(ModeImpl.java:355)
	at org.netbeans.core.windows.WindowManagerImpl.findMode(WindowManagerImpl.java:402)
	at org.netbeans.core.windows.Central.isDocked(Central.java:1707)
	at org.netbeans.core.windows.WindowManagerImpl.isDocked(WindowManagerImpl.java:880)
	at org.netbeans.core.windows.view.ui.tabcontrol.TabbedAdapter$WinsysInfo.getOrientation(TabbedAdapter.java:480)
	at org.netbeans.swing.tabcontrol.plaf.TabControlButtonFactory$SlidePinButton.getButtonId
(TabControlButtonFactory.java:138)
	at org.netbeans.swing.tabcontrol.plaf.TabControlButtonFactory$SlidePinButton.getToolTipText
(TabControlButtonFactory.java:152)
	at javax.swing.AbstractButton$AccessibleAbstractButton.getToolTipText(AbstractButton.java:2999)
	at javax.swing.JComponent$AccessibleJComponent.getAccessibleDescription(JComponent.java:3797)
	at org.netbeans.a11y.AccComponent.<init>(AccComponent.java:71)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:206)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.addToModel(AccessibilityTester.java:218)
	at org.netbeans.a11y.AccessibilityTester.getModel(AccessibilityTester.java:192)
	at org.netbeans.a11y.AccessibilityTestRunner.getAWTmodel(AccessibilityTestRunner.java:61)
	at org.netbeans.modules.a11y.AccessibilityTesterRunnable.runTest(AccessibilityTesterRunnable.java:137)
	at org.netbeans.modules.a11y.AccessibilityTesterRunnable.run(AccessibilityTesterRunnable.java:101)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 lchang 2007-07-28 00:59:13 UTC
Created attachment 45855 [details]
tester results
Comment 2 Jun Qian 2007-07-31 20:49:28 UTC
I get the same exception on each and every menu in NetBeans. I guess it's either an A11Y test tool issue or a NB core issue.
Comment 3 pchen 2007-09-26 20:10:22 UTC
Using build 200709250000 on Windows XP

I can access all functionalities of the context menu
(New Test Case, or Delete All Results)

I don't think the users need to know about the bug in A11Y tool :)