Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: [CLOSED] grid issue when add diferent class to listStore

  1. #1
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744

    Default [CLOSED] grid issue when add diferent class to listStore

    in this package com.extjs.gxt.samples.resources.client.model create this class

    Customer1.java
    Code:
    package com.extjs.gxt.samples.resources.client.model;
    
    public class Customer1 extends Customer {
    
    	public Customer1(String name, String email, int age) {
    		setName(name);
    		setEmail(email);
    		setAge(age);
    	}
    
    }
    Customer2.java
    Code:
    package com.extjs.gxt.samples.resources.client.model;
    
    public class Customer2 extends Customer {
    
    	public Customer2(String name, String email, int age) {
    		setName(name);
    		setEmail(email);
    		setAge(age);
    	}
    
    }
    Customer3.java
    Code:
    package com.extjs.gxt.samples.resources.client.model;
    
    public class Customer3 extends Customer {
    
    	public Customer3(String name, String email, int age) {
    		setName(name);
    		setEmail(email);
    		setAge(age);
    	}
    
    }
    in the class ExampleServiceImpl that is in com.extjs.gxt.samples.server change the method getCustomers() to

    Code:
    	public List<Customer> getCustomers() {
    		List<Customer> customers = new ArrayList<Customer>();
    		customers.add(new Customer1("Darrell", "[email protected]", 1));
    		customers.add(new Customer2("Maro", "[email protected]", 2));
    		customers.add(new Customer2("Alec", "[email protected]", 3));
    		customers.add(new Customer3("Lia", "[email protected]", 4));
    		return customers;
    	}
    when you call the tab "Bean Model Grid" in explorer return this error

    Code:
    /
    [ERROR] Uncaught exception escaped
    java.lang.RuntimeException: com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server; see server log for details
    	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.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(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: com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server; see server log for details
    	at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192)
    	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)
    

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    Hello,

    not everything that isnt working is a bug. Have you read your red messages? Have you looked into your server log as it states? There you will find more details.

    Sven

  3. #3
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744

    Default

    only return this error and not work.. if don't change the method getCustomers() work fine...

    you create the class and test? you can see more detail too

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    The errormessage states that you should check your serverlogs, have you done this? There you will probably find why it isnt working.


    Sven

  5. #5
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744

    Default

    first return this error

    Code:
    
    [WARN] StandardContext[]Exception while dispatching incoming RPC call
    com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:696)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:659)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:593)
    	at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
    	at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
    	at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
    	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
    	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
    	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:289)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    	at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.reflect.InvocationTargetException: null
    	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.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:678)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:659)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:593)
    	at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
    	at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
    	at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
    	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
    	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
    	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:289)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    	at java.lang.Thread.run(Thread.java:619)
    Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.extjs.gxt.samples.resources.client.model.Customer1' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.
    	at com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize(StandardSerializationPolicy.java:83)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
    	at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
    	at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43)
    	at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36)
    	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.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:678)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:659)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:593)
    	at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
    	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
    	at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
    	at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
    	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
    	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
    	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:289)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    	at java.lang.Thread.run(Thread.java:619)
    
    look for this

    Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.extjs.gxt.samples.resources.client.model.Customer1' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.

    in other situation I create a empty constructor and work fine.. but if I create the constructor method return this error...

    Code:
    
    [ERROR] Uncaught exception escaped
    java.lang.RuntimeException: java.lang.RuntimeException: No BeanModelFactory found for class com.extjs.gxt.samples.resources.client.model.Customer1
    	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.RuntimeException: No BeanModelFactory found for class com.extjs.gxt.samples.resources.client.model.Customer1
    	at com.extjs.gxt.ui.client.data.BeanModelReader.read(BeanModelReader.java:31)
    	at com.extjs.gxt.ui.client.data.BeanModelReader.read(BeanModelReader.java:1)
    	at com.extjs.gxt.ui.client.data.RpcProxy$1.onSuccess(RpcProxy.java:29)
    	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)
    
    but why work with Customer and not with, Customer1, Customer2 and Customer3?

  6. #6
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    This is really no bug.

    Please read this blog entry: http://extjs.com/blog/2008/07/14/pre...-with-ext-gwt/


    Sven

  7. #7
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    Also read what you have to implement / todo to tranfer objects over rpc (gwt tutorials i mean with that)

  8. #8
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744

    Default

    look at for this

    Code:
    public class Customer implements BeanModelTag, Serializable {
    return this error

    Code:
    
    [ERROR] Uncaught exception escaped
    java.lang.RuntimeException: java.lang.ClassCastException: com.extjs.gxt.samples.resources.client.model.Customer2 cannot be cast to com.extjs.gxt.samples.resources.client.model.Customer1
    	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.samples.resources.client.model.Customer2 cannot be cast to com.extjs.gxt.samples.resources.client.model.Customer1
    	at com.extjs.gxt.ui.client.data.BeanModel_com_extjs_gxt_samples_resources_client_model_Customer1.get(transient source for com.extjs.gxt.ui.client.data.BeanModel_com_extjs_gxt_samples_resources_client_model_Customer1:24)
    	at com.extjs.gxt.ui.client.widget.grid.GridView.getRenderedValue(GridView.java:908)
    	at com.extjs.gxt.ui.client.widget.grid.GridView.doRender(GridView.java:687)
    	at com.extjs.gxt.ui.client.widget.grid.GridView.renderRows(GridView.java:1406)
    	at com.extjs.gxt.ui.client.widget.grid.GridView.renderBody(GridView.java:1375)
    	at com.extjs.gxt.ui.client.widget.grid.GridView.refresh(GridView.java:464)
    	at com.extjs.gxt.ui.client.widget.grid.GridView.onDataChanged(GridView.java:1236)
    	at com.extjs.gxt.ui.client.widget.grid.GridView$5.storeDataChanged(GridView.java:1060)
    	at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:30)
    	at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)
    	at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)
    	at com.extjs.gxt.ui.client.store.ListStore.onLoad(ListStore.java:462)
    	at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoad(ListStore.java:131)
    	at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:24)
    	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.onLoadSuccess(BaseLoader.java:166)
    	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)
    

  9. #9
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    The line you posted as noting to do with the error you posted.

    And if Customer1 extends Customer and Customer2 extends customer too, you cant cast Customer2 to Customer1.

  10. #10
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744

    Default

    but this error who return is the gxt... If this isn't a bug post the soluction

Page 1 of 2 12 LastLast

Posting Permissions

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