1. #1
    Ext User
    Join Date
    Mar 2009
    Location
    Castellter├žol (Catalonia)
    Posts
    13
    Vote Rating
    0
    pepgrifell is on a distinguished road

      0  

    Default ClassCastException in ColumnData

    ClassCastException in ColumnData


    hi there,

    I'm getting this error when calling the method layout() in a LayoutContainer object:

    Code:
     
    ClassCastException: com.extjs.gxt.ui.client.widget.layout.ColumnData
    Probably I have an error in my view (a big one). The problem is that when I catch the error, I can't see the line that fails in my class. This is the stacktrace after calling layoutContainer.layout() in my class:
    Code:
    com.extjs.gxt.ui.client.widget.layout.AnchorLayout.onLayout(AnchorLayout.java:99)com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:93)com.extjs.gxt.ui.client.widget.Layout.onResize(Layout.java:239)com.extjs.gxt.ui.client.widget.Layout$1.handleEvent(Layout.java:52)com.extjs.gxt.ui.client.widget.Layout$1.handleEvent(Layout.java:1)com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:443)com.extjs.gxt.ui.client.widget.BoxComponent.setSize(BoxComponent.java:427)com.extjs.gxt.ui.client.widget.Layout.setSize(Layout.java:286)com.extjs.gxt.ui.client.widget.layout.AnchorLayout.onLayout(AnchorLayout.java:121)com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:93)com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:360)com.extjs.gxt.ui.client.widget.Container.layout(Container.java:455)com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:238)com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:376)com.extjs.gxt.ui.client.widget.Container.layout(Container.java:455)com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:238)com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:376)com.extjs.gxt.ui.client.widget.Container.layout(Container.java:455)com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:238)
    In the onModuleLoad(), I have this code to catch exceptions:
    Code:
    GWT.setUncaughtExceptionHandler(
    new GWT.UncaughtExceptionHandler() { publicvoid onUncaughtException(Throwable error) { Dispatcher.forwardEvent(AppEvents.ShowError, error); }
    });
    Should I put a try catch in my class ?

    Thanks !

  2. #2
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    post the code example

Thread Participants: 1