Announcement

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

    com.smartgwt.client.widgets.layout.Layout.getMembe rs() throws an exception

    sgwt: 4.1p.0.0
    sc: v9.1p_2014-03-06
    ff:26.0
    Code:
    @Override
    public void onModuleLoad() {
    	new VLayout(){{
    		addMember(new ToolStrip(){{
    			final ToolStrip toolStrip = this;
    			addButton(new ToolStripButton("E"){{
    				addClickHandler(new ClickHandler() {
    					@Override
    					public void onClick(ClickEvent event) {
    						for(Canvas canvas : toolStrip.getMembers()){
    							//do something
    						}
    					}
    				});
    			}});
    		}});
    	}}.show();
    }
    Error:
    Code:
    Caused by: java.lang.AssertionError: null
        at com.smartgwt.client.widgets.Button.getOrCreateRef(Button.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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.smartgwt.client.util.ObjectFactory.createCanvas(ObjectFactory.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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.smartgwt.client.widgets.Canvas.getByJSObject(Canvas.java)
        at com.smartgwt.client.util.ConvertTo.arrayOfCanvas(ConvertTo.java:3312)
        at com.smartgwt.client.widgets.layout.Layout.getMembers(Layout.java:702)
        at web.gwt.client.Main3$1$1$1$1.onClick(Main3.java:22)

    #2
    Any progress on this?

    Comment


      #3
      The lack of response on this thread makes us question why we're paying for a support license for this product.

      Comment


        #4
        Sorry for the lack of response on this thread, we mistakenly beloved you had also posted in and read one of the other threads where the same issue is being discussed.

        Multiple people at Isomorphic have been and continue to work on this issue. It appears to be a strange interaction with a GWT behavior that may be a newly discovered bug. We'll have it figured out soon.

        Comment


          #5
          Please send me a link to the other thread, so I can follow it.
          Thanks.

          Comment


            #6
            We will be updating this thread, which is what we always do when there are multiple reports of the same bug. Again, we mistakenly believed you were posting in one of the other threads too. But if you're curious, here is a link to one of the other threads with the same underlying issue.

            Comment


              #7
              Just so you dont have to chase it down the other thread was updated today. We have not found a solution yet but we are continuing to investigate.

              Isomorphic

              Comment


                #8
                You should see a fix for this in tonights nightly build on both 5.0 and 4.1.

                Isomorphic

                Comment

                Working...
                X