Hi Everyone,
I've been trying to upgrade a gwt 2.2 project to 2.4 and have been getting lots of number format exceptions similar to below. There seems to be a problem with i18n. My configuration is gwt + maven + spring. I use the eclipse plugin and gwt maven plugin. The maven plugin shares the same version number as gwt (2.4.0).
Any ideas on what I might be doing incorrectly? All help would be greatly appreciated. I've put the chunks of the pom file that relate to gwt below:
10:12:17.788 [ERROR] [webclient] '=1' is not a valid integral value
java.lang.NumberFormatException: For input string: "=1"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at com.google.gwt.i18n.rebind.MessagesMethodCreator$GenericSelector.generateSelectMatchStart(MessagesMethodCreator.java:326)
at com.google.gwt.i18n.rebind.MessagesMethodCreator.generateMessageSelectors(MessagesMethodCreator.java:1459)
at com.google.gwt.i18n.rebind.MessagesMethodCreator.createMethodFor(MessagesMethodCreator.java:1202)
at com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:501)
at com.google.gwt.i18n.rebind.MessagesImplCreator.emitMethodBody(MessagesImplCreator.java:92)
at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:276)
at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:238)
at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:117)
at com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:225)
at com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:151)
at com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:124)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at com.nterop.app.client.view.widget.AuditingWidget_AuditingWidgetUiBinderImpl.createAndBindUi(AuditingWidget_AuditingWidgetUiBinderImpl.java:26)
at com.nterop.app.client.view.widget.AuditingWidget_AuditingWidgetUiBinderImpl.createAndBindUi(AuditingWidget_AuditingWidgetUiBinderImpl.java:1)
at com.nterop.app.client.view.widget.AuditingWidget.<init>(AuditingWidget.java:38)
at com.nterop.app.client.view.impl.ItemSummaryView.<init>(ItemSummaryView.java:93)
at com.nterop.app.client.impl.ClientFactory.getBrowsePagePresenter(ClientFactory.java:213)
at com.nterop.app.client.impl.PageUtility.createPagePresenter(PageUtility.java:268)
at com.nterop.app.client.impl.AppController.onValueChange(AppController.java:115)
at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)
at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1)
at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:75)
at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:82)
at com.google.gwt.user.client.impl.HistoryImpl.newItem(HistoryImpl.java:126)
at com.google.gwt.user.client.History.newItem(History.java:169)
at com.google.gwt.user.client.History.newItem(History.java:154)
at com.nterop.app.client.impl.AppController.gotoHome(AppController.java:94)
at com.nterop.app.client.impl.AppController.go(AppController.java:86)
at com.nterop.app.client.impl.WebClient$2.onRequestSuccess(WebClient.java:685)
at com.nterop.app.client.impl.WebClient$2.onRequestSuccess(WebClient.java:1)
at com.nterop.app.client.AbstractCallback.onSuccess(AbstractCallback.java:17)
at com.nterop.app.client.impl.ClientCache$2.onRequestSuccess(ClientCache.java:81)
at com.nterop.app.client.impl.ClientCache$2.onRequestSuccess(ClientCache.java:1)
at com.nterop.app.client.impl.PropertyCache$1.onRequestSuccess(PropertyCache.java:32)
at com.nterop.app.client.impl.PropertyCache$1.onRequestSuccess(PropertyCache.java:1)
at com.nterop.app.client.AbstractCallback.onSuccess(AbstractCallback.java:17)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
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.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:292)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:662)
pom:
<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
<executions>
<execution>
<configuration>
<extraJvmArgs>-Xmx1024M -Xss2048k</extraJvmArgs>
</configuration>
<goals>
<goal>compile</goal>
<goal>test</goal>
<!--
<goal>resources</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
-->
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see gwt-maven-plugin documentation at
codehaus.org -->
<configuration>
<runTarget>WebClient.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<module>com.nterop.app.WebClient</module>
<!-- Firefox 3, with htmlunit needed to run the GWTTestCase since it requires a browser-->
<htmlunit>FF3</htmlunit>
<mode>htmlunit</mode>
<!--
<server>com.google.appengine.tools.development.gwt.AppEngineLauncher</server>
-->
<!-- What does this do? it is where the plugin builds the test code to-->
<out>${project.build.directory}/www-test</out>
</configuration>
</plugin>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>