Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » TabFolders in RAP crash(Rap crashes using complex TabFolder/TabItem structure)
TabFolders in RAP crash [message #1063540] Thu, 13 June 2013 11:52 Go to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
Hi RAP team!

I'm converting my support for TabFolders/TabItems from SWT to RAP now (works ok in SWT), but when adding content to my Tab I get a crash visible on the browser. In this case I was trying to add a Button, which is within a Composite, which is in a ScrolledComposite, which is inside the Tab.

Can you please help identify where I should be looking, as I do not understand the error message?

Here is the message from Chrome:
HomeGuardIEn WebCR
Client Error

Details:

Error: Error: Operation "create" on target "w39" of type "rwt.widgets.Button" failed:
Cannot call method 'toHashCode' of null
Properties: 
parent = w21
style = PUSH
bounds = 1009,51,150,32
tabIndex = 10
enabled = false
font = Verdana,13,false,false
text = Sign in
mnemonicIndex = 0


  Script: {"head":{"requestCounter":2},"operations":[["destroy","w18"],["set","w3",{"defaultButton":"w39","activeControl":"w37"}],["set","w7",{"children":["w20"],"background":[255,255,255,255]}],["create","w20","rwt.widgets.ScrolledComposite",{"parent":"w7","style":["NONE"],"bounds":[1,33,1182,710],"children":["w21"],"tabIndex":4,"background":[255,255,255,255],"content":"w21"}],["create","w21","rwt.widgets.Composite",{"parent":"w20","style":["BORDER"],"bounds":[0,0,1182,710],"children":["w22","w25","w27","w32","w34","w36","w39","w40","w41","w42","w43","w45","w50","w52","w57","w59","w62","w63","w64"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,1180,708]}],["create","w22","rwt.widgets.Canvas",{"parent":"w21","style":["BORDER"]}],["create","gc67","rwt.widgets.GC",{"parent":"w22"}],["set","w22",{"bounds":[0,678,1180,30],"children":["w23"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,1178,28]}],["create","w23","rwt.widgets.Composite",{"parent":"w22","style":["NONE"],"bounds":[6,5,984,18],"children":["w24"],"tabIndex":-1,"background":[236,233,216,255],"clientArea":[0,0,984,18]}],["create","w24","rwt.widgets.Label",{"parent":"w23","style":["WRAP"],"bounds":[0,0,984,18],"tabIndex":-1,"foreground":[0,0,0,255],"background":[236,233,216,255],"font":[["Verdana"],13,false,false],"text":"© Copyright 2011-2013, Information Engineering Technology Ltd, All Rights Reserved"}],["create","w25","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[565,53,82,30],"children":["w26"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,82,30]}],["create","w26","rwt.widgets.Label",{"parent":"w25","style":["NONE"],"bounds":[0,0,82,18],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":"Userid"}],["create","w27","rwt.widgets.Composite",{"parent":"w21","style":["BORDER"],"bounds":[656,54,118,30],"children":["w28"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,116,28]}],["create","w29","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[774,54,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w28","rwt.widgets.Text",{"parent":"w27","style":["LEFT","SINGLE"],"bounds":[0,0,116,28],"tabIndex":7,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false]}],["listen","w28",{"FocusIn":true,"FocusOut":true,"Modify":true}],["create","w32","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[12,45,200,200],"children":["w33"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,200,200]}],["create","w33","rwt.widgets.Label",{"parent":"w32","style":["WRAP"],"bounds":[0,0,200,200],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"image":["rwt-resources/generated/b7696c63.png",200,199],"alignment":"center"}],["create","w34","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[787,53,85,30],"children":["w35"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,85,30]}],["create","w35","rwt.widgets.Label",{"parent":"w34","style":["NONE"],"bounds":[0,0,85,18],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":"Password"}],["create","w36","rwt.widgets.Composite",{"parent":"w21","style":["BORDER"],"bounds":[880,54,118,30],"children":["w37"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,116,28]}],["create","w38","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[998,54,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w37","rwt.widgets.Text",{"parent":"w36","style":["LEFT","SINGLE","PASSWORD"],"bounds":[0,0,116,28],"tabIndex":9,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false]}],["listen","w37",{"FocusIn":true,"FocusOut":true}],["set","w37",{"echoChar":"?"}],["listen","w37",{"Modify":true}],["create","w39","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1009,51,150,32],"tabIndex":10,"enabled":false,"font":[["Verdana"],13,false,false],"text":"Sign in","mnemonicIndex":0}],["listen","w39",{"Selection":true}],["create","w40","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1009,91,150,32],"tabIndex":11,"enabled":false,"font":[["Verdana"],13,false,false],"text":"Sign out","mnemonicIndex":5}],["listen","w40",{"Selection":true}],["create","w41","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1009,131,150,32],"tabIndex":12,"foreground":[0,0,0,255],"font":[["Verdana"],13,false,false],"text":"Change Password...","mnemonicIndex":7}],["listen","w41",{"Selection":true}],["create","w42","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1009,171,150,32],"tabIndex":13,"enabled":false,"font":[["Verdana"],13,false,false],"text":"Change Project...","mnemonicIndex":1}],["listen","w42",{"Selection":true}],["create","w43","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[760,95,115,30],"children":["w44"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,115,30]}],["create","w44","rwt.widgets.Label",{"parent":"w43","style":["NONE"],"bounds":[0,0,115,16],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false],"text":"Signed in as"}],["create","w45","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[885,95,118,30],"children":["w46"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,118,30]}],["create","w47","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[1003,95,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w46","rwt.widgets.Text",{"parent":"w45","style":["LEFT","SINGLE"],"bounds":[0,0,118,30],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false]}],["listen","w46",{"FocusIn":true,"FocusOut":true}],["set","w46",{"editable":false}],["listen","w46",{"Modify":true}],["create","w50","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[760,135,115,30],"children":["w51"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,115,30]}],["create","w51","rwt.widgets.Label",{"parent":"w50","style":["NONE"],"bounds":[0,0,115,16],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false],"text":"Current Project"}],["create","w52","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[885,135,118,30],"children":["w53"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,118,30]}],["create","w54","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[1003,135,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w53","rwt.widgets.Text",{"parent":"w52","style":["LEFT","SINGLE"],"bounds":[0,0,118,30],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false]}],["listen","w53",{"FocusIn":true,"FocusOut":true}],["set","w53",{"editable":false}],["listen","w53",{"Modify":true}],["create","w57","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[760,175,115,30],"children":["w58"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,115,30]}],["create","w58","rwt.widgets.Label",{"parent":"w57","style":["NONE"],"bounds":[0,0,115,16],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false],"text":"Release"}],["create","w59","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[885,175,118,30],"children":["w60"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,118,30]}],["create","w61","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[1003,175,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w60","rwt.widgets.Text",{"parent":"w59","style":["LEFT","SINGLE"],"bounds":[0,0,118,30],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false]}],["listen","w60",{"FocusIn":true,"FocusOut":true}],["set","w60",{"editable":false}],["listen","w60",{"Modify":true}],["create","w62","rwt.widgets.Link",{"parent":"w21","style":["NONE"],"bounds":[24,255,178,24],"tabIndex":14,"toolTip":"http://www.iet.co.uk","foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":[["Visit the IET website",0]]}],["listen","w62",{"Selection":true}],["create","w63","rwt.widgets.Link",{"parent":"w21","style":["NONE"],"bounds":[20,279,195,24],"tabIndex":314,"toolTip":"IET/Doc/R81/WebCR/NetHelp/default.htm","foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":[["GuardIEn WebCR Help",0]]}],["listen","w63",{"Selection":true}],["create","w64","rwt.widgets.Button",{"parent":"w21","style":["CHECK"],"bounds":[368,-93,128,24],"tabIndex":-1,"visibility":false,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":"Login Validated","alignment":"left"}],["create","w65","rwt.widgets.Shell",{"style":["NO_TRIM","APPLICATION_MODAL"]}],["listen","w65",{"Move":true,"Resize":true,"Activate":true,"Close":true}],["set","w65",{"alpha":128,"active":true,"minimumSize":[80,0],"activeControl":"w66","bounds":[562,363,80,80],"children":["w66"],"tabIndex":-1,"visibility":true}],["create","w66","rwt.widgets.Label",{"parent":"w65","style":["NONE"],"bounds":[24,24,32,32],"tabIndex":-1,"image":["rwt-resources/generated/ceac24be.gif",32,32]}],["set","w1",{"focusControl":"w66"}],["call","rwt.client.JavaScriptExecutor","execute",{"content":"document.title = \"Home - Logon\""}],["create","r30","rwt.clientscripting.Listener",{"code":"var handleEvent = function( event ) {\n\n  if( event.keyCode === 0 && event.text.length > 1 ) {\n    event.text = \"dont paste here!\";\n  } else {\n    event.text = event.text.toUpperCase();\n  }\n\n};\n"}],["create","r31","rwt.clientscripting.EventBinding",{"listener":"r30","targetObject":"w28","eventType":"Verify"}],["create","r48","rwt.clientscripting.Listener",{"code":"var handleEvent = function( event ) {\n\n  if( event.keyCode === 0 && event.text.length > 1 ) {\n    event.text = \"dont paste here!\";\n  } else {\n    event.text = event.text.toUpperCase();\n  }\n\n};\n"}],["create","r49","rwt.clientscripting.EventBinding",{"listener":"r48","targetObject":"w46","eventType":"Verify"}],["create","r55","rwt.clientscripting.Listener",{"code":"var handleEvent = function( event ) {\n\n  if( event.keyCode === 0 && event.text.length > 1 ) {\n    event.text = \"dont paste here!\";\n  } else {\n    event.text = event.text.toUpperCase();\n  }\n\n};\n"}],["create","r56","rwt.clientscripting.EventBinding",{"listener":"r55","targetObject":"w53","eventType":"Verify"}],["call","rwt.client.TextSizeMeasurement","measureItems",{"items":[["t-797502566","Sign &out",["Verdana"],13,false,false,-1,false],["t-137828831","GuardIEn WebCR Help",["Verdana"],13,false,false,191,false],["t994873510","Login Validated",["Verdana"],13,false,false,-1,false],["t548570993","&Sign in",["Verdana"],13,false,false,-1,false],["t100823929","Signed in as",["Verdana"],11,false,false,-1,false],["t-1539717822","Current Project",["Verdana"],11,false,false,-1,false],["t-1451704137","Release",["Verdana"],11,false,false,-1,false],["t-50315504","Visit the IET website",["Verdana"],13,false,false,174,false],["t-305364853","Password",["Verdana"],13,false,false,-1,false],["t502712662","Userid",["Verdana"],13,false,false,-1,false],["t-66384268","C&hange Project...",["Verdana"],13,false,false,-1,false],["t8862137","© Copyright 2011-2013, Information Engineering Technology Ltd, All Rights Reserved",["Verdana"],13,false,false,984,false],["t1852796300","Change &Password...",["Verdana"],13,false,false,-1,false]]}]]}
  Stack: Error: Operation "create" on target "w39" of type "rwt.widgets.Button" failed:
Cannot call method 'toHashCode' of null
Properties: 
parent = w21
style = PUSH
bounds = 1009,51,150,32
tabIndex = 10
enabled = false
font = Verdana,13,false,false
text = Sign in
mnemonicIndex = 0

    at Object.rwt.remote.MessageProcessor._processError (http://127.0.0.1:9090/rwt-resources/rap-client.js:69354:11)
    at Object.rwt.remote.MessageProcessor.processOperationArray (http://127.0.0.1:9090/rwt-resources/rap-client.js:69210:12)
    at Object.rwt.remote.MessageProcessor.processMessage (http://127.0.0.1:9090/rwt-resources/rap-client.js:69172:12)
    at rwt.qx.Class.define.members._handleSuccess (http://127.0.0.1:9090/rwt-resources/rap-client.js:69818:19)
    at Object._success (http://127.0.0.1:9090/rwt-resources/rap-client.js:36146:43)
    at Object.rwt.remote.Request._onReadyStateChange (http://127.0.0.1:9090/rwt-resources/rap-client.js:36197:18)
    at XMLHttpRequest.wrap (http://127.0.0.1:9090/rwt-resources/rap-client.js:5725:25)
  Debug: on
  Request: {"head":{"requestCounter":1},"operations":[["set","w3",{"mode":"maximized"}],["call","rwt.client.TextSizeMeasurement","storeMeasurements",{"results":{"t1170656552":[202,25],"t-1423881778":[36,16]}}],["set","w1",{"cursorLocation":[0,0]}]]}


Here is the same message from IE10:

     















Home





GuardIEn WebCR








Client Error

Details:

--------------------------------------------------------------------------------
Error: Error: Operation "create" on target "w39" of type "rwt.widgets.Button" failed:
Unable to get property 'toHashCode' of undefined or null reference
Properties: 
parent = w21
style = PUSH
bounds = 1084,51,150,32
tabIndex = 10
enabled = false
font = Verdana,13,false,false
text = Sign in
mnemonicIndex = 0


  Script: {"head":{"requestCounter":2},"operations":[["destroy","w18"],["set","w3",{"defaultButton":"w39","activeControl":"w37"}],["set","w7",{"children":["w20"],"background":[255,255,255,255]}],["create","w20","rwt.widgets.ScrolledComposite",{"parent":"w7","style":["NONE"],"bounds":[1,33,1257,843],"children":["w21"],"tabIndex":4,"background":[255,255,255,255],"content":"w21"}],["create","w21","rwt.widgets.Composite",{"parent":"w20","style":["BORDER"],"bounds":[0,0,1257,843],"children":["w22","w25","w27","w32","w34","w36","w39","w40","w41","w42","w43","w45","w50","w52","w57","w59","w62","w63","w64"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,1255,841]}],["create","w22","rwt.widgets.Canvas",{"parent":"w21","style":["BORDER"]}],["create","gc67","rwt.widgets.GC",{"parent":"w22"}],["set","w22",{"bounds":[0,811,1255,30],"children":["w23"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,1253,28]}],["create","w23","rwt.widgets.Composite",{"parent":"w22","style":["NONE"],"bounds":[6,5,984,18],"children":["w24"],"tabIndex":-1,"background":[236,233,216,255],"clientArea":[0,0,984,18]}],["create","w24","rwt.widgets.Label",{"parent":"w23","style":["WRAP"],"bounds":[0,0,984,18],"tabIndex":-1,"foreground":[0,0,0,255],"background":[236,233,216,255],"font":[["Verdana"],13,false,false],"text":"© Copyright 2011-2013, Information Engineering Technology Ltd, All Rights Reserved"}],["create","w25","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[640,53,82,30],"children":["w26"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,82,30]}],["create","w26","rwt.widgets.Label",{"parent":"w25","style":["NONE"],"bounds":[0,0,82,18],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":"Userid"}],["create","w27","rwt.widgets.Composite",{"parent":"w21","style":["BORDER"],"bounds":[731,54,118,30],"children":["w28"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,116,28]}],["create","w29","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[849,54,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w28","rwt.widgets.Text",{"parent":"w27","style":["LEFT","SINGLE"],"bounds":[0,0,116,28],"tabIndex":7,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false]}],["listen","w28",{"FocusIn":true,"FocusOut":true,"Modify":true}],["create","w32","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[12,45,200,200],"children":["w33"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,200,200]}],["create","w33","rwt.widgets.Label",{"parent":"w32","style":["WRAP"],"bounds":[0,0,200,200],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"image":["rwt-resources/generated/b7696c63.png",200,199],"alignment":"center"}],["create","w34","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[862,53,85,30],"children":["w35"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,85,30]}],["create","w35","rwt.widgets.Label",{"parent":"w34","style":["NONE"],"bounds":[0,0,85,18],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":"Password"}],["create","w36","rwt.widgets.Composite",{"parent":"w21","style":["BORDER"],"bounds":[955,54,118,30],"children":["w37"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,116,28]}],["create","w38","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[1073,54,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w37","rwt.widgets.Text",{"parent":"w36","style":["LEFT","SINGLE","PASSWORD"],"bounds":[0,0,116,28],"tabIndex":9,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false]}],["listen","w37",{"FocusIn":true,"FocusOut":true}],["set","w37",{"echoChar":"?"}],["listen","w37",{"Modify":true}],["create","w39","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1084,51,150,32],"tabIndex":10,"enabled":false,"font":[["Verdana"],13,false,false],"text":"Sign in","mnemonicIndex":0}],["listen","w39",{"Selection":true}],["create","w40","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1084,91,150,32],"tabIndex":11,"enabled":false,"font":[["Verdana"],13,false,false],"text":"Sign out","mnemonicIndex":5}],["listen","w40",{"Selection":true}],["create","w41","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1084,131,150,32],"tabIndex":12,"foreground":[0,0,0,255],"font":[["Verdana"],13,false,false],"text":"Change Password...","mnemonicIndex":7}],["listen","w41",{"Selection":true}],["create","w42","rwt.widgets.Button",{"parent":"w21","style":["PUSH"],"bounds":[1084,171,150,32],"tabIndex":13,"enabled":false,"font":[["Verdana"],13,false,false],"text":"Change Project...","mnemonicIndex":1}],["listen","w42",{"Selection":true}],["create","w43","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[835,95,115,30],"children":["w44"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,115,30]}],["create","w44","rwt.widgets.Label",{"parent":"w43","style":["NONE"],"bounds":[0,0,115,16],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false],"text":"Signed in as"}],["create","w45","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[960,95,118,30],"children":["w46"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,118,30]}],["create","w47","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[1078,95,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w46","rwt.widgets.Text",{"parent":"w45","style":["LEFT","SINGLE"],"bounds":[0,0,118,30],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false]}],["listen","w46",{"FocusIn":true,"FocusOut":true}],["set","w46",{"editable":false}],["listen","w46",{"Modify":true}],["create","w50","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[835,135,115,30],"children":["w51"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,115,30]}],["create","w51","rwt.widgets.Label",{"parent":"w50","style":["NONE"],"bounds":[0,0,115,16],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false],"text":"Current Project"}],["create","w52","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[960,135,118,30],"children":["w53"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,118,30]}],["create","w54","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[1078,135,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w53","rwt.widgets.Text",{"parent":"w52","style":["LEFT","SINGLE"],"bounds":[0,0,118,30],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false]}],["listen","w53",{"FocusIn":true,"FocusOut":true}],["set","w53",{"editable":false}],["listen","w53",{"Modify":true}],["create","w57","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[835,175,115,30],"children":["w58"],"tabIndex":-1,"background":[255,255,255,255],"clientArea":[0,0,115,30]}],["create","w58","rwt.widgets.Label",{"parent":"w57","style":["NONE"],"bounds":[0,0,115,16],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false],"text":"Release"}],["create","w59","rwt.widgets.Composite",{"parent":"w21","style":["NONE"],"bounds":[960,175,118,30],"children":["w60"],"tabIndex":-1,"background":[0,0,0,0],"clientArea":[0,0,118,30]}],["create","w61","rwt.widgets.ControlDecorator",{"parent":"w21","style":["TOP","RIGHT"],"bounds":[1078,175,7,8],"text":"Input validation error","image":["rwt-resources/generated/9f835836.gif",7,8]}],["create","w60","rwt.widgets.Text",{"parent":"w59","style":["LEFT","SINGLE"],"bounds":[0,0,118,30],"tabIndex":-1,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],11,false,false]}],["listen","w60",{"FocusIn":true,"FocusOut":true}],["set","w60",{"editable":false}],["listen","w60",{"Modify":true}],["create","w62","rwt.widgets.Link",{"parent":"w21","style":["NONE"],"bounds":[24,255,178,24],"tabIndex":14,"toolTip":"http://www.iet.co.uk","foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":[["Visit the IET website",0]]}],["listen","w62",{"Selection":true}],["create","w63","rwt.widgets.Link",{"parent":"w21","style":["NONE"],"bounds":[20,279,195,24],"tabIndex":314,"toolTip":"IET/Doc/R81/WebCR/NetHelp/default.htm","foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":[["GuardIEn WebCR Help",0]]}],["listen","w63",{"Selection":true}],["create","w64","rwt.widgets.Button",{"parent":"w21","style":["CHECK"],"bounds":[368,-93,128,24],"tabIndex":-1,"visibility":false,"foreground":[0,0,0,255],"background":[255,255,255,255],"font":[["Verdana"],13,false,false],"text":"Login Validated","alignment":"left"}],["create","w65","rwt.widgets.Shell",{"style":["NO_TRIM","APPLICATION_MODAL"]}],["listen","w65",{"Move":true,"Resize":true,"Activate":true,"Close":true}],["set","w65",{"alpha":128,"active":true,"minimumSize":[80,0],"activeControl":"w66","bounds":[600,430,80,80],"children":["w66"],"tabIndex":-1,"visibility":true}],["create","w66","rwt.widgets.Label",{"parent":"w65","style":["NONE"],"bounds":[24,24,32,32],"tabIndex":-1,"image":["rwt-resources/generated/ceac24be.gif",32,32]}],["set","w1",{"focusControl":"w66"}],["call","rwt.client.JavaScriptExecutor","execute",{"content":"document.title = \"Home - Logon\""}],["create","r30","rwt.clientscripting.Listener",{"code":"var handleEvent = function( event ) {\n\n  if( event.keyCode === 0 && event.text.length > 1 ) {\n    event.text = \"dont paste here!\";\n  } else {\n    event.text = event.text.toUpperCase();\n  }\n\n};\n"}],["create","r31","rwt.clientscripting.EventBinding",{"listener":"r30","targetObject":"w28","eventType":"Verify"}],["create","r48","rwt.clientscripting.Listener",{"code":"var handleEvent = function( event ) {\n\n  if( event.keyCode === 0 && event.text.length > 1 ) {\n    event.text = \"dont paste here!\";\n  } else {\n    event.text = event.text.toUpperCase();\n  }\n\n};\n"}],["create","r49","rwt.clientscripting.EventBinding",{"listener":"r48","targetObject":"w46","eventType":"Verify"}],["create","r55","rwt.clientscripting.Listener",{"code":"var handleEvent = function( event ) {\n\n  if( event.keyCode === 0 && event.text.length > 1 ) {\n    event.text = \"dont paste here!\";\n  } else {\n    event.text = event.text.toUpperCase();\n  }\n\n};\n"}],["create","r56","rwt.clientscripting.EventBinding",{"listener":"r55","targetObject":"w53","eventType":"Verify"}],["call","rwt.client.TextSizeMeasurement","measureItems",{"items":[["t-797502566","Sign &out",["Verdana"],13,false,false,-1,false],["t-137828831","GuardIEn WebCR Help",["Verdana"],13,false,false,191,false],["t994873510","Login Validated",["Verdana"],13,false,false,-1,false],["t548570993","&Sign in",["Verdana"],13,false,false,-1,false],["t100823929","Signed in as",["Verdana"],11,false,false,-1,false],["t-1539717822","Current Project",["Verdana"],11,false,false,-1,false],["t-1451704137","Release",["Verdana"],11,false,false,-1,false],["t-50315504","Visit the IET website",["Verdana"],13,false,false,174,false],["t-305364853","Password",["Verdana"],13,false,false,-1,false],["t502712662","Userid",["Verdana"],13,false,false,-1,false],["t-66384268","C&hange Project...",["Verdana"],13,false,false,-1,false],["t8862137","© Copyright 2011-2013, Information Engineering Technology Ltd, All Rights Reserved",["Verdana"],13,false,false,984,false],["t1852796300","Change &Password...",["Verdana"],13,false,false,-1,false]]}]]}
  description: Operation "create" on target "w39" of type "rwt.widgets.Button" failed:
Unable to get property 'toHashCode' of undefined or null reference
Properties: 
parent = w21
style = PUSH
bounds = 1084,51,150,32
tabIndex = 10
enabled = false
font = Verdana,13,false,false
text = Sign in
mnemonicIndex = 0

  stack: Error: Operation "create" on target "w39" of type "rwt.widgets.Button" failed:
Unable to get property 'toHashCode' of undefined or null reference
Properties: 
parent = w21
style = PUSH
bounds = 1084,51,150,32
tabIndex = 10
enabled = false
font = Verdana,13,false,false
text = Sign in
mnemonicIndex = 0

   at _processError (http://127.0.0.1:9090/rwt-resources/rap-client.js:69354:5)
   at processOperationArray (http://127.0.0.1:9090/rwt-resources/rap-client.js:69210:7)
   at processMessage (http://127.0.0.1:9090/rwt-resources/rap-client.js:69172:7)
   at _handleSuccess (http://127.0.0.1:9090/rwt-resources/rap-client.js:69818:9)
   at _success (http://127.0.0.1:9090/rwt-resources/rap-client.js:36146:35)
   at _onReadyStateChange (http://127.0.0.1:9090/rwt-resources/rap-client.js:36197:13)
   at wrap (http://127.0.0.1:9090/rwt-resources/rap-client.js:5725:11)
  Stack: Error: Operation "create" on target "w39" of type "rwt.widgets.Button" failed:
Unable to get property 'toHashCode' of undefined or null reference
Properties: 
parent = w21
style = PUSH
bounds = 1084,51,150,32
tabIndex = 10
enabled = false
font = Verdana,13,false,false
text = Sign in
mnemonicIndex = 0

   at _processError (http://127.0.0.1:9090/rwt-resources/rap-client.js:69354:5)
   at processOperationArray (http://127.0.0.1:9090/rwt-resources/rap-client.js:69210:7)
   at processMessage (http://127.0.0.1:9090/rwt-resources/rap-client.js:69172:7)
   at _handleSuccess (http://127.0.0.1:9090/rwt-resources/rap-client.js:69818:9)
   at _success (http://127.0.0.1:9090/rwt-resources/rap-client.js:36146:35)
   at _onReadyStateChange (http://127.0.0.1:9090/rwt-resources/rap-client.js:36197:13)
   at wrap (http://127.0.0.1:9090/rwt-resources/rap-client.js:5725:11)
  Debug: on
  Request: {"head":{"requestCounter":1},"operations":[["set","w3",{"mode":"maximized"}],["call","rwt.client.TextSizeMeasurement","storeMeasurements",{"results":{"t1170656552":[204,26],"t-1423881778":[39,16]}}],["set","w1",{"cursorLocation":[0,0]}]]}


It is probably something I'm doing in my code, but it works ok in SWT, so I expected it would work in RAP too.

I am using latest Nightly RAP build rap-2.1.0-N-20130611-2249.

Thanks, as always, John


---
Just because you can doesn't mean you should
Re: TabFolders in RAP crash [message #1063556 is a reply to message #1063540] Thu, 13 June 2013 12:08 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
It think this is related to not using TabItem.setControl() and TabItem.setData() methods... for SWT I am recreating the content of the TabFolder each time the tab is switched (yes, I know... not exactly how they were intended)... so the content of the Tab is associated to the TabFolder (as normal), but I'm not bothering with TabItem.setControl/setData. The tab buttons are basically only being used to change the complete content of the TabFolder, rather than actually being used to switch content. I think maybe I'm making use of a loophole in SWT's implementation of TabFolder/TabItem, but in fact is not a very standard way to do things... and perhaps RAP does not like it unless I use setControl/setData?
J


---
Just because you can doesn't mean you should
Re: TabFolders in RAP crash [message #1063608 is a reply to message #1063556] Thu, 13 June 2013 13:49 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi John,
please remove the mnemonic ( & ) from the Button text. Does it fixes the
problem?
Best,
Ivan

On 6/13/2013 3:08 PM, John Gymer wrote:
> It think this is related to not using TabItem.setControl() and
> TabItem.setData() methods... for SWT I am recreating the content of
> the TabFolder each time the tab is switched (yes, I know... not
> exactly how they were intended)... so the content of the Tab is
> associated to the TabFolder (as normal), but I'm not bothering with
> TabItem.setControl/setData. The tab buttons are basically only being
> used to change the complete content of the TabFolder, rather than
> actually being used to switch content. I think maybe I'm making use
> of a loophole in SWT's implementation of TabFolder/TabItem, but in
> fact is not a very standard way to do things... and perhaps RAP does
> not like it unless I use setControl/setData?
> J
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Table setTopIndex() problem
Next Topic:Logout (RAP 2.1)
Goto Forum:
  


Current Time: Thu Apr 25 02:03:38 GMT 2024

Powered by FUDForum. Page generated in 0.03368 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top