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)