javascript - GWT 2.6.0 - Uncaught java.lang.ClassCastException -


i using gwt 2.6.0 in super dev mode (with intellij idea 14 + chrome 43.0.2357.130 (64-bit) linux).

i have exception in chrome console during page loading

uncaught java.lang.classcastexception impl.java:99 (anonymous function) @ impl.java:99 gwtonload @ oldstar-0.js:87303 (anonymous function) @ classliteralholder.java:23 

impl.java:99 throw e; in com.google.gwt.core.client.impl.impl

 public static native javascriptobject entry(javascriptobject jsfunction) /*-{     return function() {       try {         return @com.google.gwt.core.client.impl.impl::entry0(ljava/lang/object;ljava/lang/object;ljava/lang/object;)(jsfunction, this, arguments);       } catch (e) {         // catch block here ensure block in entry0         // executed correctly on ie6/7.  can't put catch throwable         // in entry0 because cause unhandled exception         // wrapped in javascriptexception type.         throw e;       }     };   }-*/; 

oldstar-0.js:87303 $entry(init_2)(); in generated oldstar-0.js

function gwtonload(errfn, modname, modbase, softpermutationid){   $modulename = modname;   $modulebase = modbase;   if (errfn)     try {       $entry(init_2)();     }      catch (e) {       errfn(modname);     }    else {     $entry(init_2)();   } } 
package com.google.gwt.lang;  final class classliteralholder { } 

and init_2() reference to init() in entrymethodholder.java

package com.google.gwt.lang;  /**  * class holds boot strap entry method compiler generates.  */ public class entrymethodholder {   public static final void init() {     // filled in compiler call entry methods.   } } 

the pasted code border between js , java, , extremely unlikely have thrown exception (dare impossible).

as message indicates, uncaught exception thrown somewhere else in code , caught wiring before leaked out java , js.

i think entrypoint called entrymethodholder.init - implies entrypoint throwing classcastexception when app tries start up, uncaughtexceptionhandler (if have one...) isn't yet set handle this.

try looking @ in onmoduleload, or adding try/catch nail down coming from.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -