GWT 2.5.0-rc1 and eclipse (3.7 and 4.2) problems

3,624 views
Skip to first unread message

Juan Pablo Gardella

unread,
Jul 4, 2012, 1:36:51 AM7/4/12
to google-we...@googlegroups.com
Hi folks,

I tried with eclipse 3.7 and eclipse 4.2 run inside eclipse with GWT 2.5.0-rc1 and had the same error in both. If I compile with maven the application run well, but in dev mode fails. I'm using FF13 with the last plugin.

Could any tell me some tips to use GWT 2.5.0-rc1 inside eclipse?

Thanks in advance.

I paste the stacktrace here:

02:32:43.765 [ERROR] [myapp] Unable to load module entry point class com.google.gwt.useragent.client.UserAgentAsserter (see associated exception for details)

java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.useragent.client.UserAgentAsserter$UserAgentProperty' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
    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.ModuleSpace.onLoad(ModuleSpace.java:405)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:604)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:464)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
    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.ModuleSpace.onLoad(ModuleSpace.java:405)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:619)


Juan Pablo Gardella

unread,
Jul 4, 2012, 2:03:10 AM7/4/12
to google-we...@googlegroups.com
Well, if I add user.agent property in the module file, in dev mode runs :)





2012/7/4 Juan Pablo Gardella <gardella...@gmail.com>

Thomas Broyer

unread,
Jul 4, 2012, 7:21:05 PM7/4/12
to google-we...@googlegroups.com
Could be related to https://github.com/tbroyer/gwt-maven-archetypes/issues/15
I.e. you compiled a module with a single user.agent value (so no property-provider has been generated in the *.nocache.js, the value has been hard-coded).

Juan Pablo Gardella

unread,
Jul 4, 2012, 7:25:24 PM7/4/12
to google-we...@googlegroups.com
Thanks Thomas, but only happen when I migrate to GWT 2.5, with GWT 2.4 this issue never happens. And thanks for the archetype! Is very helpfull

Juan

2012/7/4 Thomas Broyer <t.br...@gmail.com>
Could be related to https://github.com/tbroyer/gwt-maven-archetypes/issues/15
I.e. you compiled a module with a single user.agent value (so no property-provider has been generated in the *.nocache.js, the value has been hard-coded).

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1ILuT77srBUJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Jul 4, 2012, 7:33:02 PM7/4/12
to google-we...@googlegroups.com


On Thursday, July 5, 2012 1:25:24 AM UTC+2, Juan Pablo Gardella wrote:
Thanks Thomas, but only happen when I migrate to GWT 2.5, with GWT 2.4 this issue never happens.

UserAgentAsserter didn't exist in 2.4.

Andrey Korzhevskiy

unread,
Jul 6, 2012, 11:11:02 AM7/6/12
to google-we...@googlegroups.com
I had that problem. The solution is to clean cache/cookies/etc in your browser (i use firefox for devmode).

среда, 4 июля 2012 г., 9:36:51 UTC+4 пользователь Juan Pablo Gardella написал:

Robert Hoffmann

unread,
Feb 19, 2013, 3:07:02 PM2/19/13
to google-we...@googlegroups.com
+1

Same problem since GWT 2.5 (also with GWT 2.5.1-rc1)


Robert Hoffmann

unread,
Feb 19, 2013, 3:09:26 PM2/19/13
to google-we...@googlegroups.com
ERROR: Deferred binding failed for 'com.google.gwt.useragent.client.UserAgentAsserter.UserAgentProperty'; expect subsequent failures
    ERROR: Error while executing the JavaScript provider for property 'user.agent'
com.google.gwt.core.client.JavaScriptException: (TypeError) __gwt_getProperty([string: 'user.agent']): Result of expression 'i[a]' [undefined] is not a function.
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:193)
    at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:130)
    at com.google.gwt.useragent.rebind.UserAgentGenerator.generate(UserAgentGenerator.java:82)
    at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
    at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)

    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
    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.ModuleSpace.onLoad(ModuleSpace.java:406)

    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:680)
    ERROR: Unable to find value for 'user.agent'
