Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SWGT.mobile - Exception when adding more than 4 tabs in a TabSet

    SGWT.mobile 2012-12-28

    Get this exception when making a TabSet with more than 4 Tabs:

    Code:
    15:11:43.537 [ERROR] [moon_mobile] Uncaught exception escaped
    java.lang.AssertionError: null
        at com.smartgwt.mobile.client.widgets.layout.NavStack._getUnhandledActions(NavStack.java:437)
        at com.smartgwt.mobile.client.widgets.ContainerFeatures._getUnhandledActions(ContainerFeatures.java:42)
        at com.smartgwt.mobile.client.widgets.Panel.containerChanged(Panel.java:114)
        at com.smartgwt.mobile.client.widgets.layout.NavStack.push(NavStack.java:216)
        at com.smartgwt.mobile.client.widgets.layout.NavStack.push(NavStack.java:159)
        at com.smartgwt.mobile.client.widgets.tab.TabSet$More.<init>(TabSet.java:144)
        at com.smartgwt.mobile.client.widgets.tab.TabSet.addTab(TabSet.java:587)
        at com.smartgwt.mobile.client.widgets.tab.TabSet.addTab(TabSet.java:546)
        at com.nside.moon.client_mobile.MainLayout.<init>(MainLayout.java:38)
        at com.nside.moon.client_mobile.MoonMobile.afterDataSourcesLoad(MoonMobile.java:89)
        at com.nside.moon.client_mobile.MoonMobile.access$2(MoonMobile.java:87)
        at com.nside.moon.client_mobile.MoonMobile$1.execute(MoonMobile.java:81)
        at com.smartgwt.mobile.client.data.DataSource$2.onResponseReceived(DataSource.java:1958)
        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.GeneratedMethodAccessor64.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.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.GeneratedMethodAccessor62.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:680)
    Very simple to reproduce: (does not occur if last Tab - Moonitor - is not created)

    Code:
    public class MainLayout extends TabSet{
    
    	public MainLayout() {
    		super();
    		
    		Tab  prospectsTab = new Tab("Prospects",GlyphResources.INSTANCE.prospect());
    		addTab(prospectsTab);
    
    		Tab  actionsTab = new Tab("Actions",GlyphResources.INSTANCE.action());
    		addTab(actionsTab);
    		
    		Tab  contactsTab = new Tab("Contacts",GlyphResources.INSTANCE.contact());
    		addTab(contactsTab);
    
    		Tab  companiesTab = new Tab("Companies",GlyphResources.INSTANCE.company());
    		//companiesTab.setPane(new ScreenCompanies(this));
    		addTab(companiesTab);
    
    		Tab  moonitorTab = new Tab("Moonitor",GlyphResources.INSTANCE.moonitor());
    		addTab(moonitorTab);
    		
    	}

    #2
    Also fixed for tomorrow's nightly.

    Comment

    Working...
    X