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

        Judy Guglielmin created issue -
        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
        Judy Guglielmin made changes -
        Field Original Value New Value
        Attachment IE8js errors.png [ 16669 ]
        Hide
        Judy Guglielmin added a comment -

        log file from customer

        Show
        Judy Guglielmin added a comment - log file from customer
        Judy Guglielmin made changes -
        Attachment js output.txt [ 16670 ]
        Judy Guglielmin made changes -
        Assignee Steve Maryka [ steve.maryka ] Judy Guglielmin [ judy.guglielmin ]
        Hide
        Judy Guglielmin added a comment -

        as reqeusted

        Show
        Judy Guglielmin added a comment - as reqeusted
        Judy Guglielmin made changes -
        Assignee Judy Guglielmin [ judy.guglielmin ] Philip Breau [ philip.breau ]
        Judy Guglielmin made changes -
        Salesforce Case Reference 5007000000VHuyfAAD
        Philip Breau made changes -
        Summary js errors in IE8 with icemobile jar, namespace and icefaces js errors in IE8 with icemobile jar and icepush
        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
        Philip Breau made changes -
        Attachment auction.war [ 16671 ]
        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
        Philip Breau made changes -
        Assignee Philip Breau [ philip.breau ] Judy Guglielmin [ judy.guglielmin ]
        Ken Fyten made changes -
        Fix Version/s EE 1.3.1.GA [ 11377 ]
        Ken Fyten made changes -
        Assignee Judy Guglielmin [ judy.guglielmin ] Mircea Toma [ mircea.toma ]
        Ken Fyten made changes -
        Comment [ A comment with security level 'icesoft-internal-developers' was removed. ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39922 Mon Feb 10 10:26:17 MST 2014 ken.fyten Create bridge-support patch branch for Fedex (MOBI-1015).
        Files Changed
        Commit graph ADD /bridge-support/patches/icefaces-ee-3.3.0.GA-Fedex
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39924 Mon Feb 10 10:39:30 MST 2014 mircea.toma MOBI-1015 Return document with capture error message when accessing XMLHttpRequest.responseXML throws errors.
        Files Changed
        Commit graph MODIFY /bridge-support/patches/icefaces-ee-3.3.0.GA-Fedex/src/main/javascript/http.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39935 Mon Feb 10 13:38:23 MST 2014 mircea.toma MOBI-1015 Return document with error message when failing to access 'responseXML' property.
        Files Changed
        Commit graph MODIFY /bridge-support/trunk/src/main/javascript/http.js
        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 ).
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39936 Mon Feb 10 13:46:25 MST 2014 mircea.toma MOBI-1015 Return document with error message when failing to access 'responseXML' property.
        Files Changed
        Commit graph MODIFY /bridge-support/branches/icefaces-ee-3.3.0.GA-maintenance/src/main/javascript/http.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39937 Mon Feb 10 14:08:55 MST 2014 mircea.toma MOBI-1015 Update bridge-support libs.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/bridge-support.uncompressed.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/bridge-support.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39938 Mon Feb 10 14:09:11 MST 2014 mircea.toma MOBI-1015 Update bridge-support libs.
        Files Changed
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/resources/META-INF/ice.core/bridge-support.js
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/resources/META-INF/ice.core/bridge-support.uncompressed.js
        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).
        Judy Guglielmin made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Security Private [ 10001 ]
        Judy Guglielmin made changes -
        Attachment ie8 remaining js error.avi.zip [ 16692 ]
        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
        Judy Guglielmin made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #41603 Tue Jul 08 10:34:20 MDT 2014 arran.mccullough MOBI-1015 Return document with error message when failing to access 'responseXML' property.
        Files Changed
        Commit graph MODIFY /bridge-support/patches/icefaces-ee-3.3.0.GA-Thermo-Fisher-Build/src/main/javascript/http.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #41607 Tue Jul 08 11:34:14 MDT 2014 arran.mccullough Reverted MOBI-1015 Return document with error message when failing to access 'responseXML' property.
        Files Changed
        Commit graph MODIFY /bridge-support/patches/icefaces-ee-3.3.0.GA-Thermo-Fisher-Build/src/main/javascript/http.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #41608 Tue Jul 08 11:39:25 MDT 2014 arran.mccullough Reverted MOBI-1015 Return document with error message when failing to access 'responseXML' property.
        Files Changed
        Commit graph MODIFY /bridge-support/tags/icefaces-ee-3.3.0.GA/src/main/javascript/http.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #41612 Wed Jul 09 09:10:10 MDT 2014 arran.mccullough MOBI-1015 Return document with error message when failing to access 'responseXML' property.
        Files Changed
        Commit graph MODIFY /bridge-support/patches/icefaces-ee-3.3.0.GA-Thermo-Fisher-Build/src/main/javascript/http.js
        Ken Fyten made changes -
        Security Private [ 10001 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: