fmgasparino / google-gin

Automatically exported from code.google.com/p/google-gin
Apache License 2.0
0 stars 0 forks source link

ClassCastException JavaScriptObject$ cannot be cast to PlaceController etc. ONLY on Chrome in Dev Mode #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use Gin to get a PlaceController (or for that matter any other object)
2. with the below described config call 
http://127.0.0.1:8888/xxx.jsp?gwt.codesvr=127.0.0.1:9997
3. => Caused by: java.lang.ClassCastException: 
com.google.gwt.core.client.JavaScriptObject$ cannot be cast to 
com.google.gwt.place.shared.PlaceController

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Chrome 10.0.612.1
Gin 1.0
GWT 2.1.0
GWT Plugin for Eclipse 3.6 - 1.4.1 v201012170127

Please provide any additional information below.
This happens ONLY on Chrome and only in DevMode. Calling the exact same url 
 with Firefox works perfect. Calling the compiled and deployed app in Chrome works perfect. (Thanks for Gin/Guice, great project).

Retrieving a ClientBundle containing only Images works, retrieving a 
CssResource does not work.

Tracing into the GinModule reveals that the provider method is never reached. 
This crashes somewhere in the generated code.

Full disclosure.. :-( I updated Chrome and the Eclipse Plugin at the same time. 
One of them seems to cause the problem, but now I have no idea which one and I 
can't rollback the plugin update.

Workaround: don't use Chrome for Dev :-( This won't break my project, but I 
have gotten rather fond of Chrome.

Greeting from Bern

Rainer

Original issue reported on code.google.com by RAlfoeldi on 20 Dec 2010 at 3:30

GoogleCodeExporter commented 9 years ago
I have a similar problem: "java.lang.ClassCastException: 
com.google.gwt.core.client.JavaScriptObject$ cannot be cast to 
com.gwtplatform.mvp.client.AutobindDisable".

It's working in Firefox 3.6.13 and not working in Chrome 10.0.612.1 dev.

Gin r137
GWT 2.1.0, GWT 2.1.1
GWT Plugin for Eclipse 3.6 - 1.4.1 v201012170127

Original comment by dominik.mayer on 20 Dec 2010 at 7:45

GoogleCodeExporter commented 9 years ago
This could be a Chrome issue. See 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5778.

Original comment by RAlfoeldi on 21 Dec 2010 at 8:46

GoogleCodeExporter commented 9 years ago
Whatever this is, it is highly unlikely to be a Gin problem. I suggest you 
start looking for the problem on the GWT mailing lists. :)

Original comment by aragos on 21 Dec 2010 at 5:53