Community
Participate
Working Groups
When UICallBack is activated in the IEntryPoint#createUI several UICallBack responses are empty (contained only spaces). I think that this is not expected.
In UICallBackServiceHandler#service method there are two possibilities no to write a protocol message to the response: 1. UICallBackManager.getInstance().processRequest( response ) returns false 2. sessionStore.isBound() returns false Testing the snippet from bug 367053 I found that we a running in point 1 - UICallBackManager.getInstance().processRequest( response ) returns false, because callBackRequestTracker.isActive( Thread.currentThread() ) returns false. And that's because callBackRequests.get( 0 ) != current thread. In this case callBackRequests.get( 1 ) == current thread.
In this case we have two UICallBack requests running in the same time??!!
The reason for the two UICallBack requests was a typo in UICallBack.js#sendUICallBackRequest - this.running instead of this._running. Fixed in CVS HEAD.
Additionally, we changed the server-side code to return "empty" protocol message (valid JSON) instead of empty (spaces only) string. Trimming on the client is not needed anymore.
*** Bug 367737 has been marked as a duplicate of this bug. ***