28 views

Symptoms


  1. On UI11 service catalog form, the catalog client scripts doesn't get executed.
  2. While loading the service catalog form, looking at the browser console log reveals below errors,
    Uncaught ReferenceError: $j is not defined 

    at klass.getMetricStats [as callbackFunction] (com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1309) 

    at klass._responseReceived (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19887) 

    at klass._processReqChange (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19745) 

    getMetricStats @ com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1309 

    _responseReceived @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19887 

    _processReqChange @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19745 

    XMLHttpRequest.send (async) 

    _sendRequest @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19734 

    _makeRequest @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19706 

    (anonymous) @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19682 

    setTimeout (async) 

    _getXML0 @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19682 

    getXML @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19671 

    (anonymous) @ com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1298 

     

    Uncaught ReferenceError: $j is not defined 

    at Object.send (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:36339) 

    at klass._clientTransaction (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:36577) 

    at klass.fireEvent (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:7797) 

    at klass.fire (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:7822) 

    at firePageTimer (com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1550) 

    at setTimeGraph (com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1523) 

    at com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1515 

    at runAfterPageLoadedEvents (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:7152)

Release


Istanbul, Jakarta, Kingston 

Cause


With Istanbul release onwards, UI11 is not working as expected since it is deprecated as per document, hence system throws "$j is not defined error" on console and catalog client scripts are not executed.

Resolution


Activate UI16 plugin and set the property "glide.ui.doctype" to "true", so that instance will be pushed to use the latest User Interface and libraries. 

Additional Information


Legacy - UI11

UI16

Article Information

Last Updated:2018-06-09 22:45:35
Published:2018-06-08