Thursday, February 13, 2014

Re: I am getting ClassCastException only on production code but not on DevMode!

Put a breakpoint on that throw line and look at the jsFunction.
Alternatively, possibly look at the stacktrace of the 'e' exception.

On Thursday, February 13, 2014 8:43:08 AM UTC+1, Mohammad Al Quraian wrote:
Hi,

I am developing multi-module project, each project is by its own a GWT project. 2 of these project throw these exception when I run them. The exception is:
Uncaught java.lang.RuntimeException: java.lang.ClassCastException

The javascript code that throw that is:
function com_google_gwt_core_client_impl_Impl_entry__Lcom_google_gwt_core_client_JavaScriptObject_2Lcom_google_gwt_core_client_JavaScriptObject_2(jsFunction){
  return function(){
    try {
      return com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(jsFunction, this, arguments);
    }
     catch (e) {
      throw e;
    }
  }
  ;
}

They are all maven projects with the same structure and dependencies, the home.xml files are similar. I can't figure out what's wrong, especially because they run fine on devmode. The exception happens on all major browsers.

Any idea what's going on?

--
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/groups/opt_out.

No comments:

Post a Comment