Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Client error Text and V_SCROLL / H_SCROLL
Client error Text and V_SCROLL / H_SCROLL [message #1716441] Thu, 03 December 2015 20:46 Go to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 221
Registered: February 2011
Senior Member
I've just tried upgrading from 2.3.2 to 3.1.0-M3

What worked fine in 2.3.2, new Text(SWT.MULTI | SWT.V_SCROLL) now results in a client error

Error: Error: Operation "create" on target "w4" of type "null" failed:
Error in property parent of class rwt.widgets.base.ScrollBar in method setParent with incoming value '[object rwt.widgets.Text]': Is invalid!
Properties: 
parent = w3
style = VERTICAL


  Script: {"head":{"cid":"29695189"},"operations":[["create","w2","rwt.widgets.Shell",{"style":["NO_TRIM"]}],["listen","w2",{"Move":true,"Resize":true,"Activate":true,"Close":true}],["set","w2",{"mode":"maximized","minimumSize":[30,0],"children":["w3"],"bounds":[0,0,1440,805],"visibility":true,"background":[100,100,100,255]}],["create","w3","rwt.widgets.Text",{"parent":"w2","style":["LEFT","MULTI","V_SCROLL","BORDER"],"bounds":[5,5,1430,795],"tabIndex":1}],["create","w4","rwt.widgets.ScrollBar",{"parent":"w3","style":["VERTICAL"]}],["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:"}}],["call","rwt.client.TextSizeMeasurement","measureItems",{"items":[["p1062029547","!#$%&()*+,-./0123456789:;<=>?@AzByCxDwEvFuGtHsIrJqKpLoMnNmOlPkQjRiShTgUfVeWdXcYbZa[\\]^_`",["Segoe UI","Corbel","Calibri","Tahoma","Lucida Sans Unicode","sans-serif"],11,false,false,-1,true],["t-2100911464","",["Segoe UI","Corbel","Calibri","Tahoma","Lucida Sans Unicode","sans-serif"],11,false,false,-1,false]]}]]}
  description: Operation "create" on target "w4" of type "null" failed:
Error in property parent of class rwt.widgets.base.ScrollBar in method setParent with incoming value '[object rwt.widgets.Text]': Is invalid!
Properties: 
parent = w3
style = VERTICAL

  stack: Error: Operation "create" on target "w4" of type "null" failed:
Error in property parent of class rwt.widgets.base.ScrollBar in method setParent with incoming value '[object rwt.widgets.Text]': Is invalid!
Properties: 
parent = w3
style = VERTICAL

   at rwt.remote.MessageProcessor._processError (http://localhost:8088/rwt-resources/rap-client.js:61943:5)
   at rwt.remote.MessageProcessor.processOperationArray (http://localhost:8088/rwt-resources/rap-client.js:61784:7)
   at rwt.remote.MessageProcessor.processMessage (http://localhost:8088/rwt-resources/rap-client.js:61736:7)
   at members._handleSuccess (http://localhost:8088/rwt-resources/rap-client.js:62420:9)
   at _success (http://localhost:8088/rwt-resources/rap-client.js:31487:35)
   at rwt.remote.Request.prototype._onReadyStateChange (http://localhost:8088/rwt-resources/rap-client.js:31538:13)
   at Anonymous function (http://localhost:8088/rwt-resources/rap-client.js:624:7)
  Stack: Error: Operation "create" on target "w4" of type "null" failed:
Error in property parent of class rwt.widgets.base.ScrollBar in method setParent with incoming value '[object rwt.widgets.Text]': Is invalid!
Properties: 
parent = w3
style = VERTICAL

   at rwt.remote.MessageProcessor._processError (http://localhost:8088/rwt-resources/rap-client.js:61943:5)
   at rwt.remote.MessageProcessor.processOperationArray (http://localhost:8088/rwt-resources/rap-client.js:61784:7)
   at rwt.remote.MessageProcessor.processMessage (http://localhost:8088/rwt-resources/rap-client.js:61736:7)
   at members._handleSuccess (http://localhost:8088/rwt-resources/rap-client.js:62420:9)
   at _success (http://localhost:8088/rwt-resources/rap-client.js:31487:35)
   at rwt.remote.Request.prototype._onReadyStateChange (http://localhost:8088/rwt-resources/rap-client.js:31538:13)
   at Anonymous function (http://localhost:8088/rwt-resources/rap-client.js:624:7)
  Debug: on
  Request: {"head":{"requestCounter":0},"operations":[["set","w1",{"bounds":[0,0,1440,805],"dpi":[96,96],"colorDepth":24}],["set","rwt.client.ClientInfo",{"timezoneOffset":-780}],["set","rwt.client.StartupParameters",{"parameters":{"iv-user":["695533"]}}],["set","w1",{"cursorLocation":[0,0]}]]}


Although they're not in the Javadoc, the scroll constants are specifically used by the SWT Text code.

Edit: Have also checked with 3.0.1-SR1a and it works without error.

[Updated on: Thu, 03 December 2015 21:16]

Report message to a moderator

Re: Client error Text and V_SCROLL / H_SCROLL [message #1716444 is a reply to message #1716441] Thu, 03 December 2015 22:08 Go to previous message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 221
Registered: February 2011
Senior Member
Upon looking through the code in Git it looks like this is fixed in master with http://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=b38d1757ca76e6e004ba6345e9448086aed074d8
Previous Topic:question of newbie
Next Topic:Composite size before inizialisation
Goto Forum:
  


Current Time: Thu Sep 19 16:54:07 GMT 2024

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

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

Back to the top