漏洞? GXT (Ext GWT) 在“devmode”下编译目标但不适用于“构建”;
我正在开发一个 GXT 项目,并且正在使用 GXT UiBinder。我正在使用 ant
进行编译。目标 devmode
工作正常,没有错误,我可以看到我的应用程序在浏览器中运行。但是使用目标 build
我收到以下错误:
[ERROR] Errors in 'jar:file:/home/webbtra/dev/rail_gxt/gxt-2.2.3/gxt.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java'
[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found class com.google.gwt.core.ext.typeinfo.JClassType, but interface was expected
我正在使用这些版本,我读到它们应该兼容:
- GWT 版本:2.1.1(也尝试过 2.2.0 和 2.0) .4 具有相同的结果)
- GXT 版本:2.2.3
如果我从模块文件中删除
,编译将正常工作,并且仅使用 GWT 组件。但同样,奇怪的是它在 devmode
下工作得很好。任何帮助表示赞赏。
-tjw
I'm working on a GXT project, and I'm using GXT UiBinder. I'm compiling with ant
. The target devmode
works fine with no errors, and I'm able to see my application running in the browser. But using the target build
I get the following error:
[ERROR] Errors in 'jar:file:/home/webbtra/dev/rail_gxt/gxt-2.2.3/gxt.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java'
[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found class com.google.gwt.core.ext.typeinfo.JClassType, but interface was expected
I'm using these versions, which I've read that they should be compatible:
- GWT Version: 2.1.1 (also tried 2.2.0 and 2.0.4 with same result)
- GXT Version: 2.2.3
Compilation will work if I remove <inherits name="com.jhickman.web.gwt.gxtuibinder.GxtUiBinder" />
from my module file, and use only GWT components. But again, it's strange that it works fine in devmode
. Any help is appreciated.
-tjw
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
想通了。尽管 GXT 2.2.3 声称与 GWT 2.2 兼容,但事实并非如此。我恢复到 GXT 2.2.1 和 GWT 2.0.4,它工作得很好。
Figured it out. Even though GXT 2.2.3 claims to be compatible with GWT 2.2, it isn't. I reverted back to GXT 2.2.1 and GWT 2.0.4 and it works perfectly.
我刚刚收到与您发布的完全相同的错误消息(即使没有使用 GxtUiBinder!),但我不小心将 GWT SDK 设置为 2.1.1(在 Eclipse 中)。我正在使用“gxt-2.2.3-gwt22.jar”,所以这显然无法工作。
将 GWT SDK 切换到 2.2.0 解决了该问题。看起来,GXT 2.2.3 + GWT 2.2.0 可以很好地协同工作。
如果您想再试一次,请确保您不只是更改 GWT 库,而是真正切换 GWT SDK。 (例如在 Eclipse 中:项目 > 属性 > Google > Web Toolkit > 使用特定 SDK)
I just got the exact same error message you posted (even without using GxtUiBinder!), but I accidentally had set my GWT SDK to 2.1.1 (in Eclipse). I'm using "gxt-2.2.3-gwt22.jar", so this obviously cannot work.
Switching the GWT SDK to 2.2.0 solved the problem. So it seems, that GXT 2.2.3 + GWT 2.2.0 work together just fine.
If you'd like to try it again, make sure, that you don't just change the GWT library, but really switch the GWT SDK. (eg in Eclipse: Project > Properties > Google > Web Toolkit > Use specific SDK)
我设法让它们一起编译(gwt 2.2 + GXT 2.2.3),但是GWT Designer(Window Builder也是)在解析代码时开始抛出异常。没有 GXT - 一切都很好。由于设计器错误,我被迫降级 GWT。
I'm managed to have them compiling together (gwt 2.2 + GXT 2.2.3) , but GWT Designer (Window Builder too) started throwing exceptions while parsing code. Without GXT - everything is fine. Becouse of Designer bug, i'm forced to downgrade GWT.