Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1105

Console ListItem throws error if list is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.CR1
    • 7.0.0.CR1
    • Console
    • None

      If you try to render a ListItem that has an empty list you will get the error below. This is causing problems with Loggers.

      [ERROR] Caused by: com.google.gwt.core.client.JavaScriptException: (Error): Could not set the rows property. Invalid property value. Enter a value greater than zero.
      [ERROR] number: -2146827908
      [ERROR] description: Could not set the rows property. Invalid property value. Enter a value greater than zero.
      [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
      [ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
      [ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
      [ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
      [ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
      [ERROR] at com.google.gwt.dom.client.TextAreaElement$.setRows$(TextAreaElement.java)
      [ERROR] at com.google.gwt.user.client.ui.TextArea.setVisibleLines(TextArea.java:136)
      [ERROR] at org.jboss.as.console.client.widgets.forms.ListItem.setValue(ListItem.java:87)
      [ERROR] at org.jboss.as.console.client.widgets.forms.ListItem.setValue(ListItem.java:1)
      [ERROR] at org.jboss.as.console.client.widgets.forms.Form$1$2.visit(Form.java:199)
      [ERROR] at org.jboss.as.console.client.widgets.forms.Form.visitItem(Form.java:227)
      [ERROR] at org.jboss.as.console.client.widgets.forms.Form.access$0(Form.java:220)
      [ERROR] at org.jboss.as.console.client.widgets.forms.Form$1.visitCollectionProperty(Form.java:190)
      [ERROR] at org.jboss.as.console.client.shared.subsys.logging.model.LoggerConfigAutoBean.traverseProperties(LoggerConfigAutoBean.java:123)
      [ERROR] at com.google.gwt.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:153)
      [ERROR] at com.google.gwt.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:112)
      [ERROR] at org.jboss.as.console.client.widgets.forms.Form.edit(Form.java:143)
      [ERROR] at org.jboss.as.console.client.widgets.forms.Form$2.onSelectionChange(Form.java:421)
      [ERROR] at com.google.gwt.view.client.SelectionChangeEvent.dispatch(SelectionChangeEvent.java:83)
      [ERROR] at com.google.gwt.view.client.SelectionChangeEvent.dispatch(SelectionChangeEvent.java:1)
      [ERROR] at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204)
      [ERROR] at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
      [ERROR] at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:101)
      [ERROR] at com.google.gwt.view.client.SelectionModel$AbstractSelectionModel.fireEvent(SelectionModel.java:70)
      [ERROR] at com.google.gwt.view.client.SelectionChangeEvent.fire(SelectionChangeEvent.java:54)
      [ERROR] at com.google.gwt.view.client.SingleSelectionModel.resolveChanges(SingleSelectionModel.java:120)
      [ERROR] at com.google.gwt.view.client.SingleSelectionModel.fireSelectionChangeEvent(SingleSelectionModel.java:90)
      [ERROR] at com.google.gwt.view.client.SelectionModel$AbstractSelectionModel$1.execute(SelectionModel.java:131)
      [ERROR] at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50)
      [ERROR] at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:229)
      [ERROR] at com.google.gwt.core.client.impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:328)
      [ERROR] at com.google.gwt.core.client.impl.Impl.exit(Impl.java:238)
      [ERROR] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:229)
      [ERROR] at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
      [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
      [ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
      [ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
      [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
      [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
      [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
      [ERROR] at java.lang.Thread.run(Thread.java:662)

              ssilvert@redhat.com Stan Silvert
              ssilvert@redhat.com Stan Silvert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: