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 110695 - org.netbeans.junit.AssertionFailedErrorException: Menu pushing: (JMenuItem with text "Help", JMenuItem with text "Help Contents")
Summary: org.netbeans.junit.AssertionFailedErrorException: Menu pushing: (JMenuItem wi...
Status: REOPENED
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@qa
URL: http://beetle.czech.sun.com:8080/unit...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-24 09:56 UTC by Marian Mirilovic
Modified: 2015-01-01 21:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A test harness which shows the bug (2.44 KB, application/gzip)
2015-01-01 21:51 UTC, vecin2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2007-07-24 09:56:11 UTC
I am getting this fail only on Linux and only with JDK 1.5.0_12 (it's running fine with JDK 6.0 as well as for both JDKs
on Sol/Lin machines). If you look at the screenshot (available from the link), you'll see menu is shown, but from the
exception it looks like no menu is visible....

org.netbeans.junit.AssertionFailedErrorException: Menu pushing: (JMenuItem with text "Help", JMenuItem with text "Help
Contents")
	at org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:149)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:165)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:169)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:124)
	at org.netbeans.xtest.plugin.ide.MainWithExec.run(MainWithExec.java:85)
	at org.netbeans.xtest.plugin.ide.Main$3.run(Main.java:300)
	at java.lang.Thread.run(Thread.java:619)

Nested Exception is:
org.netbeans.jemmy.TimeoutExpiredException: Menu pushing: (JMenuItem with text "Help", JMenuItem with text "Help Contents")
	at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:147)
	at org.netbeans.jemmy.ActionProducer.produceAction(ActionProducer.java:252)
	at org.netbeans.jemmy.operators.Operator.produceTimeRestricted(Operator.java:697)
	at org.netbeans.jemmy.operators.Operator.produceTimeRestricted(Operator.java:720)
	at org.netbeans.jemmy.operators.JMenuBarOperator.pushMenu(JMenuBarOperator.java:221)
	at org.netbeans.jemmy.operators.JMenuBarOperator.pushMenu(JMenuBarOperator.java:263)
	at org.netbeans.jemmy.operators.JMenuBarOperator.pushMenu(JMenuBarOperator.java:329)
	at org.netbeans.jellytools.actions.Action.performMenu(Action.java:340)
	at org.netbeans.jellytools.actions.Action.perform(Action.java:246)
	at org.netbeans.jellytools.actions.Action.perform(Action.java:290)
	at gui.javahelp.JavaHelpDialogTest.testContextualSearch(JavaHelpDialogTest.java:130)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:59)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:286)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:224)
	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:302)
	at org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:122)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:165)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:169)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:124)
	at org.netbeans.xtest.plugin.ide.MainWithExec.run(MainWithExec.java:85)
	at org.netbeans.xtest.plugin.ide.Main$3.run(Main.java:300)
	at java.lang.Thread.run(Thread.java:619)
Comment 1 Jiri Skrivanek 2007-11-09 09:42:18 UTC
The test is passing as seen at the url.
Comment 2 Marian Mirilovic 2009-12-03 03:24:57 UTC
v/c
Comment 3 vecin2 2015-01-01 21:51:09 UTC
Created attachment 151337 [details]
A test harness which shows the bug
Comment 4 vecin2 2015-01-01 21:55:40 UTC
I have managed to replicate the problem. 

I create a simple window with just one JMenuBar, JMenu(File) and JMenuItem(SaveAs). It can't find the menuItem "saveAs". 
Hoewer if add the menuItem directly under the JFrame, it finds it.

The exception I am getting starts like:
org.netbeans.jemmy.TimeoutExpiredException: Wait JMenuItem with text "SaveAs" loaded (ComponentOperator.WaitComponentTimeout)
	at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:197)
	at org.netbeans.jemmy.operators.ComponentOperator.waitComponent(ComponentOperator.java:346)
	at org.netbeans.jemmy.operators.ComponentOperator.waitComponent(ComponentOperator.java:313)
	at org.netbeans.jemmy.operators.JMenuItemOperator.<init>(JMenuItemOperator.java:139)
	at org.netbeans.jemmy.operators.JMenuItemOperator.<init>
...


Thanks,David