Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default [CLOSED] Combobox - ClassCastException

    [CLOSED] Combobox - ClassCastException


    Code:
    BasePagingLoader loader = new BasePagingLoader(new DataProxy() {
    
        public void load(DataReader reader, Object loadConfig, AsyncCallback callback) {
            // return new BasePagingLoadResult - the code work fine
            // return list - return error
            
        }
        
    }, new BeanModelReader());
    loader.load();
    
    final ListStore<BeanModel> store = new ListStore<BeanModel>(loader);
    
    ComboBox<BeanModel> combo = new ComboBox<BeanModel>();
    combo.setDisplayField("name");
    combo.setStore(store);
    form.add(combo);
    error:

    [ERROR] Uncaught exception escaped
    java.lang.RuntimeException: java.lang.ClassCastException: com.extjs.gxt.ui.client.data.BaseListLoadResult cannot be cast to com.extjs.gxt.ui.client.data.PagingLoadResult
    at com.extjs.gxt.ui.client.store.ListStore.onLoadException(ListStore.java:466)
    at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoadException(ListStore.java:135)
    at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:27)
    at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:1)
    at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)
    at com.extjs.gxt.ui.client.data.BaseLoader.onLoadFailure(BaseLoader.java:155)
    at com.extjs.gxt.ui.client.data.BaseLoader$1.onFailure(BaseLoader.java:115)
    at com.extjs.gxt.ui.client.data.RpcProxy$1.onSuccess(RpcProxy.java:35)
    at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:215)
    at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:254)
    at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:226)
    at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:80)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
    at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
    Caused by: java.lang.ClassCastException: com.extjs.gxt.ui.client.data.BaseListLoadResult cannot be cast to com.extjs.gxt.ui.client.data.PagingLoadResult
    at com.extjs.gxt.ui.client.data.BasePagingLoader.onLoadSuccess(BasePagingLoader.java:1)
    at com.extjs.gxt.ui.client.data.BaseLoader$1.onSuccess(BaseLoader.java:119)
    at com.extjs.gxt.ui.client.data.RpcProxy$1.onSuccess(RpcProxy.java:33)
    at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:215)
    at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:254)
    at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:226)
    at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:80)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
    at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)



    it represents that all combos, or the list is static or should return a combo with paging, but what if I need to use a combo that has no paging.

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    it represents that all combos, or the list is static or should return a combo with paging, but what if I need to use a combo that has no paging.
    Then do not use BasePagingLoader, rather BaseListLoader.

Thread Participants: 1