1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    12
    Vote Rating
    0
    intrinsical is on a distinguished road

      0  

    Default Curious StackOverflow when compiling GWT

    Curious StackOverflow when compiling GWT


    Hello,

    I've only just started using GWT and Ext for GWT this week, so please forgive any newbie mistakes I'm making.

    I have been puzzling for the past 3 days on a very curious StackOverflowError when compiling my user interface. As far as I can tell, there seem to be some strange interaction between Viewport and PagingToolBar that causes this error. PagingToolBar does not even need to be added to the GUI, just instantiated and left unused for this Stack Overflow to occur. If I swapped Viewport with a VerticalPanel, the error does not occur. I'ld appreciate it if someone can point out what I'm doing wrong.

    Here's the code that's causing the StackOverflowError:

    RpcProxy<PagingLoadConfig, PagingLoadResult<Flag>> proxy = new RpcProxy<PagingLoadConfig, PagingLoadResult<Flag>>() {
    @Override
    protected void load(PagingLoadConfig loadConfig, AsyncCallback<PagingLoadResult<Flag>> callback) {
    service.getFlags(loadConfig, callback);
    }
    };

    BasePagingLoader<PagingLoadConfig, PagingLoadResult<Flag>> loader = new BasePagingLoader<PagingLoadConfig, PagingLoadResult<Flag>>(proxy);
    loader.setRemoteSort(true);
    loader.load(0, 50);
    ListStore<Flag> store = new ListStore<Flag>(loader);

    PagingToolBar tbFlagPaging = new PagingToolBar(10);

    List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
    columns.add(new ColumnConfig("name", "Name", 50));
    ColumnModel cmFlags = new ColumnModel(columns);

    Grid<Flag> gdFlag = new Grid<Flag>(store, cmFlags);
    gdFlag.setLoadMask(true);
    gdFlag.setBorders(true);
    gdFlag.setAutoExpandColumn("name");

    ContentPanel pnMain = new ContentPanel();
    pnMain.setBorders(false);
    pnMain.setHeaderVisible(false);
    pnMain.setLayout(new BorderLayout());
    pnMain.setBottomComponent(tbFlagPaging);
    pnMain.add(gdFlag, new BorderLayoutData(LayoutRegion.CENTER));

    Viewport vpMain = new Viewport();
    vpMain.setLayout(new BorderLayout());
    vpMain.add(pnMain, new BorderLayoutData(LayoutRegion.CENTER));

    //Replacing Viewport with the code below causes no errors.
    //VerticalPanel vpMain = new VerticalPanel();
    //vpMain.add(pnMain);

    Here's the stack trace for the error (It actually goes on for several thousand lines, I've truncated the recursive stack trace):
    Compiling module com.kor.extrasolar.admin.Admin
    [ERROR] Unexpected internal compiler error
    java.lang.StackOverflowError
    at java.io.ObjectOutputStream$HandleTable.hash(Unknown Source)
    at java.io.ObjectOutputStream$HandleTable.lookup(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at java.util.ArrayList.writeObject(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at java.util.ArrayList.writeObject(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    ...

  2. #2
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
    takayser is an unknown quantity at this point

      0  

    Default


    That's a GWT issue, not a GXT issue: http://code.google.com/p/google-web-...detail?id=3510

    In my case I had to update java from 1.5 to 1.6 and I had to set the stack size with following:
    <jvmarg value="-Xss1024k"/>

  3. #3
    Ext User gtg489w's Avatar
    Join Date
    Nov 2008
    Location
    Atlanta, GA
    Posts
    29
    Vote Rating
    0
    gtg489w is on a distinguished road

      0  

    Default


    What file are you putting the <jvmarg value="-Xss1024k"/> tag in?
    <!--Brian-->

  4. #4
    Ext User gtg489w's Avatar
    Join Date
    Nov 2008
    Location
    Atlanta, GA
    Posts
    29
    Vote Rating
    0
    gtg489w is on a distinguished road

      0  

    Default


    Haha, nevermind. Thanks for the link Takayser - http://code.google.com/p/google-web-...detail?id=3510

    Halfway down scottb posts a gwt-dev-patch.jar... download it and add it to the top of your build path
    <!--Brian-->

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    The issue got also fixed in GWT 1.7.0

Thread Participants: 3

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar