Javascript 仅在图表中出现GWT EXT异常
我正在尝试使用GWT-EXT showcase中的折线图showcase代码创建图表,如所示 但在浏览器中遇到以下错误:Javascript 仅在图表中出现GWT EXT异常,javascript,gwt,extjs,charts,gwt-ext,Javascript,Gwt,Extjs,Charts,Gwt Ext,我正在尝试使用GWT-EXT showcase中的折线图showcase代码创建图表,如所示 但在浏览器中遇到以下错误: onModuleLoad() threw an exception Exception while loading module com.client.LineChartSample. See Development Mode for details. java.lang.reflect.InvocationTargetException at sun.reflect.Na
onModuleLoad() threw an exception
Exception while loading module com.client.LineChartSample. See Development Mode for details.
java.lang.reflect.InvocationTargetException
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:411)
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)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) @com.gwtext.client.widgets.chart.yui.NumericAxis::create()([]): '$wnd.YAHOO.widget' is null or not an object
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: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.gwtext.client.widgets.chart.yui.NumericAxis.create(NumericAxis.java)
at com.gwtext.client.widgets.chart.yui.Axis.<init>(Axis.java:37)
at com.gwtext.client.widgets.chart.yui.NumericAxis.<init>(NumericAxis.java:33)
at com.client.LineChartSample.onModuleLoad(LineChartSample.java:66)
... 9 more
Eclipse IDE开发模式中出现以下错误[error][linechartsample]-未能从用户代理“Mozilla/5.0 Windows NT 6.1”加载模块“linechartsample”;WOW64 AppleWebKit/537.36 KHTML,如Gecko Chrome/35.0.1916.153 Safari/537.36',127.0.0.1:54415
我尝试了showcase中的其他showcase代码,包括简单的表单、按钮等,这些代码运行起来没有任何问题。可能的原因是什么?得到了答案。。我没有继承一个重要的模块。。。 添加行后,相同的代码开始工作:
<inherits name="com.gwtext.Charts" />
到gwt.xml文件。。。
其余的都保持不变。您碰巧也有自己的代码?没有代码的Stacktrace无法清楚地回答问题,也看不出问题所在;是html5的一个特性,根据这里的说法,gwt-ext不支持它。那么你是如何得到apos的呢?还有一个问题,手头的代码更清楚。