com.google.gwt.core.ext.BadPropertyValueException: Property 'user.agent' cannot be set to unexpected value '<failed to compute>'
    at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:201)
    at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:130)
    at com.google.gwt.useragent.rebind.UserAgentGenerator.generate(UserAgentGenerator.java:82)
    at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
    at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)

    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
    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.ModuleSpace.onLoad(ModuleSpace.java:406)

    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:680)
ERROR: Unable to load module entry point class com.google.gwt.useragent.client.UserAgentAsserter (see associated exception for details)

java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.useragent.client.UserAgentAsserter$UserAgentProperty' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
    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.ModuleSpace.onLoad(ModuleSpace.java:406)

    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:680)

Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:605)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)

    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
    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.ModuleSpace.onLoad(ModuleSpace.java:406)

    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:680)
ERROR: Failed to load module '...' from user agent 'Safari DMP' at localhost:54686

Jens

unread,
Feb 19, 2013, 4:21:08 PM2/19/13
to google-we...@googlegroups.com
Does the error go away when you delete the folder war/<appname> ? I think your war/<appname>/hosted.html page is maybe outdated and needs to be regenerated by GWT DevMode.

-- J.

Dr. Robert Hoffmann

unread,
Feb 19, 2013, 4:45:42 PM2/19/13
to google-we...@googlegroups.com
So the problem occurs when I use DevMode and either omit the user.agent
definition or specify
<set-property name="user.agent" value="safari"/>

What seems to have a stable positive effect is to use:
<set-property name="user.agent" value="safari, gecko1_8"/>

Note: before, I was trying all kind of permutations, deleting the
IntelliJ/DevMode-cache (including /<appname>/hosted.html) and browser
cache, which seemed to have had an effect but upon reload through the
DevMode the error reappeared.

I am using the OmniWeb browser (on OsX). Same with Chrome only that
Chrome consistently crashes the DevMode.
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to google-web-tool...@googlegroups.com.
> To post to this group, send email to google-we...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--
Robert Hoffmann, Phd

Dr. Robert Hoffmann

unread,
Feb 20, 2013, 9:23:05 AM2/20/13
to google-we...@googlegroups.com
Ok so the problem reappeared despite my comment above.

This time the following procedure helped:
1) Stop DevMode server process
2) remove the IntelliJ Gwt Cache (including war/<appname>/hosted.html)
3) AND clear the browser cache!!

NOTE that ONLY removing the IntelliJ Gwt Cache (including
war/<appname>/hosted.html) did not do it.


On 19.02.13 22:21, Jens wrote:

Jens

unread,
Feb 20, 2013, 9:52:26 AM2/20/13
to google-we...@googlegroups.com

3) AND clear the browser cache!!

Ah yeah makes sense. I have a local apache pointing to my IntelliJ project output and that local apache adds no-cache headers for hosted.html and proxies server requests to the backend (embedded jetty or external servlet container). So I do not have the caching issue and forgot about it.

-- J.

Jivko Vantchev

unread,
Jan 21, 2014, 4:52:32 AM1/21/14
to google-we...@googlegroups.com
I had the almost same issue as described. The difference was that it worked in dev mode the first time and then crashed after a reload of the page.

Some basic system data:

OS: Kubuntu 13.10
Browser: Chrome 32 stable

I tried several things with variable success rates:
- deleting the whole war folder (which also includes the gwt-unitCache)
- clearing the IDE (IntelliJ) gwt cache (in the .intellij/system/gwt folder) and invalidating all caches.
- clearing browser cache.

Nothing of the above really worked. The problem appeared to be the second of the following lines in the gwt.xml file.

<set-property name="user.agent" value="safari"/>
<extend-property name="locale" values="default"/>

after I switched it to the corresponding locale that is to be used, it worked. Maybe if that doesn't help also add another user.agent (gecko1_8) as the problem might also be closely related to: https://github.com/tbroyer/gwt-maven-archetypes/issues/15
I hope that this helps others that have the same problem.
Reply all
Reply to author
Forward
0 new messages