Error using ImageLineChart class in GWT

14 views
Skip to first unread message

Shyam Visamsetty

unread,
Jun 18, 2010, 2:11:06 AM6/18/10
to Google API Libraries for GWT
I get the following error while using ImageLineChart. It works fine
while using LineChart instead of ImageLineChart.

Library version 1.1

com.google.gwt.core.client.JavaScriptException: (TypeError): undefined
is not a function
stack: TypeError: undefined is not a function
at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)
at [object Object].<anonymous> (unknown source)
at __gwt_jsInvoke (http://127.0.0.1:8888/gae_sens/hosted.html?
gae_sens:70:35)
at eval at <anonymous> (http://127.0.0.1:8888/gae_sens/hosted.html?
gae_sens:54:12)
at XMLHttpRequest.<anonymous> (unknown source)
at unknown source
at __gwt_jsInvoke (http://127.0.0.1:8888/gae_sens/hosted.html?
gae_sens:70:35)
at eval at <anonymous> (http://127.0.0.1:8888/gae_sens/hosted.html?
gae_sens:54:12)
at XMLHttpRequest.onreadystatechange (unknown source)
type: called_non_callable
arguments: undefined
__gwt_ObjectId: 2150
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at
com.google.gwt.visualization.client.visualizations.ImageChart.createJso(ImageChart.java)
at
com.google.gwt.visualization.client.visualizations.Visualization.<init>(Visualization.java:
63)
at
com.google.gwt.visualization.client.visualizations.Visualization.<init>(Visualization.java:
69)
at
com.google.gwt.visualization.client.visualizations.ImageChart.<init>(ImageChart.java:
169)
at com.sensorms.client.ChartWidget
$ChartDataAcceptorImpl.accept(ChartWidget.java:38)
at com.sensorms.client.SensorChartWidget
$SensorChartProvider.pushChartDetails(SensorChartWidget.java:152)
at com.sensorms.client.SensorChartWidget$SensorChartProvider
$2.onResponseReceived(SensorChartWidget.java:74)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1713)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
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:188)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1668)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:595)

Please provide Suggestions.

Thanks,
Shyam.

Eric Ayers

unread,
Jun 18, 2010, 9:37:18 AM6/18/10
to gwt-goo...@googlegroups.com
My first suggestion is that you provide a small sample of code to reproduce the problem - the stack trace is not shedding any light on the problem for me.  We have a demo of ImageLineChart that shows that it works in at least some cases.


-Eric.


--
You are subscribed to the Google Groups "GWT-Google-Apis" group.
For more options, visit http://groups.google.com/group/gwt-google-apis?hl=en



--
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

Shyam Sunder Santoshi Visamsetty

unread,
Jun 20, 2010, 7:13:19 AM6/20/10
to gwt-goo...@googlegroups.com
Hi Eric,

Thank you for the reply. I was able to resolve the issue. Basically, I loaded the LineChartPackage instead of ImageLineChart package while loading the Visualization API. This issue is resolved.

Thanks,
Shyam.

Shyam Sunder Santoshi Visamsetty

unread,
Jun 20, 2010, 7:13:41 AM6/20/10
to gwt-goo...@googlegroups.com
Hi Eric,

Thank you for the reply. I was able to resolve the issue. Basically, I loaded the LineChartPackage instead of ImageLineChart package while loading the Visualization API. This issue is resolved.

Thanks,
Shyam.

On Fri, Jun 18, 2010 at 6:37 AM, Eric Ayers <zun...@google.com> wrote:
Reply all
Reply to author
Forward
0 new messages