Announcement

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

    Problems with CubeGrid and Analytics module

    Hi, I'm trying to deploy my web app implementing the cube grid features.

    all my jar libraries belong to the newest nigthly build and the same for analytics and drawing jars. Also I have copied into myProject.gwt.xml file the following statements

    Code:
     
    <inherits name="com.smartgwt.AnalyticsNoScript"/>
    <inherits name="com.smartgwt.DrawingNoScript"/>
    and my host html file I have included the ISC_Analytics.js and ISC_Drawing.js scripts

    as suggested in this similar post

    http://forums.smartclient.com/showthread.php?t=14961

    However, when I attempt to load my cube grid page after starting my web app it throws me this exception:

    Code:
    11:01:54.029 [ERROR] [myProject] 11:01:54.003:MUP5:WARN:Log:Attempt to create CubeGrid. This class requires the optional Analytics module which is not present in this build.
    Is there someone could help me to resolve the problem??

    If you need more info, tell me and I'll post them.

    Thanks

    #2
    Use Firebug: the path to the files is probably incorrect, so you're getting a 404 and not loading them.

    Comment


      #3
      Have I to modify the iscTagLib.xml in WEB-INF/lib path??

      Comment


        #4
        No, nothing of the kind is required.

        Comment


          #5
          I've included all libraries in my web-inf folder as I described in my first post and I've inserted

          Code:
          <inherits name="com.smartgwt.AnalyticsNoScript"/>
          <inherits name="com.smartgwt.DrawingNoScript"/>
          in myProject.gwt.xml.

          If we assume that these two steps are right, it is possible that I've made a mistake in the third step, when I've included in my host html file (index.html) the .js files?

          After building the project, I looked at the code by firebug and all the other .js path appeared as the following
          Code:
          <script type="text/javascript" src="http://127.0.0.0.../myProject/sc/THEFILE.js"
          but only the ISC_Analytics.js and ISC_Drawing.js scripts appeared as the following

          Code:
          <script type="text/javascript" src="myProject/sc/ISC_Analytics.js"
          <script type="text/javascript" src="myProject/sc/ISC_Drawing.js"
          What is the right way to include them in my home html file?

          Thanks for your help

          Comment


            #6
            Whether that's right or not depending on whether the files are in that location. Firebug will show whether you're getting a 404 at that URL or not.

            Comment


              #7
              I've explored the firebug console at the rows of the scripts and there was a 404.

              I've forgotten to insert the subfolder /modules in the complete path of them.

              Now it works!!

              thank you for help and support me
              Last edited by GuiRider; 17 Jun 2011, 00:09.

              Comment


                #8
                Hello,

                I have the current eval of 3.0 from smart gwt.

                and have followed the steps in this post.

                but am getting the same message this thread has about not having the analystics module.

                Does this thread still work? What else might I be missing?

                Evan



                Be sure your post includes:

                1. the SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console (see FAQ for how to open Developer Console)

                2. browser(s) and version(s) involved

                3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)

                4. for any problem processing a server response, the actual response as shown in the RPC tab in the Developer Console

                5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)

                6. sample code if applicable

                Posts with incomplete information are much more likely to be ignored.

                Comment


                  #9
                  If you're trying to use FacetChart, <inherit> Drawing and Charting. Do not inherit Analytics unless you want to use CubeGrid. See OptionalModules overview in the docs package.

                  Comment


                    #10
                    Hello,
                    http://www.smartclient.com/smartgwtee/showcase/#dataPointsChart

                    Is the example I have put into my project

                    I have included both drawing, charting in my html as follows (firebug says they are in)


                    <script type="text/javascript" language="javascript" src="winter/sc/modules/ISC_Charts.js"></script>
                    <script type="text/javascript" language="javascript" src="winter/sc/modules/ISC_Drawing.js"></script>
                    <script type="text/javascript" language="javascript" src="winter/sc/modules/ISC_Analytics.js"></script>

                    And my charting code is as in the example, but i complains that I have to include the analytics module. Which seeems to be required by the ssample chart ...

                    And my .gwt.xml has
                    <module rename-to="winter">
                    <inherits name='com.google.gwt.user.User' />
                    <inherits name="com.smartgwtee.SmartGwtEE" />
                    <inherits name="com.smartgwt.AnalyticsNoScript"/>
                    <inherits name="com.smartgwt.DrawingNoScript"/>

                    <entry-point class='com.relay.winter.client.WinterEntryPoint' />
                    </module>

                    Still

                    Be sure your post includes:

                    1. the SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console (see FAQ for how to open Developer Console)

                    2. browser(s) and version(s) involved

                    3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)

                    4. for any problem processing a server response, the actual response as shown in the RPC tab in the Developer Console

                    5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)

                    6. sample code if applicable

                    Posts with incomplete information are much more likely to be ignored.

                    Comment


                      #11
                      Either use NoScript for all modules or none. You probably do not want to use NoScript unless you have special needs.

                      Comment


                        #12
                        Thank you point about documentation
                        http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/LoadingOptionalModules.html

                        Helped, but not there yet.

                        Clearly my inherts were wrong so I update them to look like
                        <inherits name="com.smartgwt.Analytics"/>
                        <inherits name="com.smartgwt.Charts"/>

                        And no longer get the message about missing analytics.

                        But nothing is drawn, no chart just an empty space.

                        I continue to use the demo sample provided, as I mentioned earlier.

                        Evan



                        Be sure your post includes:

                        1. the SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console (see FAQ for how to open Developer Console)

                        2. browser(s) and version(s) involved

                        3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)

                        4. for any problem processing a server response, the actual response as shown in the RPC tab in the Developer Console

                        5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)

                        6. sample code if applicable

                        Posts with incomplete information are much more likely to be ignored.

                        Comment


                          #13
                          Ok I am reodering my inherits with charts before analytics and trying that.

                          documentation is great!!

                          Evan

                          Be sure your post includes:

                          1. the SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console (see FAQ for how to open Developer Console)

                          2. browser(s) and version(s) involved

                          3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)

                          4. for any problem processing a server response, the actual response as shown in the RPC tab in the Developer Console

                          5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)

                          6. sample code if applicable

                          Posts with incomplete information are much more likely to be ignored.

                          Comment


                            #14
                            Reread post #9. You need Drawing and Charts. You do not need Analytics.

                            Comment


                              #15
                              Ok inherits are as follows, still no chart.

                              <module rename-to="winter">
                              <inherits name='com.google.gwt.user.User' />
                              <inherits name="com.smartgwtee.SmartGwtEE" />
                              <inherits name="com.smartgwt.Charts"/>
                              <inherits name="com.smartgwt.Analytics"/>

                              <entry-point class='com.relay.winter.client.WinterEntryPoint' />
                              </module>

                              Be sure your post includes:

                              1. the SmartGWT or SmartClient version from the lower left-hand corner of the Developer Console (see FAQ for how to open Developer Console)

                              2. browser(s) and version(s) involved

                              3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)

                              4. for any problem processing a server response, the actual response as shown in the RPC tab in the Developer Console

                              5. if there is a JavaScript error, the stack trace logged in the Developer Console (see FAQ)

                              6. sample code if applicable

                              Posts with incomplete information are much more likely to be ignored.

                              Comment

                              Working...
                              X