ICEfaces
  1. ICEfaces
  2. ICE-10050

Liferay Portal 6.2 - Client-side error in our bridge running in a portal stops all submissions to server.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P01
    • Fix Version/s: EE-3.3.0.GA_P02, 4.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      Liferay 6.2
    • Assignee Priority:
      P1

      Description

      When running the showcase-portlet under Liferay 6.2, I'm seeing the following error in the client console occasionally (but cannot reliably reproduce it):

      Uncaught TypeError: Cannot read property 'value' of null

      Behaviours that are stricty client-side continue to work but nothing on the page is able to submit to the server after this occurs. A page reload will generally clear it up.

        Activity

        Hide
        Deryk Sinotte added a comment - - edited

        Still not able to create it on demand but I was able to capture the client stack trace in Development mode a couple of times:

        Uncaught TypeError: Cannot read property 'value' of null    sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2954
        (anonymous function)                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2954
        apply                                                       sc01?p_p_id=comboBoxFiltering ... e=view&p_…:150
        (anonymous function)                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:516
        (anonymous function)                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:392
        (anonymous function)                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:268
        broadcast                                                   sc01?p_p_id=comboBoxFiltering ... e=view&p_…:515
        (anonymous function)                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2001
        sendEvent                                                   sc01?p_p_id=comboBoxFiltering ... e=view&p_…:1678
        AjaxEngine.req.sendRequest                                  sc01?p_p_id=comboBoxFiltering ... e=view&p_…:1564
        request                                                     sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2077
        fullSubmit                                                  sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2435
        ice.ace.AjaxRequest                                         sc01?p_p_id=autoCompleteEntryIndicator ... …:20898
        ice.ace.AccordionPanel.fireAjaxTabChangeEvent               sc01?p_p_id=autoCompleteEntryIndicator ... …:5345
        ice.ace.AccordionPanel.onTabChange                          sc01?p_p_id=autoCompleteEntryIndicator ... …:5315
        (anonymous function)                                        sc01?p_p_id=autoCompleteEntryIndicator ... …:5300
        jQuery.event.dispatch                                       sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3256
        elemData.handle.eventHandle                                 sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2875
        jQuery.event.trigger                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3144
        (anonymous function)                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3781
        jQuery.extend.each                                          sc01?p_p_id=comboBoxFiltering ... e=view&p_…:658
        jQuery.fn.jQuery.each                                       sc01?p_p_id=comboBoxFiltering ... e=view&p_…:271
        jQuery.fn.extend.trigger                                    sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3780
        $.Widget._trigger                                           sc01?p_p_id=comboBoxFiltering ... e=view&p_…:9950
        $.widget._toggle                                            sc01?p_p_id=comboBoxFiltering ... e=view&p_…:14179
        $.widget._clickHandler                                      sc01?p_p_id=comboBoxFiltering ... e=view&p_…:14138
        (anonymous function)                                        sc01?p_p_id=comboBoxFiltering ... e=view&p_…:13901
        jQuery.event.dispatch                                       sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3256
        elemData.handle.eventHandle

        Then it happened again on a different portal page with different portlets:

        Uncaught TypeError: Cannot read property 'value' of null    sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2954
        (anonymous function)                                        sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2954
        apply                                                       sc03?p_p_id=dataExporter ... e=view&p_p_cac…:150
        (anonymous function)                                        sc03?p_p_id=dataExporter ... e=view&p_p_cac…:516
        (anonymous function)                                        sc03?p_p_id=dataExporter ... e=view&p_p_cac…:392
        (anonymous function)                                        sc03?p_p_id=dataExporter ... e=view&p_p_cac…:268
        broadcast                                                   sc03?p_p_id=dataExporter ... e=view&p_p_cac…:515
        (anonymous function)                                        sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2001
        sendEvent                                                   sc03?p_p_id=dataExporter ... e=view&p_p_cac…:1678
        AjaxEngine.req.sendRequest                                  sc03?p_p_id=dataExporter ... e=view&p_p_cac…:1564
        request                                                     sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2077
        fullSubmit                                                  sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2435
        ice.ace.AjaxRequest                                         sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:20898
        ice.ace.ab                                                  sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:20675
        ice.ace.radiobutton.toggleCheckbox                          sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:144
        (anonymous function)                                        sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:55
        jQuery.event.dispatch                                       sc03?p_p_id=dataExporter ... e=view&p_p_cac…:3256
        elemData.handle.eventHandle
        

        The code in question appears to be:

        namespace.onBeforeSubmit(function(source) {
            formViewID = lookupNamedInputElement(formOf(source), 'ice.view').value;
        });
        Show
        Deryk Sinotte added a comment - - edited Still not able to create it on demand but I was able to capture the client stack trace in Development mode a couple of times: Uncaught TypeError: Cannot read property 'value' of null sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2954 (anonymous function) sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2954 apply sc01?p_p_id=comboBoxFiltering ... e=view&p_…:150 (anonymous function) sc01?p_p_id=comboBoxFiltering ... e=view&p_…:516 (anonymous function) sc01?p_p_id=comboBoxFiltering ... e=view&p_…:392 (anonymous function) sc01?p_p_id=comboBoxFiltering ... e=view&p_…:268 broadcast sc01?p_p_id=comboBoxFiltering ... e=view&p_…:515 (anonymous function) sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2001 sendEvent sc01?p_p_id=comboBoxFiltering ... e=view&p_…:1678 AjaxEngine.req.sendRequest sc01?p_p_id=comboBoxFiltering ... e=view&p_…:1564 request sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2077 fullSubmit sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2435 ice.ace.AjaxRequest sc01?p_p_id=autoCompleteEntryIndicator ... …:20898 ice.ace.AccordionPanel.fireAjaxTabChangeEvent sc01?p_p_id=autoCompleteEntryIndicator ... …:5345 ice.ace.AccordionPanel.onTabChange sc01?p_p_id=autoCompleteEntryIndicator ... …:5315 (anonymous function) sc01?p_p_id=autoCompleteEntryIndicator ... …:5300 jQuery.event.dispatch sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3256 elemData.handle.eventHandle sc01?p_p_id=comboBoxFiltering ... e=view&p_…:2875 jQuery.event.trigger sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3144 (anonymous function) sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3781 jQuery.extend.each sc01?p_p_id=comboBoxFiltering ... e=view&p_…:658 jQuery.fn.jQuery.each sc01?p_p_id=comboBoxFiltering ... e=view&p_…:271 jQuery.fn.extend.trigger sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3780 $.Widget._trigger sc01?p_p_id=comboBoxFiltering ... e=view&p_…:9950 $.widget._toggle sc01?p_p_id=comboBoxFiltering ... e=view&p_…:14179 $.widget._clickHandler sc01?p_p_id=comboBoxFiltering ... e=view&p_…:14138 (anonymous function) sc01?p_p_id=comboBoxFiltering ... e=view&p_…:13901 jQuery.event.dispatch sc01?p_p_id=comboBoxFiltering ... e=view&p_…:3256 elemData.handle.eventHandle Then it happened again on a different portal page with different portlets: Uncaught TypeError: Cannot read property 'value' of null sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2954 (anonymous function) sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2954 apply sc03?p_p_id=dataExporter ... e=view&p_p_cac…:150 (anonymous function) sc03?p_p_id=dataExporter ... e=view&p_p_cac…:516 (anonymous function) sc03?p_p_id=dataExporter ... e=view&p_p_cac…:392 (anonymous function) sc03?p_p_id=dataExporter ... e=view&p_p_cac…:268 broadcast sc03?p_p_id=dataExporter ... e=view&p_p_cac…:515 (anonymous function) sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2001 sendEvent sc03?p_p_id=dataExporter ... e=view&p_p_cac…:1678 AjaxEngine.req.sendRequest sc03?p_p_id=dataExporter ... e=view&p_p_cac…:1564 request sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2077 fullSubmit sc03?p_p_id=dataExporter ... e=view&p_p_cac…:2435 ice.ace.AjaxRequest sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:20898 ice.ace.ab sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:20675 ice.ace.radiobutton.toggleCheckbox sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:144 (anonymous function) sc03?p_p_id=gMapOptions ... e=view&p_p_cach…:55 jQuery.event.dispatch sc03?p_p_id=dataExporter ... e=view&p_p_cac…:3256 elemData.handle.eventHandle The code in question appears to be: namespace.onBeforeSubmit(function(source) { formViewID = lookupNamedInputElement(formOf(source), 'ice.view').value; });
        Hide
        Mircea Toma added a comment -

        Test for the existence of the searched input element before querying its 'value' property.

        Show
        Mircea Toma added a comment - Test for the existence of the searched input element before querying its 'value' property.
        Hide
        Deryk Sinotte added a comment -

        While I wasn't able to reliably reproduce it before, I haven't seen this at all in recent testing so it looks to have been fixed.

        Show
        Deryk Sinotte added a comment - While I wasn't able to reliably reproduce it before, I haven't seen this at all in recent testing so it looks to have been fixed.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: