Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.3 Final, EE 1.3.0.GA_P01
-
Fix Version/s: 1.3.1, EE 1.3.1.GA
-
Component/s: Faces
-
Labels:None
-
Environment:jsf IE8
-
Salesforce Case Reference:
Description
I used the first patch for customer as well as 2nd patch and auction example.
Add icefaces-ee-mobi.jar and namespace for mobi on auction.xhtml load page and js errors will appear in IE8
-
- js output.txt
- 5 kB
- Judy Guglielmin
-
Hide
- ie8 remaining js error.avi.zip
- 1.15 MB
- Judy Guglielmin
-
- ie8 remaining js error.avi 6.27 MB
-
Hide
- auction.war
- 114 kB
- Philip Breau
-
- auction.xhtml 13 kB
- index.jsp 0.7 kB
- META-INF/MANIFEST.MF 0.1 kB
- resources/components/columnSorter.xhtml 3 kB
- resources/css/auction_styles.css 2 kB
- resources/css/demo_template.css 3 kB
- resources/.../ascending_arrow_false.gif 0.2 kB
- resources/.../ascending_arrow_true.gif 0.2 kB
- resources/images/banner_bg.gif 0.6 kB
- resources/images/banner_hdr_auction.jpg 11 kB
- resources/images/banner_logo.jpg 8 kB
- resources/images/bgslice_footer.gif 0.3 kB
- resources/images/bgslice_footer.jpg 17 kB
- resources/images/blue-fade-bkgnd.gif 1 kB
- resources/images/button_bid.gif 0.9 kB
- resources/images/button_bid_accept.gif 0.9 kB
- resources/images/button_bid_decline.gif 0.9 kB
- resources/.../button_triangle_close.gif 1 kB
- resources/.../button_triangle_open.gif 1 kB
- resources/images/expanded_false.gif 0.1 kB
- resources/images/expanded_true.gif 0.1 kB
- resources/images/favicon.ico 0.3 kB
- resources/images/footer_faces.jpg 34 kB
- resources/images/icebreaker.jpg 5 kB
- resources/images/icecar.jpg 5 kB
- resources/images/icesailor.jpg 5 kB
- resources/images/iceskate.jpg 4 kB
- resources/images/noimage.gif 4 kB
- resources/images/time_left_0.gif 0.2 kB
- resources/images/time_left_1.gif 0.2 kB
-
- IE8js errors.png
- 354 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
log file from customer
as reqeusted
The error can be reproduced by adding the icefaces-mobi.jar to the auction sample and viewing in IE8. Clock ticks result in the following error on IE8: "Unspecified Error".
Digging deeper, the error coming from IE8 is actually "The data necessary to complete this operation is not yet available." when attempting to read xhr.responseXML at the following line in the icepush js:
method(contentAsDOM, function(self)
{ return nativeRequestResponse.responseXML; });
The readyState is checked to be 4 further up the stack, but it appears that the readyState is reset to 0.
Changing the code to the following appears to resolve the errors, and I don't see any functional issues with the test case after this, although I'm not sure why the xhr.readyState is being reset to 0 or if there's an underlying problem:
method(contentAsDOM, function(self)
{ return nativeRequestResponse.readyState == 4 ? nativeRequestResponse.responseXML : ''; });
auction test case without jars
Note that the following jars need to be added to the test case:
icefaces-ee-ext.jar
icefaces-ee.jar
icepush-ee.jar
javax-faces.jar
jstl.jar
icefaces-mobi-ee.jar
commons-fileupload-1.2.2.jar
commons-io-2.0.1.jar
Modified contentAsDOM method in bridge-support to return a document with error message when failing to access 'responseXML' property. This strategy is in line with the other wrapping methods we have for accessing XMLHttpRequest properties (such as status, and responseText).
attaching ie8 remaining js error.avi (movie) that customer still sees (I do not see this in my testing, but will continue to try to reproduce).
since new js error is not with icepush, will open a new Jira
screenshot of auction in IE8 with icemobile jar and namespace defined