Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    12.0p: Question about very sporadic error where script content or an IDACall result is displayed in the browser

    Hi Isomorphic,

    we have a very sporadic error and I wanted to asked if you also know it and perhaps a solution.
    We have a SmartGWT 12.0p application with the following start code after login, which should be very basic and is based on an old BuiltInDS.html.

    Code:
    <!DOCTYPE html>
    <html>
        <head>
            <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            <meta name="gwt:property" content="locale=de">
        </head>
    
        <body>
        <!--add loading indicator while the app is being loaded-->
            <div id="loadingWrapper">
                <div id="loading">
                    <div id="loadingIndicator">
                        <img id="productImg" alt="Product logo" src="images/loading_spinner.svg" width="50" height="50" style="margin-right:8px;float:left;vertical-align:top;"/>
                        <span id="productName">ourapp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><br/>
                        <span id="loadingMsg">Loading styles and images...</span><br/>
                        <span id="waitMsg">Please wait...</span>
                    </div>
                </div>
            </div>
            <script type="text/javascript">
                var isomorphicDir="lms/sc/";
                var buildDate="2019-11-03 20:09";
                window.isc_useCSSFontAPI=true;
            </script>
            <script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Core API...';</script>
            <script type="text/javascript" src="lms/sc/modules/ISC_Core.js?isc_version=v12.0p_2019-03-23.js"></script>
    
            <script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading UI Components...';</script>
            <script type="text/javascript" src="lms/sc/modules/ISC_Foundation.js?isc_version=v12.0p_2019-03-23.js" ></script>
            <script type="text/javascript" src="lms/sc/modules/ISC_Containers.js?isc_version=v12.0p_2019-03-23.js"></script>
            <script type="text/javascript" src="lms/sc/modules/ISC_Grids.js?isc_version=v12.0p_2019-03-23.js"></script>
            <script type="text/javascript" src="lms/sc/modules/ISC_Forms.js?isc_version=v12.0p_2019-03-23.js"></script>
    
            <script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Data API...';</script>
            <script type="text/javascript" src="lms/sc/modules/ISC_DataBinding.js?isc_version=v12.0p_2019-03-23.js"></script>
    
            <script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading DataSources...';</script>
            <script type="text/javascript" src="lms/sc/DataSourceLoader?isc_version=v12.0p_2019-03-23.js&amp;lastDSChange=2019-11-03_16-07-08&amp;loggedInUserName=Administrator&amp;locale=de&amp;dataSource=LONGLIST"></script>
    
            <script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading skin...';</script>
            <script type="text/javascript" src="lms/sc/skins/Tahoe/load_skin.js?isc_version=v12.0p_2019-03-23.js&buster=201911030809"></script>
    
            <script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading app';</script>
            <script type="text/javascript" language="javascript" src="lms/lms.nocache.js"></script>
    
            <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
        </body>
    </html>
    After login, we start in the EntryPoint.onModuleLoad() with a RPCRequest to get the user session settings and in it's CallBack a Queue with many calls to get defaults we need clientside synchronously. In that Queue's CallBack we show the main GUI.

    Issue:
    Now, very seldom (about 1 out of 500) instead of the application showing up, the browser (so far noticed with current Chrome or current Safari, which are the normal browsers we use (=does not mean it does not happen with FF, we just did not observe this, yet)) shows either:
    • The text-result of DataSourceLoader and it's URL in the URL bar of the browser
    • The text-result of the Queue-IDACall (not sure about URL in the URL bar of the browser)
    It did not happen while using the application so far, so I assume this is some timing issue in page load, but I'm not sure.
    Also, showing DataSourceLoader and IDACall result text is IMHO something very different.
    Do you have any idea what might be causing this or see this before?

    Thank you & Best regards
    Blama

    #2
    We've never seen this before. The only way we could imagine this happening is that your server somehow sends a redirect instead of the HTML file, and the redirect is to one of the script files. You could check your logs for that, but it seems very unlikely.

    Another possibility would be some kind of bug in the core GWT load process.

    Finally could be a bug in webkit.

    Cannot really imagine that it's a bug in SmartGWT as we do not do any kind of scanning of <script> tags in the page. So there is no part of the framework that would ever even in come in contact with the URL you are being redirected to.

    Comment


      #3
      Hi Isomorphic,

      especially because of the display of the DataSourceLoader-result I also don't think it's the framework, as until then it is a plain HTML page.
      But I thought maybe you saw this before as well.
      I did search for Chrome bugs online (which seems most likely to me), but did not find a report of this so far.

      Thank you & Best regards
      Blama

      Comment

      Working...
      X