Sunday, September 13, 2015

Re: Getting issue while debugging GWT Module

You are in 'production mode' if you are executing javascript code. This is always true in final compiled code (production code 😀) and after 2.7 is the default development strategy (using SuperDevMode). If you are executing your code in a explorer using Java code (instead of JS) is because you are using the GWT Developer Plugin. You should try SuperDevMode instead. See http://www.gwtproject.org/articles/superdevmode.html

Names are pretty confusing in GWT (I think this is because its functionality has changed/evolved but the names are still the original ones, for example, before superdevmode, 'production mode' is only the final compiled output, but after superdevmode appears, 'production mode' is also used during development, so PRODUCTION is no longer a good name, probably 'javascript mode' and 'java mode' is much more easy to understand; something similar with DevMode)...
production mode -> javascript code used during runtime
DevMode -> web server, and some hooks for the developer plugin or superdevmode (configured with arguments)
DevMode with SuperDevMode param -> web server + codeserver
SuperDevMode -> runtime javascript code using a tool which compile the code on the fly, this tool is codeserver

On Saturday, September 12, 2015 at 2:51:03 PM UTC+2, anil gupta wrote:
Thanx for the reply can you guide me how can I enable Prod mode I am very new to GWT and need your support

Thanks
Regards
Anil

On Wednesday, 9 September 2015 20:39:38 UTC+5:30, Ignacio Baca Moreno-Torres wrote:
Java arrays are native JS arrays in production mode, and look like you are casting a JS array to Java array in dev mode, probably doing something like...
native CallDialedNumber[] getNumbers()/-*{ return this.numbers; }-*/;
You may return JsArray<CallDialedNumber> (http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsOverlay.html) or use only prod mode, which I think is a good idea (prod mode is faster and dev mode is deprecated).

On Wednesday, September 9, 2015 at 3:33:43 PM UTC+2, anil gupta wrote:
Hello Team,


when I am debugging my application with help of 

getting below need someone's immediate help.

cjava.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$ cannot be cast to [Lcom.qwest.eqsms.client.structure.CallDialedNumber;

But when I am running without GWT plugging its working file please suggest for the fix.

I am using below plugin for debugging






Regards
Anil

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment