| Summary: | [Browser] Evaluate error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Cho HyunJong <hangum> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | 2.2 | ||||||
| Target Milestone: | 2.2 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Checked with RAP 2.1.1 and it's working. Change the priority to P2 as this is a regression. The problem is caused by commit b0174a6ca3e3062501d23ec40343c7a6796564ed - problem is solved by reverting it. Browser function does not send synchronous requests anymore. The line that cause the issue is: --- this.processHead( messageObject.head ); -- in MessageProcessor.js#processMessage. Before, the protocol message "head" was processed first and then operations. Thus, if request need to be send when message is processed the request counter was already set and the synchronous request (browser function call) was sent immediately. Now, "head" is processed after operations and the synchronous request is delayed (Connection.js#_sendTimer is used). As a result, the synchronous request is converted to asynchronous - see Connection.js#_sendTimer interval listener. Fixed in master with commit 532f9b4868f803e14f11381bd1d1afcc189dcd8e. Thanks so much. good work~ Show error message.
If you call in two consecutive, it is an error.
Client Error
Details:
Error: Error: Operation "destroy" on target "w494" of type "null" failed:
objectEntry is undefined
Properties:
Script: {"head":{"requestCounter":46},"operations":[["destroy","w494"],["destroy","w493"],["set","w20",{"bounds":[0,0,0,0]}],["create","w509","rwt.widgets.GridColumn",{"parent":"w366","text":"EmployeeID","index":0,"width":78,"moveable":true,"alignment":"right"}],["listen","w509",{"Selection":true}],["create","w510","rwt.widgets.GridColumn",{"parent":"w366","text":"TerritoryID","index":1,"left":78,"width":71,"moveable":true}],["listen","w510",{"Selection":true}],["call","w359","evaluate",{"script":"(function(){editorService.setTextFocus()})();"}]]}
fileName: http://127.0.0.1:10081/rwt-resources/rap-client.js
lineNumber: 71131
columnNumber: 4
Stack: rwt.remote.MessageProcessor._processError@http://127.0.0.1:10081/rwt-resources/rap-client.js:71131
rwt.remote.MessageProcessor.processOperationArray@http://127.0.0.1:10081/rwt-resources/rap-client.js:70973
rwt.remote.MessageProcessor.processMessage@http://127.0.0.1:10081/rwt-resources/rap-client.js:70926
.members._handleSuccess@http://127.0.0.1:10081/rwt-resources/rap-client.js:71605
@http://127.0.0.1:10081/rwt-resources/rap-client.js:36706
rwt.remote.Request.prototype._onReadyStateChange@http://127.0.0.1:10081/rwt-resources/rap-client.js:36757
.statics.bind/wrap@http://127.0.0.1:10081/rwt-resources/rap-client.js:5739
Debug: on
Request: {"head":{"requestCounter":45},"operations":[["call","w359","executeFunction",{"name":"editorServiceHandler","arguments":[25,"63-tadpole-del- SELECT EmployeeID, TerritoryID \n FROM dbo.EmployeeTerritories;"]}],["set","w1",{"cursorLocation":[618,85]}]]}
I assume comment 6 supposed to reopen the bug instead of setting to INVALID. (In reply to comment #6) > Show error message. > If you call in two consecutive, it is an error. > > > Client Error > Details: > > Error: Error: Operation "destroy" on target "w494" of type "null" failed: > objectEntry is undefined > Properties: > > > Script: > {"head":{"requestCounter":46},"operations":[["destroy","w494"],["destroy","w493"],["set","w20",{"bounds":[0,0,0,0]}],["create","w509","rwt.widgets.GridColumn",{"parent":"w366","text":"EmployeeID","index":0,"width":78,"moveable":true,"alignment":"right"}],["listen","w509",{"Selection":true}],["create","w510","rwt.widgets.GridColumn",{"parent":"w366","text":"TerritoryID","index":1,"left":78,"width":71,"moveable":true}],["listen","w510",{"Selection":true}],["call","w359","evaluate",{"script":"(function(){editorService.setTextFocus()})();"}]]} > fileName: http://127.0.0.1:10081/rwt-resources/rap-client.js > lineNumber: 71131 > columnNumber: 4 > Stack: > rwt.remote.MessageProcessor._processError@http://127.0.0.1:10081/rwt-resources/rap-client.js:71131 > rwt.remote.MessageProcessor.processOperationArray@http://127.0.0.1:10081/rwt-resources/rap-client.js:70973 > rwt.remote.MessageProcessor.processMessage@http://127.0.0.1:10081/rwt-resources/rap-client.js:70926 > .members._handleSuccess@http://127.0.0.1:10081/rwt-resources/rap-client.js:71605 > @http://127.0.0.1:10081/rwt-resources/rap-client.js:36706 > rwt.remote.Request.prototype._onReadyStateChange@http://127.0.0.1:10081/rwt-resources/rap-client.js:36757 > .statics.bind/wrap@http://127.0.0.1:10081/rwt-resources/rap-client.js:5739 > > Debug: on > Request: > {"head":{"requestCounter":45},"operations":[["call","w359","executeFunction",{"name":"editorServiceHandler","arguments":[25,"63-tadpole-del- > SELECT EmployeeID, TerritoryID \n FROM > dbo.EmployeeTerritories;"]}],["set","w1",{"cursorLocation":[618,85]}]]} Could you provide a snippet to reproduce the issue? BTW... I think that this is completely different issue from the one in the description, but I will confirm this when you provide a snippet to reproduce it. (In reply to comment #9) > I think that this is completely different issue from the one in the description... I will close this bug again. Please open a separate bug for the new issue (comment #6) and provide a snippet to reproduce it there. |
Created attachment 237613 [details] See View.java Browwer.evaluate method has a problem in V2.2.x. java -> javascript -> java -> javascript is invoked with an error. in previous version have normal use. In the attached file View.java 'Call execute' button is pressed i get an error. 2.1.x is normal execution. Thanks you.