ICEmobile
  1. ICEmobile
  2. MOBI-1015

js errors in IE8 with icemobile jar and icepush

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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

      attaching log file (from customer) and screenshot from auction example
      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
      1. js output.txt
        5 kB
        Judy Guglielmin
      1. IE8js errors.png
        354 kB

        Activity

        Hide
        Judy Guglielmin added a comment -

        screenshot of auction in IE8 with icemobile jar and namespace defined

        Show
        Judy Guglielmin added a comment - screenshot of auction in IE8 with icemobile jar and namespace defined
        Hide
        Judy Guglielmin added a comment -

        log file from customer

        Show
        Judy Guglielmin added a comment - log file from customer
        Hide
        Judy Guglielmin added a comment -

        as reqeusted

        Show
        Judy Guglielmin added a comment - as reqeusted
        Hide
        Philip Breau added a comment -

        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 : ''; }

        );

        Show
        Philip Breau added a comment - 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 : ''; } );
        Hide
        Philip Breau added a comment -

        auction test case without jars

        Show
        Philip Breau added a comment - auction test case without jars
        Hide
        Philip Breau added a comment -

        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

        Show
        Philip Breau added a comment - 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
        Hide
        Mircea Toma added a comment -

        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).

        Show
        Mircea Toma added a comment - 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 ).
        Hide
        Judy Guglielmin added a comment -

        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).

        Show
        Judy Guglielmin added a comment - 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).
        Hide
        Judy Guglielmin added a comment -

        since new js error is not with icepush, will open a new Jira

        Show
        Judy Guglielmin added a comment - since new js error is not with icepush, will open a new Jira

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: