Getting error The indexes aren't initialized.

Getting error The indexes aren't initialized.

  

Hi,

I am using list records widget in web block and on button click appending new entity to List records but getting error The indexes aren't initialized. do you know what am i doing wrong ?


Thanks & Regards

Mithlesh Singh

Awaiting your reply . i have added more details please check attached image files.

1)This is error view

2)Below image is button click screen action

HI Mithlesh,

Since I've never seen this error, I'm going to assume that it's the custom JavaScript that causes it.

Kilian Hekhuis wrote:

HI Mithlesh,

Since I've never seen this error, I'm going to assume that it's the custom JavaScript that causes it.

Hi,

Log showing below error message


The indexes aren't initialized.
java.lang.IllegalStateException: The indexes aren't initialized.
   at outsystems.hubedition.webwidgets.rtwidgets.ListComponentIndexes.$pub(Unknown Source)
   at outsystems.hubedition.webwidgets.rtwidgets.ListComponentIndexes.insert(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.insertItem(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.appendItem(Unknown Source)
   at outsystems.hubedition.webwidgets.OSPageViewState.ajaxRefresh(Unknown Source)
   at outsystems.hubedition.webwidgets.OSPageViewState.ajaxRefresh(Unknown Source)
   at outsystems.hubedition.webwidgets.managedbean.WebBlock.ajaxRefresh(Unknown Source)
   at osmediscantimesheetwebapplication.managedbean.flowcommon.WBlkTimeEntriesWB.commandAddRemoveTimeSlot(Unknown Source)
   at osmediscantimesheetwebapplication.managedbean.flowcommon.WBlkTimeEntriesWB.lnk21Click(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.sun.el.parser.AstValue.invoke(AstValue.java:292)
   at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
   at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
   at outsystems.hubedition.webwidgets.uicomponent.utils.MethodExpressionEventListener.invokeAction(Unknown Source)
   at outsystems.hubedition.webwidgets.ajaxEvents.MethodExpressionAjaxClickEventListener.processAjaxClickEvent(Unknown Source)
   at outsystems.hubedition.webwidgets.ajaxEvents.AjaxClickEvent.processListener(Unknown Source)
   at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:813)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent$ListEvent.broadcastOriginalEvent(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.iiiiiiiiIIiI.executeImpl(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action0.executeImplLambda(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action0_Lambda.execute(Unknown Source)
   at outsystems.hubedition.util.delegates.Func.lambda$1(Unknown Source)
   at outsystems.hubedition.util.delegates.Func$Func0_Lambda.execute(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.executeOnIndex(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.executeOnIndex(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.broadcast(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.os_controls.WebBlockInstanceComponent.broadcast(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent$ListEvent.broadcastOriginalEvent(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.iiiiiiiiIIiI.executeImpl(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action0.executeImplLambda(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action0_Lambda.execute(Unknown Source)
   at outsystems.hubedition.util.delegates.Func.lambda$1(Unknown Source)
   at outsystems.hubedition.util.delegates.Func$Func0_Lambda.execute(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.executeOnIndex(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.executeOnIndex(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.broadcast(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.os_controls.WebBlockInstanceComponent.broadcast(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent$ListEvent.broadcastOriginalEvent(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.iiiiiiiiIIiI.executeImpl(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action0.executeImplLambda(Unknown Source)
   at outsystems.hubedition.util.delegates.Action$Action0_Lambda.execute(Unknown Source)
   at outsystems.hubedition.util.delegates.Func.lambda$1(Unknown Source)
   at outsystems.hubedition.util.delegates.Func$Func0_Lambda.execute(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.executeOnIndex(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.executeOnIndex(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.AbstractListComponent.broadcast(Unknown Source)
   at outsystems.hubedition.webwidgets.uicomponent.os_controls.WebBlockInstanceComponent.broadcast(Unknown Source)
   at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
   at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
   at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
   at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)
   at outsystems.hubedition.webwidgets.BaseRequestStartupFilter.doFilter(Unknown Source)
   at osmediscantimesheetwebapplication.RequestStartupFilter.doFilter(Unknown Source)
   at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
   at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
   at outsystems.hubedition.webwidgets.filters.HttpContextFilter.doFilter(Unknown Source)
   at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
   at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)


Hello Mithlesh,


Could you explain what are you executing in javascript? Or could you send a module where this problem happens?


Thank you,

Sara Gonçalves

Sara Gonçalves wrote:

Hello Mithlesh,


Could you explain what are you executing in javascript? Or could you send a module where this problem happens?


Thank you,

Sara Gonçalves

I have removed javascript but still the same error