gpt4 book ai didi

gwt - SmartGWT onModuleLoad()引发异常

转载 作者:行者123 更新时间:2023-12-04 13:48:25 25 4
gpt4 key购买 nike

将SmartGWT添加到现有GWT项目后,出现以下异常:

onModuleLoad() threw an exception


Exception while loading module com.smartgwt.client.SmartGwtEntryPoint. 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:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Unable to get value of the property 'Browser': object is null or undefined
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.SmartGwtEntryPoint.init(SmartGwtEntryPoint.java)
at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java:239)
... 9 more


我已将 jar文件添加到构建路径,还将继承节点添加到了 *.gwt.xml。我想念什么?

最佳答案

我有这个问题。我尝试了许多不同的修复程序,但最后似乎是由于身份验证问题而没有加载某些资源(JavaScript文件和CSS文件)(我使用的是Spring安全性,但忘记了提供对Web某些子文件夹的访问权限)应用)。

对GWT应用进行故障排除时,需要执行一些重要的过程。即使根本没有,它们也可能导致问题。


清除浏览器缓存
使用代码服务器查询字符串(例如http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997
GWT编译您的代码


Google Chrome浏览器也可能有问题(如果您使用的是这种情况)。 SmartGWT的专家建议您不要使用Chrome进行GWT开发。
http://forums.smartclient.com/showthread.php?t=8159#aChrome

关于gwt - SmartGWT onModuleLoad()引发异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8702538/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com