Hybrid View

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    19
    Vote Rating
    0
    listirer is on a distinguished road

      0  

    Default NullPointerException on sorting store

    NullPointerException on sorting store


    I have a NullPointerException when I sorting store of an EditableGrid:
    Code:
    00:00:58,717 [ERROR] Uncaught exception escaped
    java.lang.NullPointerException: null    at com.extjs.gxt.ui.client.widget.grid.ColumnModel.findColumnIndex(ColumnModel.java:106)        at com.extjs.gxt.ui.client.widget.grid.GridView.updateHeaderSortState(GridView.java:2067)       at com.extjs.gxt.ui.client.widget.grid.GridView.refresh(GridView.java:580)      at com.extjs.gxt.ui.client.widget.grid.GridView.onDataChanged(GridView.java:1568)       at com.extjs.gxt.ui.client.widget.grid.GridView$6.storeDataChanged(GridView.java:1323)  at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:28)       at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)        at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:178)   at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:86)       at com.extjs.gxt.ui.client.store.ListStore.sort(ListStore.java:434)     at org.geosdi.geoplatform.gui.client.widget.ManageRolesWidget$8$1.onSuccess(ManageRolesWidget.java:352)    at org.geosdi.geoplatform.gui.client.widget.ManageRolesWidget$8$1.onSuccess(ManageRolesWidget.java:1)   at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)       at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)  at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)      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:172)    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)        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:213)   at sun.reflect.GeneratedMethodAccessor70.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:172)   at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)   at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662)
    After I populate the store, call:
    Code:
    store.sort("id", Style.SortDir.ASC);
    I have the same error, if I don't sort but click on a header column for sorting the column.

    I omitted something to do?

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    19
    Vote Rating
    0
    listirer is on a distinguished road

      0  

    Default


    I have found the problem: I don't setted the ID to a ColumnConfig.
    The ID will be returned into findColumnIndex as dataIndex.
    Last edited by listirer; 5 Feb 2012 at 1:47 PM. Reason: typo

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi