繁体   English   中英

GWT devmode Netbeans-错误

[英]GWT devmode netbeans - error

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

在netbeans中,当我以GWT开发人员运行项目时。 模式(托管模式)浏览器将发出以下警报(当我选择菜单项时,它将不会加载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.

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

00:00:26,149 [错误]未捕获的异常逃脱了java.lang.AssertionError:样式名称“ -mozOpacity”应采用com.google.gwt.dom.client.Style $ .assertCamelCase $(Style.java: 2154),位于org.gwm的com.google.gwt.user.client.DOM.setStyleAttribute(DOM.java:1240)的com.google.gwt.dom.client.Style $ .setProperty $(Style.java:2021) org.gwm.client.impl.OutlinePanel.OutlinePanel。(OutlinePanel.java:25)上的.client.impl.OutlinePanel.initUI(OutlinePanel.java:33)在org.gwm.client.impl.DefaultGFrame.initializeFrame(DefaultGFrame.java: 188)在org.gwm.client.impl.DefaultGFrame。(DefaultGFrame.java:174)在org.gwm.client.impl.DefaultGInternalFrame。(DefaultGInternalFrame.java:57)在org.gwm.client.impl.DefaultGInternalFrame。( org.gwm.client.impl.DefaultGInternalFrame。(DefaultGInternalFrame.java:47)处的com.softtechEU.gwtDataModule.iframes.JInternalFrame。(JInternalFrame.java:33)处的com.softtechEU.client.warehouse处的DefaultGInternalFrame.java:51) .ArticleListFrame。(ArticleListFrame.java:23)在com.soft 在com.google.gwt.user.client.ui.MenuBar $ 1.execute(MenuBar.java:900)在com.google.gwt.core.client上的techEU.client.MenuControl $ 6.execute(MenuControl.java:151)。在com.google.gwt.core.client上的impl.SchedulerImpl $ Task $ .executeScheduled $(SchedulerImpl.java:50)在com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:180)在com.google.gwt.core.client上。在com.google.gwt.core.client.impl.Impl.exit(Impl.java:266)上的impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:279)在com.google.gwt.core.client.impl.Impl。 java.lang.reflect.Method.invoke(Method.java :)上的sun.reflect.GeneratedMethodAccessor38.invoke的entry0(Impl.java:257)(sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)处的Unknown Source) 601),位于com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)的com.google.gwt.dev.shell.MethodDispatch.invoke(MethodAdaptor.java:71)的com.google.gwt .com.google.gwt.dev.shell.Brows上的.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)上的erChannelServer.reactToMessages(BrowserChannelServer.java:293)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代码中使用非破折号属性名称。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM