1. #1
    sachinsurvase
    Guest

    Default Pagination with RPC

    Pagination with RPC


    Using GWT RPC mechanism to load data in grid with pagination ...
    It is giving following error ....

    Also Like to mention that I am using https protocol to access my application.
    Does it make any difference?

    HTML Code:
    [ERROR] Uncaught exception escaped
    java.lang.RuntimeException: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.  For security purposes, this type will not be deserialized.
    	at com.extjs.gxt.ui.client.store.ListStore.onLoadException(ListStore.java:184)
    	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.onFailure(RpcProxy.java:22)
    	at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:217)
    	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(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
    	at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
    	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    	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: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.  For security purposes, this type will not be deserialized.
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    	at java.lang.reflect.Constructor.newInstance(Unknown Source)
    	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
    	at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
    	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    	at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
    	at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
    	at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493)
    	at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417)
    	at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:67)
    	at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:152)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:447)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:228)
    	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    	at com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(transient source for com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
    	at com.google.gwt.dev.shell.ie.MethodDispatch.invoke(MethodDispatch.java:97)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
    	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    	at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
    	at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
    	at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493)
    	at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417)
    	at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:67)
    	at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:152)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:447)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:228)
    	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    	at com.nevis.client.PolicyObjectService_TypeSerializer.instantiate(transient source for com.nevis.client.PolicyObjectService_TypeSerializer)
    	at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:114)
    	at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61)
    	at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:199)
    	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(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
    	at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
    	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    	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)

  2. #2
    Ext User
    Join Date
    Nov 2008
    Posts
    36
    Vote Rating
    0
    monzonj is on a distinguished road

      0  

    Default


    I'm afraid GWT is "lying" to you about that. Sometimes I've seen the same problem but was never related to BasePagingLoadConfig.

    It's probably the objects inside BasePagingLoading, the definition of your service interface / implementation, or any other object that GWT cannot serialize.

    I can tell you that BasePagingLoadConfig works fine with GWT RPC

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2008
    Location
    Munich, Germany
    Posts
    183
    Vote Rating
    0
    Jose Jeria is an unknown quantity at this point

      0  

    Default


    What object is your model object extending?

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Location
    Canada
    Posts
    19
    Vote Rating
    -1
    jtaekema is an unknown quantity at this point

      0  

    Default


    I get this error as well, my model extends BaseModel and implements IsSerializable.