java - GWT devmode netbeans - 错误

标签 java css jakarta-ee gwt

经过几个小时的搜索解决方案,我需要问你。 也许这个问题是重复的,但请问我该如何解决:

当我以 GWT Dev 身份运行元素时,在 netbeans 中。模式(托管模式)浏览器警告如下(当我选择菜单项时,它不会加载 JInternalFrame)(当我将它部署到 glassfish 中时,它工作得很好):

Uncaught exception escaped : java.lang.AssertionError
The style name '-mozOpacity' should be in camelCase format
See the Development console log for details.
Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling.

部署它时 fork 完美。但构建和部署需要 15 分钟。所以我真的需要解决这个问题。 SmartGWT 和 GWT sdk 是最新版本。我们没有在代码中使用 setAttribute 或 -mozOpacity。所以这是 GWT 中包含的内容。

00:00:26,149 [ERROR] Uncaught exception escaped java.lang.AssertionError: The style name '-mozOpacity' should be in camelCase format at com.google.gwt.dom.client.Style$.assertCamelCase$(Style.java:2154) at com.google.gwt.dom.client.Style$.setProperty$(Style.java:2021) at com.google.gwt.user.client.DOM.setStyleAttribute(DOM.java:1240) at org.gwm.client.impl.OutlinePanel.initUI(OutlinePanel.java:33) at org.gwm.client.impl.OutlinePanel.(OutlinePanel.java:25) at org.gwm.client.impl.DefaultGFrame.initializeFrame(DefaultGFrame.java:188) at org.gwm.client.impl.DefaultGFrame.(DefaultGFrame.java:174) at org.gwm.client.impl.DefaultGInternalFrame.(DefaultGInternalFrame.java:57) at org.gwm.client.impl.DefaultGInternalFrame.(DefaultGInternalFrame.java:51) at org.gwm.client.impl.DefaultGInternalFrame.(DefaultGInternalFrame.java:47) at com.softtechEU.gwtDataModule.iframes.JInternalFrame.(JInternalFrame.java:33) at com.softtechEU.client.warehouse.ArticleListFrame.(ArticleListFrame.java:23) at com.softtechEU.client.MenuControl$6.execute(MenuControl.java:151) at com.google.gwt.user.client.ui.MenuBar$1.execute(MenuBar.java:900) at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50) at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:180) at com.google.gwt.core.client.impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:279) at com.google.gwt.core.client.impl.Impl.exit(Impl.java:266) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:257) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) 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:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) at java.lang.Thread.run(Thread.java:722)

谢谢你

最佳答案

这不是与 GWT 库相关的问题。要么您有一段代码用“破折号”设置 css 属性,要么 SmartGWT 库有这样一段代码。您可以在 GWT 问题列表上看到类似的报告问题 - https://code.google.com/p/google-web-toolkit/issues/detail?id=5152

解决方案是避免在 GWT 代码中使用此类 css 属性。在 GWT 代码中使用非破折号属性名称。

关于java - GWT devmode netbeans - 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16774838/

相关文章:

java - GeoTools:在 map 上绘制多边形

javascript - 单击时的菜单项显示无

java - 处理同一页面上没有请求的丢失文件下载链接

java - 尝试在 Activity 目录中执行 LDAP 查找时出错

java - 使用Jxls生成pdf

java - Firefox port.emit 和 port.on 在扩展中不起作用

java - 如何解码 JasperReports 中的 html 实体

java - Java 项目中的 Android 类

jquery - 使用 JQuery 向图像添加类

html - 歌剧中未显示下拉图像