Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 410260

Summary: [Menu] JavaScript error when creating a menu item
Product: [RT] RAP Reporter: Cho HyunJong <hangum>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: ivan, stefanescu.a, tbuschto
Version: 2.1Flags: ivan: review+
Target Milestone: 2.1 M1   
Hardware: Macintosh   
OS: All   
Whiteboard: sr211
Attachments:
Description Flags
rap 2.1 rc3 error
none
Patch for Workbench Demo to reproduce the issue none

Description Cho HyunJong CLA 2013-06-08 06:51:58 EDT
Error: Error: Operation "create" on target "w19" of type "rwt.widgets.MenuItem" failed:
root is null
Properties: 
parent = w18
style = CASCADE
index = 0
text = File
mnemonicIndex = 0
menu = w20


Script: {"head":{"requestCounter":3},"operations":[["destroy","w2"],["create","w17","rwt.widgets.Shell",{"style":["NO_TRIM"]}],["listen","w17",{"Move":true,"Resize":true,"Activate":true,"Close":true}],["set","w17",{"text":"Tadpole DB Hub 1.0.0 SRAlpha","active":true,"mode":"maximized","minimumSize":[80,2],"activeControl":"w25","bounds":[0,0,984,972],"children":["w25","w52","w60","w65"],"tabIndex":-1,"visibility":true}],["listen","w17",{"Help":true}],["create","w18","rwt.widgets.Menu",{"style":["BAR"]}],["create","w19","rwt.widgets.MenuItem",{"parent":"w18","style":["CASCADE"],"index":0,"text":"File","mnemonicIndex":0,"menu":"w20"}],["create","w21","rwt.widgets.MenuItem",{"parent":"w18","style":["CASCADE"],"index":1,"text":"Window","mnemonicIndex":0,"menu":"w22"}],["create","w23","rwt.widgets.MenuItem",{"parent":"w18","style":["CASCADE"],"index":2,"text":"Help","mnemonicIndex":0,"menu":"w24"}],["create","w20","rwt.widgets.Menu",{"style":["DROP_DOWN"]}],["listen","w20",{"Show":true,"Hide":true}],["create","w22","rwt.widgets.Menu",{"style":["DROP_DOWN"]}],["listen","w22",{"Show":true,"Hide":true}],["create","w24","rwt.widgets.Menu",{"style":["DROP_DOWN"]}],["listen","w24",{"Show":true,"Hide":true}],["create","w99","rwt.widgets.Menu",{"style":["POP_UP"]}],["listen","w99",{"Show":true,"Hide":true}],["create","w145","rwt.widgets.Menu",{"style":["POP_UP"]}],["listen","w145",{"Show":true,"Hide":true}],["create","w25","rwt.widgets.Composite",{"parent":"w17","style":["NONE"],"bounds":[2,2,982,22],"children":["w26","w27"],"tabIndex":1,"clientArea":[0,0,0,0]}],["create","w26","rwt.widgets.Sash",{"parent":"w25","style":["VERTICAL"],"bounds":[0,0,0,0],"tabIndex":-1,"visibility":false}],["create","w27","rwt.widgets.Composite",{"parent":"w25","style":["NONE"],"bounds":[0,0,982,22],"children":["w28"],"tabIndex":-1,"clientArea":[0,0,982,22]}],["create","w28","rwt.widgets.CoolBar",{"parent":"w27","style":["FLAT","HORIZONTAL"],"bounds":[0,0,982,22],"children":["w29","w50"],"tabIndex":-1}],["create","w47","rwt.widgets.CoolItem",{"parent":"w28","style":["DROP_DOWN"],"bounds":[0,0,982,22],"control":"w29"}],["create","w29","rwt.widgets.ToolBar",{"parent":"w28","style":["FLAT","HORIZONTAL"],"bounds":[10,0,972,22],"children":[],"tabIndex":4}],["listen","w29",{"MenuDetect":true}],["create","w30","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":0,"bounds":[0,0,24,22],"toolTip":"데이터베이스 추가","image":["rwt-resources/generated/f28fe3ed.png",16,16]}],["listen","w30",{"Selection":true}],["create","w31","rwt.widgets.ToolItem",{"parent":"w29","style":["SEPARATOR"],"index":1,"bounds":[24,0,4,22]}],["create","w32","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":2,"bounds":[28,0,24,22],"enabled":false,"toolTip":"Save (S)","image":["rwt-resources/generated/57340c0d.gif",16,16]}],["listen","w32",{"Selection":true}],["create","w33","rwt.widgets.ToolItem",{"parent":"w29","style":["SEPARATOR"],"index":3,"bounds":[52,0,4,22]}],["create","w34","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":4,"bounds":[56,0,24,22],"enabled":false,"toolTip":"Edit SQL","image":["rwt-resources/generated/3a823856.png",16,16]}],["listen","w34",{"Selection":true}],["create","w35","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":5,"bounds":[80,0,24,22],"enabled":false,"toolTip":"ERD 보기","image":["rwt-resources/generated/951ce9b4.png",16,16]}],["listen","w35",{"Selection":true}],["create","w36","rwt.widgets.ToolItem",{"parent":"w29","style":["SEPARATOR"],"index":6,"bounds":[104,0,4,22]}],["create","w37","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":7,"bounds":[108,0,24,22],"enabled":false,"toolTip":"리소스 삭제","image":["rwt-resources/generated/c191bc8b.png",16,16]}],["listen","w37",{"Selection":true}],["create","w38","rwt.widgets.ToolItem",{"parent":"w29","style":["SEPARATOR"],"index":8,"bounds":[132,0,4,22]}],["create","w39","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":9,"bounds":[136,0,24,22],"toolTip":"User Manager","image":["rwt-resources/generated/fbfa5d26.png",16,16]}],["listen","w39",{"Selection":true}],["create","w40","rwt.widgets.ToolItem",{"parent":"w29","style":["SEPARATOR"],"index":10,"bounds":[160,0,4,22]}],["create","w41","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":11,"bounds":[164,0,24,22],"toolTip":"Preferences","image":["rwt-resources/generated/36b6588b.png",16,16]}],["listen","w41",{"Selection":true}],["create","w42","rwt.widgets.ToolItem",{"parent":"w29","style":["SEPARATOR"],"index":12,"bounds":[188,0,4,22]}],["create","w43","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":13,"bounds":[192,0,24,22],"toolTip":"버그, 기능 추가요청","image":["rwt-resources/generated/81944b16.png",16,16]}],["listen","w43",{"Selection":true}],["create","w44","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":14,"bounds":[216,0,23,22],"toolTip":"About Tadpole for DB Hub","image":["rwt-resources/generated/8bed9527.png",15,15]}],["listen","w44",{"Selection":true}],["create","w45","rwt.widgets.ToolItem",{"parent":"w29","style":["SEPARATOR"],"index":15,"bounds":[239,0,4,22]}],["create","w46","rwt.widgets.ToolItem",{"parent":"w29","style":["PUSH"],"index":16,"bounds":[243,0,24,22],"toolTip":"Log out","image":["rwt-resources/generated/1c36eae8.png",16,16]}],["listen","w46",{"Selection":true}],["create","w50","rwt.widgets.ToolBar",{"parent":"w28","style":["FLAT","HORIZONTAL"],"bounds":[-17,0,25,22],"children":[],"tabIndex":-1,"visibility":false,"background":[255,255,255,255]}],["create","w51","rwt.widgets.ToolItem",{"parent":"w50","style":["PUSH"],"index":0,"bounds":[0,0,16,22],"image":["rwt-resources/generated/4e7aad48.gif",8,16]}],["listen","w51",{"Selection":true}],["create","w52","rwt.widgets.Composite",{"parent":"w17","style":["NONE"],"bounds":[0,0,0,0],"children":["w53","w54","w56"],"tabIndex":5,"visibility":false,"clientArea":[0,0,0,0]}],["create","w53","rwt.widgets.Label",{"parent":"w52","style":["NONE"],"appearance":"clabel","bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"foreground":[74,74,74,255],"text":""}],["create","w54","rwt.widgets.ToolBar",{"parent":"w52","style":["FLAT","HORIZONTAL"],"bounds":[0,0,0,0],"children":[],"tabIndex":7,"visibility":false}],["create","w55","rwt.widgets.ToolItem",{"parent":"w54","style":["PUSH"],"index":0,"bounds":[0,0,24,22],"toolTip":"Cancel Current Operation","visible":false,"image":["rwt-resources/generated/cb52ad0b.gif",16,16]}],["listen","w55",{"Selection":true}],["create","w56","rwt.widgets.Composite",{"parent":"w52","style":["NONE"],"bounds":[0,0,0,0],"children":["w57"],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w57","rwt.widgets.Composite",{"parent":"w56","style":["NONE"],"bounds":[0,0,0,0],"children":["w58","w59"],"tabIndex":9,"visibility":false,"clientArea":[0,0,0,0]}],["create","w58","rwt.widgets.ProgressBar",{"parent":"w57","style":["HORIZONTAL"],"bounds":[0,0,0,0],"tabIndex":-1,"visibility":false}],["create","w59","rwt.widgets.ProgressBar",{"parent":"w57","style":["HORIZONTAL","INDETERMINATE"],"bounds":[0,0,0,0],"tabIndex":-1,"visibility":false}],["create","w60","rwt.widgets.Composite",{"parent":"w17","style":["NONE"],"bounds":[0,0,32,22],"children":["w61"],"tabIndex":10,"toolTip":"Show View as a fast view","visibility":false}],["listen","w60",{"MenuDetect":true}],["set","w60",{"clientArea":[0,0,32,22]}],["create","w61","rwt.widgets.ToolBar",{"parent":"w60","style":["FLAT","HORIZONTAL"],"bounds":[0,0,32,22],"children":[],"tabIndex":11}],["listen","w61",{"MenuDetect":true}],["create","w65","rwt.widgets.Composite",{"parent":"w17","style":["NONE"],"bounds":[4,26,976,942],"children":["w66"],"tabIndex":-1,"clientArea":[0,0,976,942]}],["create","w66","rwt.widgets.Composite",{"parent":"w65","style":["NONE"],"bounds":[0,0,976,942],"children":["w118","w117","w93","w92","w67","w80","w105","w146","w147"],"tabIndex":-1,"clientArea":[0,0,976,942]}],["create","w118","rwt.widgets.ToolBar",{"parent":"w66","style":["FLAT","HORIZONTAL"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false}],["listen","w118",{"Activate":true,"MouseDown":true,"MouseUp":true,"MouseDoubleClick":true}],["create","w117","rwt.widgets.Composite",{"parent":"w66","style":["NONE"],"bounds":[3,311,286,628],"children":["w119"],"tabIndex":-1}],["listen","w117",{"Activate":true}],["set","w117",{"clientArea":[0,0,286,628]}],["create","w119","rwt.widgets.Composite",{"parent":"w117","style":["NONE"],"bounds":[0,0,286,628],"children":["w120","w123"],"tabIndex":-1,"clientArea":[0,0,286,628]}],["create","w120","rwt.widgets.Composite",{"parent":"w119","style":["NONE"],"bounds":[1,0,284,28],"children":["w121","w122"],"tabIndex":-1,"clientArea":[0,0,284,28]}],["create","w121","rwt.widgets.Label",{"parent":"w120","style":["NONE"],"bounds":[2,5,15,17],"tabIndex":-1,"text":"필터"}],["create","w122","rwt.widgets.Text",{"parent":"w120","style":["LEFT","SINGLE","SEARCH","ICON_CANCEL","ICON_SEARCH","BORDER"],"bounds":[19,2,263,24],"tabIndex":-1}],["listen","w122",{"KeyDown":true}],["create","w123","rwt.widgets.Composite",{"parent":"w119","style":["NONE"],"bounds":[1,28,284,600],"children":["w124"],"tabIndex":-1,"clientArea":[0,0,284,600]}],["create","w124","rwt.widgets.CTabFolder",{"parent":"w123","style":["MULTI"],"toolTipTexts":["Minimize","Maximize","Restore","Show List","Close"],"bounds":[2,2,280,596],"children":["w125","w127"],"tabIndex":-1}],["listen","w124",{"FocusIn":true,"FocusOut":true}],["set","w124",{"tabHeight":18,"selection":"w126","selectionBackground":[220,223,228,255],"selectionBackgroundGradient":[[[133,135,140,255],[167,166,170,255],[167,166,170,255],[220,223,228,255]],[0,100,100,100],false]}],["listen","w124",{"Selection":true,"DefaultSelection":true}],["create","w126","rwt.widgets.CTabItem",{"parent":"w124","index":0,"style":["NONE"],"bounds":[0,0,53,19],"text":"Tables"}],["create","w125","rwt.widgets.Composite",{"parent":"w124","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w127","rwt.widgets.Composite",{"parent":"w124","style":["NONE"],"bounds":[2,22,276,572],"children":["w128"],"tabIndex":-1,"clientArea":[0,0,276,572]}],["create","w128","rwt.widgets.Composite",{"parent":"w127","style":["NONE"],"bounds":[2,2,272,568],"children":["w129","w135","w148"],"tabIndex":-1,"clientArea":[0,0,272,568]}],["create","w129","rwt.widgets.Grid",{"parent":"w128","style":["SINGLE","FULL_SELECTION","BORDER"],"appearance":"table","indentionWidth":0,"treeColumn":-1,"markupEnabled":false}],["create","w130","rwt.widgets.ScrollBar",{"parent":"w129","style":["HORIZONTAL"]}],["create","w131","rwt.widgets.ScrollBar",{"parent":"w129","style":["VERTICAL"]}],["set","w129",{"bounds":[0,0,272,282],"children":[],"tabIndex":-1,"menu":"w145"}],["listen","w129",{"MouseDown":true,"MouseUp":true,"MouseDoubleClick":true}],["set","w129",{"itemHeight":23,"itemMetrics":[[0,0,125,0,0,0,0],[1,125,145,0,0,0,0]],"columnCount":2,"headerHeight":18,"headerVisible":true,"linesVisible":true}],["listen","w129",{"Selection":true,"DefaultSelection":true}],["set","w129",{"enableCellToolTip":true}],["listen","w130",{"Selection":true}],["listen","w131",{"Selection":true}],["create","w134","rwt.widgets.DragSource",{"control":"w129","style":["DROP_COPY","DROP_MOVE"],"transfer":["3556653"]}],["listen","w134",{"DragStart":true,"DragEnd":true}],["create","w132","rwt.widgets.GridColumn",{"parent":"w129","text":"Name","width":125}],["listen","w132",{"Selection":true}],["create","w133","rwt.widgets.GridColumn",{"parent":"w129","text":"Comment","index":1,"left":125,"width":145}],["listen","w133",{"Selection":true}],["create","w135","rwt.widgets.Grid",{"parent":"w128","style":["SINGLE","FULL_SELECTION","VIRTUAL","BORDER"],"appearance":"table","indentionWidth":0,"treeColumn":-1,"markupEnabled":false}],["create","w136","rwt.widgets.ScrollBar",{"parent":"w135","style":["HORIZONTAL"]}],["create","w137","rwt.widgets.ScrollBar",{"parent":"w135","style":["VERTICAL"]}],["set","w135",{"bounds":[0,285,272,283],"children":[],"tabIndex":-1}],["listen","w135",{"MouseDown":true,"MouseUp":true,"MouseDoubleClick":true}],["set","w135",{"itemHeight":23,"itemMetrics":[[0,0,120,0,0,0,0],[1,120,90,0,0,0,0],[2,210,50,0,0,0,0],[3,260,100,0,0,0,0],[4,360,50,0,0,0,0],[5,410,50,0,0,0,0],[6,460,50,0,0,0,0]],"columnCount":7,"headerHeight":18,"headerVisible":true,"linesVisible":true}],["listen","w135",{"Selection":true,"SetData":true,"DefaultSelection":true}],["set","w136",{"visibility":true}],["listen","w136",{"Selection":true}],["listen","w137",{"Selection":true}],["create","w138","rwt.widgets.GridColumn",{"parent":"w135","text":"Field","width":120}],["listen","w138",{"Selection":true}],["create","w139","rwt.widgets.GridColumn",{"parent":"w135","text":"Type","index":1,"left":120,"width":90}],["listen","w139",{"Selection":true}],["create","w140","rwt.widgets.GridColumn",{"parent":"w135","text":"Key","index":2,"left":210,"width":50}],["listen","w140",{"Selection":true}],["create","w141","rwt.widgets.GridColumn",{"parent":"w135","text":"Comment","index":3,"left":260,"width":100}],["listen","w141",{"Selection":true}],["create","w142","rwt.widgets.GridColumn",{"parent":"w135","text":"Null","index":4,"left":360,"width":50}],["listen","w142",{"Selection":true}],["create","w143","rwt.widgets.GridColumn",{"parent":"w135","text":"Default","index":5,"left":410,"width":50}],["listen","w143",{"Selection":true}],["create","w144","rwt.widgets.GridColumn",{"parent":"w135","text":"Extra","index":6,"left":460,"width":50}],["listen","w144",{"Selection":true}],["create","w148","rwt.widgets.Sash",{"parent":"w128","style":["HORIZONTAL"],"bounds":[0,282,272,3],"tabIndex":-1}],["create","w93","rwt.widgets.ToolBar",{"parent":"w66","style":["FLAT","HORIZONTAL"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false}],["listen","w93",{"Activate":true,"MouseDown":true,"MouseUp":true,"MouseDoubleClick":true}],["create","w92","rwt.widgets.Composite",{"parent":"w66","style":["NONE"],"bounds":[3,26,286,253],"children":["w94"],"tabIndex":-1}],["listen","w92",{"Activate":true}],["set","w92",{"clientArea":[0,0,286,253]}],["create","w94","rwt.widgets.Composite",{"parent":"w92","style":["NONE"],"bounds":[0,0,286,253],"children":["w95"],"tabIndex":-1,"clientArea":[0,0,286,253]}],["create","w95","rwt.widgets.Composite",{"parent":"w94","style":["NONE"],"bounds":[0,0,286,253],"children":["w96"],"tabIndex":-1,"clientArea":[0,0,286,253]}],["create","w96","rwt.widgets.Grid",{"parent":"w95","style":["SINGLE","VIRTUAL","BORDER"],"appearance":"tree","selectionPadding":[3,5],"indentionWidth":16,"markupEnabled":true}],["create","w97","rwt.widgets.ScrollBar",{"parent":"w96","style":["HORIZONTAL"]}],["create","w98","rwt.widgets.ScrollBar",{"parent":"w96","style":["VERTICAL"]}],["set","w96",{"bounds":[5,5,276,243],"children":[],"tabIndex":-1,"menu":"w99"}],["listen","w96",{"MouseDown":true,"MouseUp":true,"MouseDoubleClick":true}],["set","w96",{"itemCount":1,"itemHeight":22,"itemMetrics":[[0,0,1648,0,16,22,1618]]}],["listen","w96",{"Selection":true,"SetData":true,"DefaultSelection":true,"Expand":true,"Collapse":true}],["set","w97",{"visibility":true}],["listen","w97",{"Selection":true}],["listen","w98",{"Selection":true}],["create","w100","rwt.widgets.GridItem",{"parent":"w96","index":0,"itemCount":3,"texts":["Other Group"],"images":[["rwt-resources/generated/c518f8f5.png",16,16]],"expanded":true}],["create","w102","rwt.widgets.GridItem",{"parent":"w100","index":0,"texts":["[D] Sample MariaDB 5.5 (tester@tester)"],"images":[["rwt-resources/generated/9769815d.png",22,16]]}],["create","w103","rwt.widgets.GridItem",{"parent":"w100","index":1,"texts":["[D] Sample SQLite 3.7.2 (@/Users/hangum/Documents/workspace-tadpole-1.0.0/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/configuration/tadpole/db/tadpole-system.db)"],"images":[["rwt-resources/generated/7c301a5b.png",16,16]]}],["create","w104","rwt.widgets.GridItem",{"parent":"w100","index":2,"texts":["[D] Sample MongoDB 2.0.2 (@test)"],"images":[["rwt-resources/generated/28906458.png",16,16]]}],["create","w67","rwt.widgets.Composite",{"parent":"w66","style":["NONE"],"bounds":[295,0,681,942],"children":["w150","w68"],"tabIndex":-1,"clientArea":[0,0,681,942]}],["create","w79","rwt.widgets.DropTarget",{"control":"w67","style":["DROP_COPY","DROP_LINK"]}],["create","w150","rwt.widgets.Composite",{"parent":"w67","style":["NONE"],"bounds":[3,26,675,913],"children":["w151"],"tabIndex":-1}],["listen","w150",{"Activate":true}],["set","w150",{"clientArea":[0,0,675,913]}],["create","w151","rwt.widgets.Composite",{"parent":"w150","style":["NONE"],"bounds":[0,0,675,913],"children":["w152","w155","w157"],"tabIndex":-1,"clientArea":[0,0,675,913]}],["create","w152","rwt.widgets.Composite",{"parent":"w151","style":["NONE"],"bounds":[1,1,673,34],"children":["w153","w154"],"tabIndex":-1,"clientArea":[0,0,673,34]}],["create","w153","rwt.widgets.Label",{"parent":"w152","style":["NONE"],"bounds":[5,8,37,17],"tabIndex":-1,"text":"URL "}],["create","w154","rwt.widgets.Text",{"parent":"w152","style":["LEFT","SINGLE","BORDER"],"bounds":[47,5,621,24],"tabIndex":27}],["listen","w154",{"KeyDown":true}],["set","w154",{"text":"https://sites.google.com/site/tadpolefordb/home"}],["create","w155","rwt.widgets.Composite",{"parent":"w151","style":["BORDER"],"bounds":[1,36,673,740],"children":["w156"],"tabIndex":-1,"clientArea":[0,0,671,738]}],["create","w156","rwt.widgets.Browser",{"parent":"w155","style":["NONE"],"bounds":[5,5,661,728],"children":[],"tabIndex":29,"url":"https://sites.google.com/site/tadpolefordb/home"}],["create","w157","rwt.widgets.Group",{"parent":"w151","style":["BORDER"],"bounds":[1,777,673,135],"children":["w158","w159","w160","w161","w162","w163"],"tabIndex":-1,"text":"기부자"}],["create","w158","rwt.widgets.Label",{"parent":"w157","style":["NONE"],"appearance":"clabel","markupEnabled":true,"bounds":[8,22,179,75],"children":[],"tabIndex":-1,"image":["rwt-resources/generated/d900d492.png",173,69]}],["create","w159","rwt.widgets.Label",{"parent":"w157","style":["NONE"],"appearance":"clabel","bounds":[192,22,185,75],"children":[],"tabIndex":-1,"image":["rwt-resources/generated/d09b6431.png",179,69]}],["create","w160","rwt.widgets.Label",{"parent":"w157","style":["NONE"],"appearance":"clabel","bounds":[382,22,179,75],"children":[],"tabIndex":-1,"image":["rwt-resources/generated/ab0433e.png",173,69]}],["create","w161","rwt.widgets.Label",{"parent":"w157","style":["NONE"],"appearance":"clabel","markupEnabled":true,"bounds":[8,102,163,21],"children":[],"tabIndex":-1,"text":"http://www.cubrid.org"}],["create","w162","rwt.widgets.Label",{"parent":"w157","style":["NONE"],"appearance":"clabel","markupEnabled":true,"bounds":[192,102,88,21],"children":[],"tabIndex":-1,"text":"www.osci.kr"}],["create","w163","rwt.widgets.Label",{"parent":"w157","style":["NONE"],"appearance":"clabel","markupEnabled":true,"bounds":[382,102,171,21],"children":[],"tabIndex":-1,"text":"http://www.xenonix.com"}],["create","w68","rwt.widgets.CTabFolder",{"parent":"w67","style":["MULTI","BORDER"],"toolTipTexts":["Minimize","Maximize","Restore","Show List","Close"],"bounds":[0,0,681,942],"children":["w75","w77","w69","w70"],"tabIndex":15,"font":[["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false]}],["listen","w68",{"Activate":true,"FocusIn":true,"FocusOut":true,"MenuDetect":true}],["set","w68",{"tabHeight":22,"minimizeBounds":[642,2,18,18],"minimizeVisible":true,"maximizeBounds":[660,2,18,18],"maximizeVisible":true,"selection":"w149","selectionBackground":[76,166,210,255],"selectionForeground":[0,0,0,255],"selectionBackgroundGradient":[[[210,232,243,255],[76,166,210,255]],[0,75],true],"borderVisible":true}],["listen","w68",{"Selection":true,"DefaultSelection":true,"Folder":true}],["create","w149","rwt.widgets.CTabItem",{"parent":"w68","index":0,"style":["CLOSE"],"toolTip":"홈페이지","bounds":[0,0,80,23],"text":"홈페이지","image":["rwt-resources/generated/42eb7c13.png",16,16],"showClose":true}],["create","w75","rwt.widgets.ToolBar",{"parent":"w68","style":["FLAT","HORIZONTAL"],"bounds":[0,0,0,0],"children":[],"tabIndex":16,"visibility":false}],["create","w76","rwt.widgets.ToolItem",{"parent":"w75","style":["PUSH"],"index":0,"bounds":[0,0,19,22],"toolTip":"Menu","visible":false,"image":["rwt-resources/generated/90970f9f.gif",11,16]}],["listen","w76",{"Selection":true}],["create","w77","rwt.widgets.Label",{"parent":"w68","style":["NONE"],"bounds":[0,0,0,0],"tabIndex":-1,"visibility":false}],["listen","w77",{"Activate":true,"MenuDetect":true}],["create","w69","rwt.widgets.Composite",{"parent":"w68","style":["NONE"],"bounds":[80,1,561,22],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,561,22]}],["create","w70","rwt.widgets.Composite",{"parent":"w68","style":["NONE"],"bounds":[3,26,675,913],"children":["w71","w72","w73","w74","w78"],"tabIndex":18}],["listen","w70",{"Activate":true,"MenuDetect":true}],["set","w70",{"clientArea":[0,0,675,913]}],["create","w71","rwt.widgets.Composite",{"parent":"w70","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w72","rwt.widgets.Composite",{"parent":"w70","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w73","rwt.widgets.Composite",{"parent":"w70","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w74","rwt.widgets.Composite",{"parent":"w70","style":["NONE"],"bounds":[-200,-200,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w78","rwt.widgets.Composite",{"parent":"w70","style":["NONE"],"bounds":[0,0,675,913],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,675,913]}],["create","w80","rwt.widgets.CTabFolder",{"parent":"w66","style":["MULTI","BORDER"],"toolTipTexts":["Minimize","Maximize","Restore","Show List","Close"],"bounds":[0,0,292,282],"children":["w87","w89","w81","w82"],"tabIndex":-1,"font":[["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false]}],["listen","w80",{"Activate":true,"FocusIn":true,"FocusOut":true,"MenuDetect":true}],["set","w80",{"tabHeight":22,"minimizeBounds":[253,2,18,18],"minimizeVisible":true,"maximizeBounds":[271,2,18,18],"maximizeVisible":true,"unselectedCloseVisible":false,"selection":"w91","selectionBackground":[255,255,255,255],"selectionForeground":[74,74,74,255],"selectionBackgroundGradient":[[[255,255,255,255],[255,255,255,255]],[0,100],true],"borderVisible":true}],["listen","w80",{"Selection":true,"DefaultSelection":true,"Folder":true}],["create","w91","rwt.widgets.CTabItem",{"parent":"w80","index":0,"style":["NONE"],"bounds":[0,0,95,23],"text":"데이터베이스 목록","image":["rwt-resources/generated/f6e6bd97.png",16,16]}],["create","w87","rwt.widgets.ToolBar",{"parent":"w80","style":["FLAT","HORIZONTAL"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false}],["create","w88","rwt.widgets.ToolItem",{"parent":"w87","style":["PUSH"],"index":0,"bounds":[0,0,19,22],"toolTip":"Menu","visible":false,"image":["rwt-resources/generated/90970f9f.gif",11,16]}],["listen","w88",{"Selection":true}],["create","w89","rwt.widgets.Label",{"parent":"w80","style":["NONE"],"bounds":[0,0,0,0],"tabIndex":-1,"visibility":false}],["listen","w89",{"Activate":true,"MenuDetect":true}],["create","w81","rwt.widgets.Composite",{"parent":"w80","style":["NONE"],"bounds":[95,1,157,22],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,157,22]}],["create","w82","rwt.widgets.Composite",{"parent":"w80","style":["NONE"],"bounds":[3,26,286,253],"children":["w83","w84","w85","w86","w90"],"tabIndex":-1}],["listen","w82",{"Activate":true,"MenuDetect":true}],["set","w82",{"clientArea":[0,0,286,253]}],["create","w83","rwt.widgets.Composite",{"parent":"w82","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w84","rwt.widgets.Composite",{"parent":"w82","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w85","rwt.widgets.Composite",{"parent":"w82","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w86","rwt.widgets.Composite",{"parent":"w82","style":["NONE"],"bounds":[-200,-200,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w90","rwt.widgets.Composite",{"parent":"w82","style":["NONE"],"bounds":[0,0,286,253],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,286,253]}],["create","w105","rwt.widgets.CTabFolder",{"parent":"w66","style":["MULTI","BORDER"],"toolTipTexts":["Minimize","Maximize","Restore","Show List","Close"],"bounds":[0,285,292,657],"children":["w112","w114","w106","w107"],"tabIndex":-1,"font":[["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false]}],["listen","w105",{"Activate":true,"FocusIn":true,"FocusOut":true,"MenuDetect":true}],["set","w105",{"tabHeight":22,"minimizeBounds":[253,2,18,18],"minimizeVisible":true,"maximizeBounds":[271,2,18,18],"maximizeVisible":true,"unselectedCloseVisible":false,"selection":"w116","selectionBackground":[255,255,255,255],"selectionForeground":[74,74,74,255],"selectionBackgroundGradient":[[[255,255,255,255],[255,255,255,255]],[0,100],true],"borderVisible":true}],["listen","w105",{"Selection":true,"DefaultSelection":true,"Folder":true}],["create","w116","rwt.widgets.CTabItem",{"parent":"w105","index":0,"style":["NONE"],"bounds":[0,0,88,23],"text":"오브젝트 탐색기","image":["rwt-resources/generated/54822c43.png",16,16]}],["create","w112","rwt.widgets.ToolBar",{"parent":"w105","style":["FLAT","HORIZONTAL"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false}],["create","w113","rwt.widgets.ToolItem",{"parent":"w112","style":["PUSH"],"index":0,"bounds":[0,0,19,22],"toolTip":"Menu","visible":false,"image":["rwt-resources/generated/90970f9f.gif",11,16]}],["listen","w113",{"Selection":true}],["create","w114","rwt.widgets.Label",{"parent":"w105","style":["NONE"],"bounds":[0,0,0,0],"tabIndex":-1,"visibility":false}],["listen","w114",{"Activate":true,"MenuDetect":true}],["create","w106","rwt.widgets.Composite",{"parent":"w105","style":["NONE"],"bounds":[88,1,164,22],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,164,22]}],["create","w107","rwt.widgets.Composite",{"parent":"w105","style":["NONE"],"bounds":[3,26,286,628],"children":["w108","w109","w110","w111","w115"],"tabIndex":-1}],["listen","w107",{"Activate":true,"MenuDetect":true}],["set","w107",{"clientArea":[0,0,286,628]}],["create","w108","rwt.widgets.Composite",{"parent":"w107","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w109","rwt.widgets.Composite",{"parent":"w107","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w110","rwt.widgets.Composite",{"parent":"w107","style":["NONE"],"bounds":[0,0,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w111","rwt.widgets.Composite",{"parent":"w107","style":["NONE"],"bounds":[-200,-200,0,0],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,0,0]}],["create","w115","rwt.widgets.Composite",{"parent":"w107","style":["NONE"],"bounds":[0,0,286,628],"children":[],"tabIndex":-1,"visibility":false,"clientArea":[0,0,286,628]}],["create","w146","rwt.widgets.Sash",{"parent":"w66","style":["VERTICAL","SMOOTH"],"bounds":[292,0,3,942],"tabIndex":-1}],["create","w147","rwt.widgets.Sash",{"parent":"w66","style":["HORIZONTAL","SMOOTH"],"bounds":[0,282,292,3],"tabIndex":-1}],["set","w1",{"focusControl":"w25"}],["listen","w1",{"Resize":true}],["set","rwt.client.ServerPush",{"active":true}],["set","w1",{"activeKeys":["ALT+#39","CTRL+#45","CTRL+SHIFT+#106","ALT+#34","SHIFT+#45","CTRL+#69","CTRL+#32","ALT+#37","CTRL+SHIFT+#117","CTRL+#117","CTRL+#77","#123","CTRL+#121","ALT+-","CTRL+,","CTRL+.","CTRL+#78","CTRL+#87","CTRL+#119","CTRL+SHIFT+#119","CTRL+SHIFT+#111","ALT+#118","ALT+SHIFT+#118","CTRL+SHIFT+#118","CTRL+#118","CTRL+#89","CTRL+#90","ALT+#13","CTRL+#80","#113","CTRL+SHIFT+#83","CTRL+#83","CTRL+SHIFT+#115","CTRL+SHIFT+#87","CTRL+#115","SHIFT+#46","CTRL+#70","CTRL+SHIFT+#69","CTRL+SHIFT+#32","ALT+#33"],"cancelKeys":["ALT+#39","CTRL+#45","CTRL+SHIFT+#106","ALT+#34","SHIFT+#45","CTRL+#69","CTRL+#32","ALT+#37","CTRL+SHIFT+#117","CTRL+#117","CTRL+#77","#123","CTRL+#121","ALT+-","CTRL+,","CTRL+.","CTRL+#78","CTRL+#87","CTRL+#119","CTRL+SHIFT+#119","CTRL+SHIFT+#111","ALT+#118","ALT+SHIFT+#118","CTRL+SHIFT+#118","CTRL+#118","CTRL+#89","CTRL+#90","ALT+#13","CTRL+#80","#113","CTRL+SHIFT+#83","CTRL+#83","CTRL+SHIFT+#115","CTRL+SHIFT+#87","CTRL+#115","SHIFT+#46","CTRL+#70","CTRL+SHIFT+#69","CTRL+SHIFT+#32","ALT+#33"]}],["call","rwt.client.TextSizeMeasurement","measureItems",{"items":[["t-904310924","필터",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t1439015495","기부자",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t1302237179","www.osci.kr",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,true],["t261035298","[D] Sample SQLite 3.7.2 (@/Users/hangum/Documents/workspace-tadpole-1.0.0/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/configuration/tadpole/db/tadpole-system.db)",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-1640854697","데이터베이스 목록",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-2035080233","URL ",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-1892110009","https://sites.google.com/site/tadpolefordb/home",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-1472933364","[D] Sample MariaDB 5.5 (tester@tester)",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t1761469227","오",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-763994721","http://www.cubrid.org",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,true],["t1756867959","데",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-1328706181","http://www.xenonix.com",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,true],["t-13588908","[D] Sample MongoDB 2.0.2 (@test)",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-767870090","Other Group",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t-327311903","오브젝트 탐색기",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t1712723464","",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t291840547","홈페이지",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t1715414264","Wg",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false],["t881963852","Tables",["Verdana","Lucida Sans","Arial","Helvetica","sans-serif"],12,false,false,-1,false]]}]]}
fileName: http://127.0.0.1:10081/rwt-resources/rap-client.js
lineNumber: 69343
columnNumber: 4
Stack: rwt.remote.MessageProcessor._processError@http://127.0.0.1:10081/rwt-resources/rap-client.js:69343
rwt.remote.MessageProcessor.processOperationArray@http://127.0.0.1:10081/rwt-resources/rap-client.js:69199
rwt.remote.MessageProcessor.processMessage@http://127.0.0.1:10081/rwt-resources/rap-client.js:69161
.members._handleSuccess@http://127.0.0.1:10081/rwt-resources/rap-client.js:69807
@http://127.0.0.1:10081/rwt-resources/rap-client.js:36154
rwt.remote.Request.prototype._onReadyStateChange@http://127.0.0.1:10081/rwt-resources/rap-client.js:36205
.statics.bind/wrap@http://127.0.0.1:10081/rwt-resources/rap-client.js:5725

Debug: on
Request: {"head":{"requestCounter":2},"operations":[["set","w2",{"activeControl":"w13"}],["notify","w13","Selection",{"shiftKey":false,"ctrlKey":false,"altKey":false}],["set","w1",{"cursorLocation":[461,529],"focusControl":"w13"}]]}
Comment 1 Ivan Furnadjiev CLA 2013-06-08 07:25:50 EDT
Please attach a simple snippet to reproduce the issue. Is this happen in all browsers - Firefox, IE8,9,10, Chrome?
Comment 2 Cho HyunJong CLA 2013-06-08 07:41:24 EDT
Created attachment 232125 [details]
rap 2.1 rc3 error
Comment 3 Cho HyunJong CLA 2013-06-08 07:42:28 EDT
oh, sorry.

Rise all browser(ie, safari, chrome, firefox, opera).
Comment 4 Ivan Furnadjiev CLA 2013-06-08 07:53:06 EDT
I can't reproduce it with our Workbench Demo. Please attach a simple self-running project/entry point that demonstrate the problem.
Comment 5 Cho HyunJong CLA 2013-06-08 10:11:16 EDT
I resolve problem.
ActionBarAdvisor Class of fillMenuBar method has commented.
(https://github.com/hangum/TadpoleForDBTools/blob/1.0.0/com.hangum.tadpole.applicaion.start/src/com/hangum/tadpole/application/start/ApplicationActionBarAdvisor.java)
I do not know the root problem.
ex)RAP Mail Template Project is a normal operation.


-------------------------------------------------------------------------
public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
.....

protected void fillMenuBar(IMenuManager menuBar) {
//        MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
//        MenuManager windowMenu = new MenuManager("&Window", IWorkbenchActionConstants.M_WINDOW);
//        MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
//        
//        menuBar.add(fileMenu);
//        
//        menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
//        menuBar.add(windowMenu);
//        
//        // Add a group marker indicating where action set menus will appear.
//        menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
//        menuBar.add(helpMenu);
//        
//        // File
//        fileMenu.add(new Separator());
//        fileMenu.add(saveAction);
////        fileMenu.add(saveAsAction);
//        fileMenu.add(new Separator());
//        fileMenu.add(connectAction);
//        fileMenu.add(new Separator());
//        fileMenu.add(queryOpenAction);
//        fileMenu.add(dbRelationOpenAction);
//        fileMenu.add(deleteResourceAction);
//        fileMenu.add(new Separator());
////        fileMenu.add(exitAction);
//        
//        windowMenu.add(preferenceAction);        
//        //        
//        // Help
//        helpMenu.add(bugIssueAction);
//        helpMenu.add(aboutAction);
    }

...
}
Comment 6 Ivan Furnadjiev CLA 2013-06-08 14:46:36 EDT
Created attachment 232132 [details]
Patch for Workbench Demo to reproduce the issue

This patch sets two things:
- configurer.setShowMenuBar( false )
- add mnemonics to menu bar items
Comment 7 Cho HyunJong CLA 2013-06-08 14:55:38 EDT
thanks.
Comment 8 Ivan Furnadjiev CLA 2013-06-08 15:01:05 EDT
In MnemonicHandler.js#add the root variable is null, because the menu bar is not set on the shell.
You could do two things to workaround the issue:
- not fill the menu bar with items as you don't use menu bar (you already did this by commenting the code in ActionBarAdvisor#fillMenuBar)
- remove the mnemonic character (&) from the menu items text
Comment 9 Cho HyunJong CLA 2013-06-08 15:23:19 EDT
Thanks advice.

In my opinion,
To reduce user error, the above method can hope is wrong, even when running.
v1.x, v2.0've got the normal behavior.
Comment 10 Tim Buschtoens CLA 2013-08-16 09:05:10 EDT
Fixed with commit 30111ce9b2f626052b0ebfe2318cf6219271dc04.

This only prevents the crash, but the menu bar can never react to menmonics anymore since it's not registered. That would require a bigger refactoring, but this fix is more suitable for a service release.
Comment 11 Ivan Furnadjiev CLA 2013-08-16 09:45:52 EDT
Tim, how the real fix will look like? Is it so complex for a SR? I thought something about attaching the handler on widget "appear" event in case of null root.
Comment 12 Tim Buschtoens CLA 2013-08-16 11:38:46 EDT
The "real" fix would be to not register menu items at all, but instead look for the menubar when the mnemonics are triggered. This would streamline the code quite a bit, but touch on many places.
Comment 13 Ivan Furnadjiev CLA 2013-08-16 11:47:26 EDT
(In reply to comment #12)
> The "real" fix would be to not register menu items at all, but instead look
> for the menubar when the mnemonics are triggered. This would streamline the
> code quite a bit, but touch on many places.

OK than... +1 for preventing the crash in 2.1.1.
Comment 14 Tim Buschtoens CLA 2013-08-16 12:10:02 EDT
Applied changes to streams/2.1-maintenance with commit f50d5380f4f71a2d3948cd5855f627c3b4aafb36
Comment 15 Tim Buschtoens CLA 2013-08-20 10:53:53 EDT
*** Bug 415491 has been marked as a duplicate of this bug. ***