gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.52k stars 376 forks source link

GWT Plugin for Chrome, binding failed for UserAgentProperty #7230

Open dankurka opened 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 7233

Found in GWT Release (e.g. 2.4.0, 2.5.0 RC): 2.4.0

Encountered on OS / Browser:

Mac OS X lion, chrome 17.0.963.66, GWT Developer Plugin1.0.9738

Detailed description: i've recently configured a new environment and installed the
gwt plugin for chrome but i'm getting the following error when i run my app with debug
as a web application:

on the Eclipse console:

2012-03-06 17:27:34.800 java[2817:407] [Java CocoaComponent compatibility mode]: Enabled
2012-03-06 17:27:34.802 java[2817:407] [Java CocoaComponent compatibility mode]: Setting
timeout for SWT to 0.100000
Exception in thread "Thread-3" java.lang.NullPointerException
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.JavaScriptException.getName0(JavaScriptException.java)
    at com.google.gwt.core.client.JavaScriptException.getName(JavaScriptException.java:64)
    at com.google.gwt.core.client.JavaScriptException.init(JavaScriptException.java:179)
    at com.google.gwt.core.client.JavaScriptException.getMessage(JavaScriptException.java:162)
    at com.google.gwt.dev.util.log.AbstractTreeLogger.getStackTraceAsString(AbstractTreeLogger.java:70)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceClient.generateLogData(ViewerServiceClient.java:296)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceClient.addLogEntry(ViewerServiceClient.java:118)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger.sendEntry(ViewerServiceTreeLogger.java:158)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger$PendingLog.send(ViewerServiceTreeLogger.java:72)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger.initLogHandle(ViewerServiceTreeLogger.java:134)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger$1.onDone(ViewerServiceTreeLogger.java:145)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger$1.onDone(ViewerServiceTreeLogger.java:143)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceClient$1.onDone(ViewerServiceClient.java:96)
    at com.google.gwt.dev.shell.remoteui.ViewerServiceClient$1.onDone(ViewerServiceClient.java:94)
    at com.google.gwt.dev.shell.remoteui.MessageTransport$PendingRequest.setResponse(MessageTransport.java:124)
    at com.google.gwt.dev.shell.remoteui.MessageTransport.processServerResponse(MessageTransport.java:423)
    at com.google.gwt.dev.shell.remoteui.MessageTransport.processMessage(MessageTransport.java:399)
    at com.google.gwt.dev.shell.remoteui.MessageTransport.access$400(MessageTransport.java:44)
    at com.google.gwt.dev.shell.remoteui.MessageTransport$3.run(MessageTransport.java:322)
    at java.lang.Thread.run(Thread.java:680)

on the developer mode tab:

17:27:44.259 [ERROR] [myapp]  binding failed for 'com.google.gwt.user.client.UserAgentAsserter.UserAgentProperty';
expect subsequent failures

17:27:44.326 [ERROR] [myapp] Unable to load module entry point class com.google.gwt.user.client.UserAgentAsserter
(see associated exception for details)
java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.user.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.client.GWT.create(GWT.java:97)
    at com.google.gwt.user.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:44)
    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:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    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:595)
    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.google.gwt.user.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:44)
    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:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:680)

Failed to load module 'myapp' from user agent 'Mozilla/5.0 (Macintosh; Intel Mac OS
X 10_7_2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.66 Safari/535.11'
at localhost:56351

With firefox or OmniWeb it works just fine (cannot try with safari because of an api
issue). 
GWT Plugin for Chrome bug? sorry if the wrong place to post this.

Kocisky

Reported by alexander.kocisky on 2012-03-06 22:37:31

dankurka commented 9 years ago
Did you find a solution for this? I'm also running into this problem.

Reported by martin.grotzke on 2012-06-24 20:35:16

dankurka commented 9 years ago
hi everyone. i had the same problem, when i went back from 2.5.0rc1 to 2.4.0
Issue resolved cleaning entire cache,cookies of firefox which i was running devmode
page on

Reported by a.korzhevskiy on 2012-07-02 14:50:08

dankurka commented 9 years ago
I also ran into this problem on Windows 7, just out of the blue. Everything completely
stopped working in both Chrome & FF.

Things went back to normal after deleting gwt-UnitCache and restarting eclipse and
using IE with cleared cache to do the first load. (last part seems a bit voodoo - I
don't know if that's what made the difference)

Reported by tomer.barkai@takadu.com on 2012-07-25 09:08:06

dankurka commented 9 years ago
I had the same problem and what helped was to use the correct Eclipse "Web Application"
Arguments set from the run configurations.

OS: Ubuntu 11.10
Java: 1.6.0_33
GWT: 2.5.0.rc1
Browser: FF 11

Reported by jivko.vantchev@egym.de on 2012-09-03 10:07:10

dankurka commented 9 years ago
Same issue. Clearing Chrome cookies and cache worked for me.

Reported by rsallar on 2012-11-22 09:53:32

dankurka commented 9 years ago
For me, my solution is to delete my Eclipse projects and do a Maven re-import, which
temporarily fixes it (until my next rebuild).

Reported by eric.s.landry on 2012-12-17 16:17:15

dankurka commented 9 years ago
Same issue. Clearing Chrome cache worked for me.

Reported by ohodil on 2013-01-16 12:22:29

dankurka commented 9 years ago
Same issue with:
OS: Windows XP (32 bits) SP3
Java: 1.7.0_05
GWT: 2.5.0
Browser: FF 20.0.1

Reported by Ignacio.Serrano@gft.com on 2013-05-07 16:03:56

dankurka commented 9 years ago
Can someone post a small example that reproduces the issue?

Reported by dankurka@google.com on 2013-06-09 14:33:16

dankurka commented 9 years ago
Clearing Firefox cache fixed it for me too!

Reported by RogerMHand on 2014-06-18 06:48:18