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

Bug 332313

Summary: [BowserFunction] Wrong error is thrown on the client in case of Java exception in IE
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 1.3   
Target Milestone: 1.4 M4   
Hardware: PC   
OS: Windows All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 330806    

Description Ivan Furnadjiev CLA 2010-12-10 09:51:00 EST
In case of an exception in the Java code (when executing a browser function), the java exception message is send to the client and javascript error is thrown with this message. With the current implementation this works fine in Firefox, Safari, Chrome and Opera, but not in IE. In IE, another error is thrown - "Object does not support this property or method". It seems like in IE, an Error object created in the context of the main window can't be thrown into the iframe. The workaround is to create a wrapper function in the iframe context and throw the error from there.
Comment 1 Tim Buschtoens CLA 2010-12-10 11:00:37 EST
I added the function "scheduleResponse" to TestUtil to test this scenario.
Comment 2 Ivan Furnadjiev CLA 2010-12-10 16:24:23 EST
Fixed in CVS HEAD. There is a problem in the js testrunner to work with RAP synchronous requests and two tests in BrowserTest.js are commented. Enable them when the problem is fixed.