Announcement

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

    IllegalStateException: Cannot change configuration property groupLabelStyleName

    Hi Isomorphic,

    We upgraded from "SmartClient Version: v10.1p_2016-06-09/Pro Deployment (built 2016-06-09)" to "SmartClient Version: v10.1p_2016-08-11/Pro Deployment (built 2016-08-11)" and now in DEV mode, we are seeing the following exception setting the group label style name. This is a change in behaviour. The problem does not appear to happen in compiled mode.
    Code:
    java.lang.IllegalStateException: Cannot change configuration property 'groupLabelStyleName' to xxxxGroupLabel now that component isc_xxxxDynamicForm_1 has been created.
        at com.smartgwt.client.widgets.BaseWidget.error(BaseWidget.java:845)
        at com.smartgwt.client.widgets.BaseWidget.error(BaseWidget.java:833)
        at com.smartgwt.client.widgets.BaseWidget.setAttribute(BaseWidget.java:857)
        at com.smartgwt.client.widgets.Canvas.setGroupLabelStyleName(Canvas.java:2715)
        at com.xxxx.client.component.form.xxxxFormGenerator.setFormDetailsGroup(xxxxFormGenerator.java:1627)
        at com.xxxx.client.component.form.CredentialsFormGenerator.addMembers(CredentialsFormGenerator.java:82)
        at com.xxxx.client.component.form.xxxxFormGenerator.initializeFormLayout(xxxxFormGenerator.java:251)
        at com.xxxx.client.component.form.xxxxFormGenerator.initializeFormTabSet(xxxxFormGenerator.java:303)
        at com.xxxx.client.component.form.xxxxFormGenerator.getTabFormLayout(xxxxFormGenerator.java:327)
        at com.xxxx.client.panel.xxxxPanelDetailsSection.initTabs(xxxxPanelDetailsSection.java:87)
        at com.xxxx.client.panel.xxxxPanelDetailsSection.setForm(xxxxPanelDetailsSection.java:52)
        at com.xxxx.client.panel.xxxxPanel.setForm(xxxxPanel.java:201)
        at com.xxxx.client.panel.xxxxPanel.setForm(xxxxPanel.java:192)
        at com.xxxx.client.panel.xxxxPanel.getForm(xxxxPanel.java:276)
        at com.xxxx.client.panel.xxxxPanel.postInit(xxxxPanel.java:136)
        at com.xxxx.client.panel.xxxxPanelListSection$7.handleResponse(xxxxPanelListSection.java:419)
        at com.xxxx.client.rpc.xxxxRPCCallback.execute(xxxxRPCCallback.java:70)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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:338)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
        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:356)
        at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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:293)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Unknown Source)
    Thanks

    #2
    Update: In compiled mode, it is actually logging a warning and the styling is not properly being applied either.

    09:53:03.603:XRP2:WARN:Log:Cannot change configuration property 'groupLabelStyleName' to xxxxGroupLabel now that component isc_xxxxDynamicForm_1 has been created.
    09:53:03.604:XRP2:WARN:Log:Cannot change configuration property 'isGroup' to true now that component isc_xxxxDynamicForm_1 has been created.

    Comment


      #3
      As a workaround, we moved the setting of isGroup, groupTitle, and groupLabelStyleName into the constructor of the dynamic form. It would appear that we actually had to put before the call to setValuesManager to avoid the exception.

      Comment


        #4
        This has been fixed for builds dated August 25 and later.

        Comment


          #5
          Thank you.
          We cannot confirm the changes though, since we have already refactored the code to avoid the IllegalStateException.
          Regards

          Comment

          Working...
          X