I keep getting the following error when I attempt to load the widget.
com.google.gwt.core.client.JavaScriptException: (TypeError) @org.moxieapps.gwt.highcharts.client.BaseChart::nativeRenderChart(Ljava/lang/String;Lcom/google/gwt/core/client/JavaScriptObject;ZZLcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)([string: 'Chart', JavaScript object(14), bool: true, bool: false, JavaScript object(45), JavaScript object(46), JavaScript object(47), JavaScript object(36), JavaScript object(41), JavaScript object(35), JavaScript object(39), JavaScript object(40), JavaScript object(43), JavaScript object(44)]): Object doesn't support this action
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 org.moxieapps.gwt.highcharts.client.BaseChart.nativeRenderChart(BaseChart.java)
at org.moxieapps.gwt.highcharts.client.BaseChart.onLoad(BaseChart.java:2355)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:350)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:475)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:127)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:97)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
at chartwidget.TestChart.onModuleLoad(TestChart.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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(Thread.java:722)
I'm using org.moxieapps.gwt.highlightcharts-1.6.0.jar.
I am referencing highcharts.src.js and highcharts-more.src.js from Highcharts-3.0.4.zip
Not sure, but I'm suspecting that you likely are utilizing a version of jQuery that is too old (the 3.x versions Highcharts now require you to include a more up to date version of jQuery). Can you try upgrading your jQuery version to something more recent, and see if that clears up the problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the reply! I've tried referencing jQuery 1.10.2 and 2.0.3, but neither fixed the problem. Could you tell me which version I should be using?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am new to highcharts gwt and struggling get the basic line chart example http://www.moxiegroup.com/moxieapps/gwt-highcharts/showcase/#line-basic to run as a starting point. Any help will be GREATLY appreciated!!!
I keep getting the following error when I attempt to load the widget.
com.google.gwt.core.client.JavaScriptException: (TypeError) @org.moxieapps.gwt.highcharts.client.BaseChart::nativeRenderChart(Ljava/lang/String;Lcom/google/gwt/core/client/JavaScriptObject;ZZLcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)([string: 'Chart', JavaScript object(14), bool: true, bool: false, JavaScript object(45), JavaScript object(46), JavaScript object(47), JavaScript object(36), JavaScript object(41), JavaScript object(35), JavaScript object(39), JavaScript object(40), JavaScript object(43), JavaScript object(44)]): Object doesn't support this action
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 org.moxieapps.gwt.highcharts.client.BaseChart.nativeRenderChart(BaseChart.java)
at org.moxieapps.gwt.highcharts.client.BaseChart.onLoad(BaseChart.java:2355)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:350)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:475)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:127)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:97)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
at chartwidget.TestChart.onModuleLoad(TestChart.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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(Thread.java:722)
I'm using org.moxieapps.gwt.highlightcharts-1.6.0.jar.
I am referencing highcharts.src.js and highcharts-more.src.js from Highcharts-3.0.4.zip
<script type="text/javascript" src="js/highcharts.src.js"></script> <script type="text/javascript" src="js/highcharts-more.src.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>Any suggestions?
I'm still struggling with this and looking for some guidance. Does anyone have any advice?
Is there a dependency that I could be missing?
Not sure, but I'm suspecting that you likely are utilizing a version of jQuery that is too old (the 3.x versions Highcharts now require you to include a more up to date version of jQuery). Can you try upgrading your jQuery version to something more recent, and see if that clears up the problem?
Shawn,
Thanks for the reply! I've tried referencing jQuery 1.10.2 and 2.0.3, but neither fixed the problem. Could you tell me which version I should be using?