Announcement

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

    Analytics module is not loaded

    Hi Team,
    Recently we made update smartGWT 6.1 version and when I am trying to access the application I could see that "Analytics module is not loaded" error but we did not see this error in 6.0 version. I even updated analytics.jar.
    kindly make me understand the problem and help me to provide the fix for it.
    Thanks
    Dastagiri.
    M:+91-9710407058.
    Last edited by dastagiri89; 3 Jul 2017, 02:25.

    #2
    PFA error screenshot

    Comment


      #3
      See the installation instructions - there's a checklist to follow and troubleshooting section.

      Comment


        #4
        Hello there, I have verified the Instruction document and found that I need to be add following inherits to load the cubeGrids. But still I am facing with issue and getting same error message "Analytics module is not loaded"
        <inherits name="com.smartgwt.Charts"/>
        <inherits name="com.smartgwt.Analytics"/> and I did not see error message in the application console page. please help me to provide the more information to resolve an issue. Thanks Dastagiri. M:+91-9710407058.

        Comment


          #5
          Simply continue with the troubleshooting guide. Next step is to ensure you've run a GWT compile.

          Comment


            #6
            I tried to debug but still getting the same issue. Here is the exception logs. Exception occured in browser :
            (TypeError) : Cannot read property 'getJsObj__Lcom_google_gwt_core_client_JavaScriptObject_2' of null
            Stacktrace :
            Unknown.com_smartgwt_client_widgets_grid_ListGrid_getBaseStyle__Lcom_smartgwt_client_widgets_grid_ListGridRecord_2IILjava_lang_String_2(heliosweb-0.js)
            Unknown.com_mars_helios_heliosweb_client_widgets_cube_HeliosCubeGrid_getBaseStyle__Lcom_smartgwt_client_widgets_grid_ListGridRecord_2IILjava_lang_String_2(heliosweb-0.js)
            Unknown.<anonymous>(heliosweb-0.js)
            Unknown.com_google_gwt_core_client_impl_Impl_apply__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(heliosweb-0.js)
            Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(heliosweb-0.js)
            Unknown.getBaseStyle(heliosweb-0.js)
            Unknown.eval(eval at isc__makeFunction (http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_GridRenderer_getCellStyleName(http://localhost:8080/HeliosWeb/heli...s/ISC_Grids.js)
            Unknown.isc_CubeGrid_getCellStyle(http://localhost:8080/HeliosWeb/heli...C_Analytics.js)
            Unknown.eval(eval at isc__makeFunction (http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_GridRenderer_getTableHTML(http://localhost:8080/HeliosWeb/heli...s/ISC_Grids.js)
            Unknown.isc_GridRenderer_getInnerHTML(http://localhost:8080/HeliosWeb/heli...s/ISC_Grids.js)
            Unknown.isc_c_Class_invokeSuper(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_c_Class_Super(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_GridBody_getInnerHTML(http://localhost:8080/HeliosWeb/heli...s/ISC_Grids.js)
            Unknown.isc_Canvas__getInnerHTML(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_Canvas__updateInnerHTML(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_c_Class_invokeSuper(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_GridRenderer__updateInnerHTML(http://localhost:8080/HeliosWeb/heli...s/ISC_Grids.js)
            Unknown.isc_Canvas__updateHTML(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_Canvas_redraw(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_c_Class_invokeSuper(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_GridRenderer_redraw(http://localhost:8080/HeliosWeb/heli...s/ISC_Grids.js)
            Unknown.isc_c_Class_invokeSuper(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_GridBody_redraw(http://localhost:8080/HeliosWeb/heli...s/ISC_Grids.js)
            Unknown.isc_c_Canvas_clearRedrawQueue(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_c_Class_fireCallback(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.isc_c_Timer__fireTimeout(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)
            Unknown.anonymous(http://localhost:8080/HeliosWeb/heli...es/ISC_Core.js)


            and also following are the imports which I am having in html file.
            <script>
            var isomorphicDir = "heliosweb/sc/";
            </script>
            <script type="text/javascript" src="heliosweb/heliosweb.nocache.js"></script>
            <script type="text/javascript" src="js/html2canvas.js"></script>
            <script src="heliosweb/sc/modules/ISC_Core.js"> </script>
            <script src="heliosweb/sc/modules/ISC_Foundation.js"> </script>
            <script src="heliosweb/sc/modules/ISC_Containers.js"> </script>
            <script src="heliosweb/sc/modules/ISC_Grids.js"> </script>
            <script src="heliosweb/sc/modules/ISC_Forms.js"> </script>
            <script src="heliosweb/sc/modules/ISC_RichTextEditor.js"></script>
            <script src="heliosweb/sc/modules/ISC_Calendar.js"> </script>
            <script src="heliosweb/sc/modules/ISC_DataBinding.js"> </script>
            <script src='heliosweb/sc/modules/ISC_Drawing.js'></script>
            <script src='heliosweb/sc/modules/ISC_Analytics.js'></script>


            <script src="heliosweb/sc/skins/Enterprise/load_skin.js"></script>
            Last edited by dastagiri89; 4 Jul 2017, 03:38.

            Comment


              #7

              Comment


                #8
                Looks like you still haven't checked any of the basics, such as: is the ISC_Analytics.js file even being successfully loaded?

                If it isn't, then is it even present on disk in the expected location (next to the other ISC_*.js files).

                You should also verify that the .js files on disk match the version of SmartGWT you're trying to use.

                Comment


                  #9
                  Hi, I have verified all require Js files are loading properly and please take a look at attached (attached only ISC_Analytics.js ) screenshot. And also verified that js files are present at the require location. I am not understanding why this issue has come only with 6.1 version and we did not see the issue in 6 version.
                  Attached Files

                  Comment


                    #10
                    You are loading your application code (nocache.js) before you have loaded the SmartClient framework (ISC*js files).

                    Comment


                      #11
                      [FONT=Arial, Verdana, sans-serif]Theer won't be any change after placing the nocache.js file after the smartClient framework js files. Still facing an issue and it's blocking my deliverables. Kindly consider this as a high priority request. [/FONT]


                      [FONT=Arial, Verdana, sans-serif]<script>[/FONT]
                      var isomorphicDir = "heliosweb/sc/";
                      </script>

                      <script type="text/javascript" src="js/html2canvas.js"></script>
                      <script src="heliosweb/sc/modules/ISC_Core.js"> </script>
                      <script src="heliosweb/sc/modules/ISC_Foundation.js"> </script>
                      <script src="heliosweb/sc/modules/ISC_Containers.js"> </script>
                      <script src="heliosweb/sc/modules/ISC_Grids.js"> </script>
                      <script src="heliosweb/sc/modules/ISC_Forms.js"> </script>
                      <script src="heliosweb/sc/modules/ISC_RichTextEditor.js"></script>
                      <script src="heliosweb/sc/modules/ISC_Calendar.js"> </script>
                      <script src="heliosweb/sc/modules/ISC_DataBinding.js"> </script>
                      <script src='heliosweb/sc/modules/ISC_Drawing.js'></script>
                      <script src='heliosweb/sc/modules/ISC_Analytics.js'></script>


                      <script src="heliosweb/sc/skins/Enterprise/load_skin.js"></script>
                      <script type="text/javascript" src="heliosweb/heliosweb.nocache.js"></script>

                      Comment


                        #12
                        There's not a lot we can do for you at the moment, since we have no way of reproducing any problem that appears to be a framework issue.

                        We're also getting conflicting symptoms here: you're showing a stack trace that clearly involves ISC_Analytics.js code, but you also claim to be getting a message "Analytics module is not loaded". Can you clarify whether both errors are still occurring *together*? If so, how/where exactly does this "module is not loaded" error appear? If it's an error dialog, can you show a screenshot? Have you also check whether your own application code is possibly generating this error? Can any other developer reproduce the issue?

                        As far as the error for which you have a stack trace: it looks like it could be caused by feeding the CubeGrid bad data, for exactly, returning some nulls within the set of records. You've also got your application code in the stack (HeliosCubeGrid_getBaseStyle) which could be calling getBaseStyle() with bad parameters (again perhaps a null record). So the likely cause here is that, as part of your upgrade attempt, the data you are working with has changed and your code now crashes or you are feeding invalid data to the CubeGrid.

                        If these don't help you solve the problem, and you think this might be a framework issue, please work toward making us able to reproduce the issue via a test case.

                        Comment

                        Working...
                        X