Saturday, October 5, 2019

ClassCastException in some browser, but not others (


I get a ClassCastException under Safari, Safari on IOS and Chrome on IOS but not in Chrome.  Is there any way to get around this?

I am using GWT HEAD and accesses indexeddb via elemental2-indexeddb-1.0.0

                IDBFactory idbf = IndexedDbGlobal.indexedDB;

IDBOpenDBRequest idbr =;

idbr.onsuccess= new OnsuccessFn() {


public Object.onInvoke(elemental2.dom.Event p0) {

IDBDatabase idb = (IDBDatabase) idbr.result;

return idb;


(-:-) 2019-10-05 22:09:12,968 [ERROR] Casting err: 
    at Unknown.Throwable_1(
    at Unknown.Exception_1(
    at Unknown.RuntimeException_1(
    at Unknown.ClassCastException_0(
    at Unknown.checkCriticalType(
    at Unknown.checkType_0(
    at Unknown.checkType(
    at Unknown.castToNative(
    at Unknown.onInvoke(
    at Unknown.anonymous(

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
To view this discussion on the web visit

No comments:

Post a Comment