Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Pagination giving problem on server

  1. #11
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    Quote Originally Posted by sachinsurvase View Post
    Also I will be happy to paste total error here but there is no error displyed.
    just it says at bottom ..... Exception thrown and not caught in xxxx.html file where xxxx.html file is generated dynamically by GWT compiler.
    sachinsurvase, either provide screen shot or explain with more details - people here are trying but honestly, if you can't explain the problem, nobody can help.... we don't understand what is going wrong - as I said before, what is the thing you keep calling "it" ?

  2. #12
    Ext User
    Join Date
    Oct 2008
    Location
    Warsaw(PL)/Cottbus(GER)
    Posts
    215

    Default

    Quote Originally Posted by sachinsurvase View Post
    Service is running fine .... I can add the objects .... just problem in displaying with pagination.
    Also I will be happy to paste total error here but there is no error displyed.
    just it says at bottom ..... Exception thrown and not caught in xxxx.html file where xxxx.html file is generated dynamically by GWT compiler.
    Okay i see, did you try putting a lot GWT.log messages? or even using this logging system for GWT: http://code.google.com/p/gwt-log/

    How are you testing/debuggin your app? did u ever debbuged it?

    Hosted mode and testing/debuggin the whole process... server and client side as well. I am SURE that u will find the problem!

    have a nice day!

  3. #13
    sachinsurvase
    Guest

    Default

    Sorry ... I was not getting the exact error while running on IE ..
    But I tried it in Hosted Mode Browser ... it is giving me following error ....
    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 FrameworkDemo.client.PolicyObjectService_TypeSerializer.instantiate(transient source for FrameworkDemo.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)
    Please check this and help me to remove this error ....

    I am sorry for all trouble I given to you all ...

    Thanks
    Sachin.

  4. #14
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    Sachin,

    You are going to have to put more effort into explaining the issue - there is no point just dumping stack traces, bits of code here and there and expect people to read through it all trying to make sense of it.

    I don't have your application, I don't even know what you were doing that caused this problem so from my perspective it massive amounts of guess work.

    Would like to help, but you need to invest more time yourself into explaining the problem, including the relevant information and data. Perhaps abandon this thread and start again.

    Cheers,
    Grant

  5. #15

    Default Same Problem using RPC Pagination

    I am getting the same kind of problem which it has been posted before when using RPC pagination with ExtGwt. I have seen the BasePagingLoadConfig class and it is given as Serializable instead isSerializable. I am getting the following error through host mode as well as IE or Firefox. I would appreciate if you some one let me know the solution.

    I am using the same type of RpcProxy method call given in sample examples of pagination.

    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:466)
    at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoadException(ListStore.java:135)

    Thanks,
    Novie Member of group

  6. #16
    Ext User
    Join Date
    Oct 2008
    Location
    Warsaw(PL)/Cottbus(GER)
    Posts
    215

    Default

    Quote Originally Posted by ExtJsNoviceMember View Post
    I am using the same type of RpcProxy method call given in sample examples of pagination.

    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:466)
    at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoadException(ListStore.java:135)

    Thanks,
    Novie Member of group
    I guess you have same problem i have got with changing the RemoteService interface of the client side.

    read here
    http://extjs.com/forum/showthread.ph...828#post268828

    to make it short: you need to delete all compiled JS code... in my project it is in the build folder gwtOutput Iam using Cypal studio are org.yourproject.Main << its the main module and in there is the compiled code for hosted mode. There is also a hidden folder somewhere... mine is called .gwt-cache this can also be different depends how your project looks and how u are building it and using the hosted mode.

    one for sure... u need to clean everything. deleting these 2 folders ... of the compiled gwt stuff(mentioned)

    Than: build the project normal java build... in eclipse clean project.
    call the GWT compiler
    (do not also clean up the server, cache, just everything. and deploy the project new)

    after that it should work

    you can check if that is your problem by using methods of that service which already work before. If not it is problably a different error.

    Keep in mind this error and strange serializaion exceptions are often only because of messing up the remote servive compilations by GWT compiler.

  7. #17

    Default Pagination Problem

    Thanks for the reply.

    I do have nwww directory and .gwt-tmp cache directory. I have deleted both the folders and build it (clean compile). I have ran the application through GWT Host Mode. I am seeing the same issue again. Is there some thing I need to do?

    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:466)
    at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoadException(ListStore.java:135)


    And I do have couple of questions related to this:

    1. In the example inside RpcProxy overrridden load() method we are making a service call passing PageLoadConfig and AsyncCallback. I dont see we are instantiating the AsyncCallBack class/object. Is this taken care by RpcProxy?

    2. I do have a table with out any remote call and would like to use the same pagination provided by ExtGwt. Is it possible to do? I did one way but didnt work. This is what I did:

    RpcProxy<PagingLoadConfig,AsyncCallback> proxy = new RpcProxy(){
    @Override
    protected void load(Object pageLoadconfig, AsyncCallback callback) {
    config = (PagingLoadConfig)pageLoadconfig;

    ArrayList<BaseModel> sublist = new ArrayList<BaseModel>();
    int start = config.getOffset();
    int limit = list.size();
    if (config.getLimit() > 0) {
    limit = Math.min(start + config.getLimit(), limit);
    }
    for (int i = config.getOffset(); i < limit; i++) {
    sublist.add(list.get(i));
    }

    new BasePagingLoadResult<BaseModel>(sublist, config.getOffset(), list.size());

    }
    };

    Here list is client side. How can we use it? is there something wrong I did?

    I would appreciate if some one can help me out..

    Thanks,
    Novice Member of group

  8. #18
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    Pls post a new thread and include your project code (client and server) so we can verify that everything is correct.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •