Bug 219297 - DOM Error with dynamic contextual menu
Summary: DOM Error with dynamic contextual menu
Status: RESOLVED INVALID
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2008-02-18 05:32 EST by GAILLOT CLA
Modified: 2009-02-20 04:25 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GAILLOT CLA 2008-02-18 05:32:20 EST
Build ID: I20070625-1500

Steps To Reproduce:
Test Cases :

1. The fourth online demo of RAP :

-> In the "Plug-in explorer" tab, do fast right clicks on the tree items to display the contextual menu.

-> The same DOM Error often occurs : ([Exception... "Node was not found"  code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)"  location: "http://ondemand.yoxos.com/geteclipse/start Line: 65"]

)

2. Other way :

I got the same problem with my application. This seems to be relative only to dynamic contextual menus. I'm using this code to create it : 

MenuManager manager = new MenuManager("#PopupMenu1");
manager.setRemoveAllWhenShown(true);
manager.addMenuListener(<The menu listener>);
Menu menu = manager.createContextMenu(<The Viewer>.getControl());
<The Viewer>.getControl().setMenu(menu);

More information:
This two test case display the same DOM Error. The bug seems to be located in the Javascript method "unhidemenu" of the "MenuUtil" class.
Comment 1 Benjamin Wolff CLA 2008-02-21 14:52:21 EST
yes, i also encounter this error. but it seems to occure randomly in my application. i use a contextmenu of a table to open a wizard. but the error occurs after i click on the menuitem and the wizard is supposed to open. i could not figure out a way to recreate this, is occurs on different tableitems, i didn' realise a pattern. but since gaillot described a way to recreate it i suppose it is the same bug.

the error is the same:

Could not evaluate javascript response:

[Exception... "Node was not found"  code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)"  location: "http://127.0.0.1:9080/katalog?startup=admin Line: 65"]

....


this is really anyoing since the application is already running in productive environment and i can't do anything about it ://
Comment 2 Paul Norrie CLA 2008-04-14 00:57:46 EDT
I can replicate this bug with the steps included in the prior comments.  Additionally we notice this when the user clicks quickly on an element that brings up a context/popup menu.  For example, in a folder with many views, the chevrons (>>) display.  Clicking quickly on these will occasionally produce this error.

Btw - I think this has a greater severity than 'normal'.
Comment 3 Ivan Furnadjiev CLA 2008-10-14 10:13:33 EDT
I've tested it with the steps included in post 1 (with Yoxos OnDemand and provided snippet) and I can't reproduce it with RAP v1.1.1. Have been tested in FF 3.0.0.3, IE7 and Safari on Windows XP SP3. Maybe meantime the bug is fixed. Can you confirm that the bug still exist? 
Comment 4 Ivan Furnadjiev CLA 2009-02-20 04:25:55 EST
Please reopen if the issue persist.