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

Bug 486830

Summary: Error after reloading a page in Chrome
Product: [RT] RAP Reporter: Michael Wirth <mwirth>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Wirth CLA 2016-01-29 09:56:40 EST
In method IApplication#start open a new shell.

    ....
    final Shell loginShell = new Shell(display, SWT.NO_TRIM);
    new Label(loginShell, SWT.NONE).setText("Login");
    loginShell.open();
    ....

The first load of the page is ok, after reloading the page the following error occurs. This happens in Chrome on Mac OS X. In Safari and Thunderbird there is no error

Error: Error: Operation "create" on target "w2" of type "null" failed:
Cannot read property 'width' of undefined
Properties: 
style = NO_TRIM


  Script: {"head":{"cid":"c00b4b15"},"operations":[["create","w2","rwt.widgets.Shell",{"style":["NO_TRIM"]}],["listen","w2",{"Move":true,"Resize":true,"Activate":true,"Close":true}],["set","w2",{"active":true,"minimumSize":[30,0],"activeControl":"w3","children":["w3"],"bounds":[0,0,574,408],"visibility":true}],["create","w3","rwt.widgets.Label",{"parent":"w2","style":["NONE"],"bounds":[0,0,0,0],"text":"HALLO"}],["set","w1",{"focusControl":"w3"}],["set","rwt.client.ClientMessages",{"messages":{"ServerError":"Server Error","ServerErrorDescription":"The application terminated unexpectedly.","ConnectionError":"Network Error","ConnectionErrorDescription":"The server seems to be temporarily unavailable.","SessionTimeout":"Session Timeout","SessionTimeoutDescription":"The server session timed out.","ClientError":"Client Error","Retry":"Retry","Restart":"Restart","Details":"Details:"}}]]}
  Stack: Error: Operation "create" on target "w2" of type "null" failed:
Cannot read property 'width' of undefined
Properties: 
style = NO_TRIM

    at Object.rwt.remote.MessageProcessor._processError (http://localhost:9092/rwt-resources/rap-client.js:226:3803)
    at Object.rwt.remote.MessageProcessor.processOperationArray (http://localhost:9092/rwt-resources/rap-client.js:226:920)
    at Object.rwt.remote.MessageProcessor.processMessage (http://localhost:9092/rwt-resources/rap-client.js:226:249)
    at rwt.qx.Class.define.members._handleSuccess (http://localhost:9092/rwt-resources/rap-client.js:230:3428)
    at Object._success (http://localhost:9092/rwt-resources/rap-client.js:98:949)
    at Object.rwt.remote.Request._onReadyStateChange (http://localhost:9092/rwt-resources/rap-client.js:98:1708)
    at XMLHttpRequest. (http://localhost:9092/rwt-resources/rap-client.js:7:219)
  Debug: off
  Request: {"head":{"requestCounter":0},"operations":[["set","w1",{"bounds":[0,0,958,680],"dpi":[96,96],"colorDepth":24}],["set","rwt.client.ClientInfo",{"timezoneOffset":-60}],["set","w1",{"cursorLocation":[0,0]}]]}
  Phase: 2
Comment 1 Ivan Furnadjiev CLA 2016-01-29 10:04:07 EST
.

*** This bug has been marked as a duplicate of bug 486701 ***