Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332313 - [BowserFunction] Wrong error is thrown on the client in case of Java exception in IE
Summary: [BowserFunction] Wrong error is thrown on the client in case of Java exceptio...
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: 1.4 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 330806
  Show dependency tree
 
Reported: 2010-12-10 09:51 EST by Ivan Furnadjiev CLA
Modified: 2010-12-10 16:24 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.