Wednesday, January 7, 2015

Re: ClassCastException when trying SuperDevMode on my application with 2.7

Here's a bit of follow up on this issue.

First of all as pointed out in the discussion in this issue (which links to this G+ post) this problem is not related to SDM and this issue is not what was preventing my application from starting in SDM.

Turns out my EntryPoint was a sub-class of another class and neither class was marked as "implements EntryPoint". Inspite of this problem, the application runs when compiled and deployed and would start and run under SDM with GWT 2.6.0, but would not run in SDM in GWT 2.7.0. After correcting that problem the I can use SDM and am quite happy with it in combination with the SDBG plug-in (thanks for the setup tutorial).

The exception is still thrown (as is a similar exception when the code server runs in 2.6), but the application starts and I can debug. Bottom line: pilot error.

Roland

On Tuesday, November 25, 2014 4:56:44 PM UTC-6, Roland wrote:
Thanks. So far I have been unable to isolate this into a smaller example. I've tried some very basic entrypoint classes and added the external modules I use like the Openlayers gwt wrapper and the gwttime (which has one of its classes mentioned in the trace). They all have worked fine.

Open to any suggestions for how to get more information about what's going on that I can report back...

Roland

On Saturday, November 22, 2014 1:20:45 PM UTC-6, John Stalcup wrote:
It sounds like one of the registered EntryPoint classes or something that one of the EntryPoint classes is being rebound to does not implement the EntryPoint interface.

On Sat, Nov 22, 2014, 1:29 AM Thomas Broyer <t.br...@gmail.com> wrote:
+cc stalcup@

Any idea John?

Roland, can you make a small repro-case?

On Saturday, November 22, 2014 12:38:16 AM UTC+1, Roland wrote:

With the advent of 2.7 I am determined to get going with SuperDevMode. However, once my development environment (Eclipse) is all set to run the code server when I try to load my application using SuperDevMode I get the following error. This actually happens whether I compile with debug mode on or debug mode off when loading the code this way. I don't know what piece of the tool chain is reporting the error, but this shows up in my JavaScript console.


Uncaught java.lang.ClassCastException            Cast.java:59

dynamicCast_0_g$                                 gov_00046noaa_00046pmel_00046tmap_00046las_00046UI__EntryMethodHolder.java:3

init_2_g$                                        ModuleUtils.java:44

initializeModules_0_g$                           Impl.java:247

apply_1_g$                                       Impl.java:306

entry0_0_g$                                      Impl.java:72

(anonymous function)                             ModuleUtils.java:55

gwtOnLoad_0_g$                                   PeriodPrinter.java:40 (anonymous function)


This happens both when I try Firefox 33.0 and Chrome Version 39.0.2171.65 (64-bit) as the browser. The application runs fine as a production app if I compile it and deploy it to the server from the command line. I could also debug it using Classic Development Mode using FF 24 just prior to now when I was using GWT 2.5. I run in MyEclipse 2015 on Ubuntu 14.04 if that makes a difference.


If this is a problem with the framework and not my application I'm happy to help try to gather the information to get it fixed, but I would need some guidance for how to gather the details needed to debug.


Thanks,

Roland


--
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-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