PDA

View Full Version : Exception with LiveGridView



salmondavid888
24 Dec 2010, 1:35 AM
Hi,
i am getting exception while implementing with LiveGridView. please help me.following is the stack trace.

00:02:52.329 [ERROR] Uncaught exception escaped
java.lang.NullPointerException: null
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.doLoad(LiveGridView.java:219)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView$3.handleEvent(LiveGridView.java:329)
at com.extjs.gxt.ui.client.util.DelayedTask$1.run(DelayedTask.java:30)
at com.google.gwt.user.client.Timer.fire(Timer.java:141)
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.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
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.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:662)

sven
24 Dec 2010, 5:10 AM
Please post your code in a standalone testcase that implements EntryPoint. Stacktraces with linenumbers are meaningless without posting the versionnumber you use.

YOu probably are not using any loader in your liststore, which is required.

salmondavid888
24 Dec 2010, 6:10 AM
Hi Sven,
Thanks for ur quick reply. we are able to display records on the widget now. the problem is what is the default visible record size of LivegridView. i have total of 404 records. by default only 17 are visible, on scroll we get 17 more etc. plz help me how can i increase the default display size. i have attached the screen shot of my widget. after 17 records still we have space on widget, how can we utilize all space. plz find and suggest me.

Thanks!

sven
24 Dec 2010, 6:32 AM
Should adjust automatically. I can only repeat me


Please post your code in a standalone testcase that implements EntryPoint.