Announcement

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

    Charts with Evaluation version

    Hi,
    What's the quick n easy way of deploying sample for Charts included in EE evaluation version of smartgwt

    I deployed and ran the "built-in-ds" sample and then tried to copy the charts code into it but am getting below exception:

    Browser is IE 10.X
    And the gwt.xml has below entries:
    Code:
        <inherits name="com.google.gwt.user.User"/>
        <inherits name="com.smartgwt.tools.SmartGwtTools"/>
        <inherits name="com.smartgwtee.SmartGwtEENoScript"/>
        <inherits name="com.smartgwt.Drawing"/>
        <inherits name="com.smartgwt.Charts"/>
        <inherits name="com.smartgwt.Analytics"/>
        <inherits name="com.smartgwtee.tools.Tools"/>
        <inherits name="com.smartgwtee.SmartGwtEE"/>
    
    
    16:45:53.521 [ERROR] [builtinds] 16:45:53.519:WARN:ListGrid:isc_BuiltInDS_9_0:Component chartConstructor attribute set to "FacetChart" - this cannot be resolved to a valid SmartClient class. Verify that all appropriate modules are loaded and that this class exists.
    com.smartgwt.client.core.JsObject$SGWT_WARN: 16:45:53.519:WARN:ListGrid:isc_BuiltInDS_9_0:Component chartConstructor attribute set to "FacetChart" - this cannot be resolved to a valid SmartClient class. Verify that all appropriate modules are loaded and that this class exists.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
        at com.smartgwt.client.widgets.grid.ListGrid.chartData(ListGrid.java)
        at com.smartgwt.sample.client.BuiltInDS.getViewPanel(BuiltInDS.java:252)
        at com.smartgwt.sample.client.BuiltInDS.onModuleLoad(BuiltInDS.java:182)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
        at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Unknown Source)
    Last edited by daniyal; 12 Dec 2013, 14:14. Reason: Formatting to make it read-able

    #2
    The charta module isnt loaded. If that's your actual .gwt.xml, you probably just need to run a GWT compile (always do this after changing .gwt.xml).

    Comment


      #3
      Thanks for the prompt response, already tried GWT compile but is giving the same error for below gwt.xml

      Code:
       
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" 
          "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
      <module rename-to="builtinds">
          
          <inherits name="com.google.gwt.user.User"/>
          <inherits name="com.smartgwt.tools.SmartGwtTools"/>
          <inherits name="com.smartgwtee.SmartGwtEENoScript"/>
          <inherits name="com.smartgwt.Drawing"/>
          <inherits name="com.smartgwt.Charts"/>
          <inherits name="com.smartgwt.Analytics"/>
          <inherits name="com.smartgwtee.tools.Tools"/>
          <inherits name="com.smartgwtee.SmartGwtEE"/>
          
          <entry-point class='com.smartgwt.sample.client.BuiltInDS'/>
      </module>

      Comment


        #4
        On a little different note, testing the code listed @ the link:
        http://forums.smartclient.com/showpost.php?p=59319&postcount=5

        gives below exception in the same project:

        Code:
        18:54:52.804 [ERROR] [builtinds] Unable to load module entry point class com.smartgwt.sample.client.BuiltInDS (see associated exception for details)
        
        com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.chart.FacetChart::create()([]): Unable to get property 'create' of undefined or null reference
            at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
            at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
            at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
            at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
            at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
            at com.smartgwt.client.widgets.chart.FacetChart.create(FacetChart.java)
            at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:443)
            at com.smartgwt.client.util.JSOHelper.convertToJavaScriptArray(JSOHelper.java:884)
            at com.smartgwt.client.util.JSOHelper.convertToJavaScriptArray(JSOHelper.java:844)
            at com.smartgwt.client.widgets.BaseWidget.setAttribute(BaseWidget.java:820)
            at com.smartgwt.client.widgets.layout.Layout.setMembers(Layout.java:1231)
            at com.smartgwt.sample.client.BuiltInDS.onModuleLoad(BuiltInDS.java:126)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
            at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
            at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
            at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
            at java.lang.Thread.run(Unknown Source)

        Comment


          #5
          any help will be greatly appreciated, as I want to demo a client and based on its success want to subscribe to the PRo package.

          Thanks

          Comment


            #6
            You've incorrectly installed the software in some way. The simplest thing is just to redo the installation steps, which work. As far as the specific cause, it's not clear - you may, for example, actually be using the LGPL version (or some files from it), rather than the Eval version as you've claimed.

            Comment


              #7
              Hi,
              have you managed to run your code? I have similar problem. I'm trying to run charts from evaluation version. I've downloaded latest SmartGWTEE and added smartgwtee.jar to my project.
              Project's xml inherits:
              Code:
              <inherits name='com.google.gwt.user.User' />
              <inherits name="com.smartgwt.SmartGwt" />
              <inherits name="com.smartgwt.Charts" />
              When run code:
              Code:
              VLayout layout = new VLayout();
              ...
              FacetChart chart = new FacetChart();
              chart.setWidth100();
              chart.setHeight(300);
              chart.setTitle("My Chart");
              layout.addMember(chart);
              It displays empty field with title "My Chart".
              But when I also try to set other property eg. ChartType:
              Code:
              VLayout layout = new VLayout();
              ...
              FacetChart chart = new FacetChart();
              chart.setWidth100();
              chart.setHeight(300);
              chart.setTitle("My Chart");
              chart.setChartType(ChartType.SCATTER);
              layout.addMember(chart);
              It throws an exception on addMember(chart) procedure:
              Code:
              [ERROR] [builtinds] Uncaught exception escaped
              
              com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) @com.smartgwt.client.widgets.chart.FacetChart::create()([]): Unable to get property '1' of undefined or null reference
                  at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
                  at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
                  at sun.reflect.GeneratedMethodAccessor593.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
                  at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                  at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                  at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
                  at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
                  at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
                  at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
                  at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
                  at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
                  at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
                  at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
                  at sun.reflect.GeneratedMethodAccessor556.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
                  at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                  at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
                  at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
                  at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
                  at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
                  at java.lang.Thread.run(Unknown Source)
              Am I doing something wrong?
              Last edited by rp_; 26 May 2015, 22:23.

              Comment


                #8
                Your <inherits> are wrong (no smartgwtee inherit) - revisit the installation instructions.

                Comment


                  #9
                  I've also tried with:
                  Code:
                  <inherits name="com.smartgwtee.SmartGwtEE" />
                  result was the same.

                  Comment


                    #10
                    You may have forgotten to re-run a GWT compile. If that's not it, revisit the other Installation steps - something has been skipped or done wrongly, since you can see that everything works fine with a correct install (see Showcase).

                    Comment

                    Working...
                    X