java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

ICEsoft JIRA Issue Tracker | Deryk Sinotte | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The original problem was captured in ICE-10753 but since that JIRA was intended for a different issue, we've opened this case to separate the two. Here's the original details captured by QA: -------- EE 3 Trunk Build 557/ FedEx P03 Build 09: auctionMonitor works fine on IE11 only when the application is accessed in 2 tabs from the same IE11 window, or when the second IE11 window is opened in a new session (choosing File > New session from the browser menu). If the application is opened in a second window using Ctrl-N (not a new session), then server-side errors occur, screen shot (IE11-errors.PNG) attached. On my PC the errors occur most of the time immediately after opening the application in the second IE11 window with Ctrl-N. On the 10.18.39.107 Test PC, the errors occur either when trying to place a bid from the second window, or after placing a bid from the second window and then leaving both windows open for 1-2 minutes. Server errors: Sep 02, 2015 9:43:26 AM org.icepush.servlet.EnvironmentAdaptingServlet <init> INFO: Adapting to Servlet 3.0 AsyncContext environment Sep 02, 2015 9:43:26 AM org.icepush.servlet.AsyncAdaptingServlet <init> INFO: Using Servlet 3.0 AsyncContext Sep 02, 2015 9:43:26 AM org.icepush.servlet.EnvironmentAdaptingServlet service INFO: Falling back to Thread Blocking environment Sep 02, 2015 9:44:39 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException SEVERE: Error Rendering View[/auctionMonitor.xhtml] java.lang.NullPointerException at com.sun.org.apache.xerces.internal.dom.NamedNodeMapImpl.findNamePoint(NamedNodeMapImpl.java:460) at com.sun.org.apache.xerces.internal.dom.AttributeMap.internalRemoveNamedItem(AttributeMap.java:285) at com.sun.org.apache.xerces.internal.dom.AttributeMap.safeRemoveNamedItem(AttributeMap.java:239) at com.sun.org.apache.xerces.internal.dom.ElementImpl.removeAttribute(ElementImpl.java:420) at org.icefaces.impl.context.DOMPartialViewContext$2.run(DOMPartialViewContext.java:421) at org.icefaces.impl.context.DOMPartialViewContext.domDiff(DOMPartialViewContext.java:402) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:160) at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:421) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) .............. Sep 02, 2015 9:44:45 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException SEVERE: Error Rendering View[/auctionMonitor.xhtml] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at com.sun.org.apache.xerces.internal.dom.AttributeMap.internalRemoveNamedItem(AttributeMap.java:295) at com.sun.org.apache.xerces.internal.dom.AttributeMap.safeRemoveNamedItem(AttributeMap.java:239) at com.sun.org.apache.xerces.internal.dom.ElementImpl.removeAttribute(ElementImpl.java:420) at org.icefaces.impl.context.DOMPartialViewContext$2.run(DOMPartialViewContext.java:421) at org.icefaces.impl.context.DOMPartialViewContext.domDiff(DOMPartialViewContext.java:404) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:160) at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:421) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    ICEsoft JIRA Issue Tracker | 2 years ago | Deryk Sinotte
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    "Mcconvert experience" generates an out of bounds exception

    GitHub | 1 year ago | BornToDoStuff
    java.lang.IndexOutOfBoundsException: Index: 0 04.03 20:52:58 [Server] WARN [mcMMO] Task #447 for mcMMO v1.5.04-SNAPSHOT-b92 generated an exception **command used:** /mcconvert experience exponential The variable Exp_Modifier was set to 2.875 ingame there is a message given: Starting conversion from UNKNOWN to EXPONENTIAL converting to LINEAR was also tried but it appears that it is unable to determine what type it is starting from in the first place. **Full Error Log:**
  3. 0

    Did Find in Files. Results showed a matching node. Clicking it caused an exception

    Netbeans Bugzilla | 1 decade ago | martyd2
    java.lang.IndexOutOfBoundsException: Invalid line index=42 >= lineCount=39 at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:54) at org.openide.text.NbDocument.findLineOffset(NbDocument.java:124) at org.openide.text.DocumentLine$Set.getOriginal(DocumentLine.java:743) at org.netbeans.modules.debugger.jpda.LineBreakpoint.set(LineBreakpoint.java:524) at org.netbeans.modules.debugger.jpda.LineBreakpoint.set(LineBreakpoint.java:477) at org.netbeans.modules.debugger.jpda.LineBreakpoint.exec(LineBreakpoint.java:379) at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:107)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      Index: 0, Size: 0

      at java.util.ArrayList.rangeCheck()
    2. Java RT
      ElementImpl.removeAttribute
      1. java.util.ArrayList.rangeCheck(ArrayList.java:635)
      2. java.util.ArrayList.get(ArrayList.java:411)
      3. com.sun.org.apache.xerces.internal.dom.AttributeMap.internalRemoveNamedItem(AttributeMap.java:295)
      4. com.sun.org.apache.xerces.internal.dom.AttributeMap.safeRemoveNamedItem(AttributeMap.java:239)
      5. com.sun.org.apache.xerces.internal.dom.ElementImpl.removeAttribute(ElementImpl.java:420)
      5 frames
    3. org.icefaces.impl
      DOMPartialViewContext.processPartial
      1. org.icefaces.impl.context.DOMPartialViewContext$2.run(DOMPartialViewContext.java:421)
      2. org.icefaces.impl.context.DOMPartialViewContext.domDiff(DOMPartialViewContext.java:404)
      3. org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:160)
      3 frames
    4. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
      2 frames
    5. JSF
      MultiViewHandler.renderView
      1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:421)
      2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      2 frames
    6. JavaEE 7
      ViewHandlerWrapper.renderView
      1. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
      1 frame
    7. JSF
      LifecycleImpl.render
      1. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      3 frames
    8. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    10. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      1 frame
    11. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      10 frames
    12. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      3 frames
    13. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:744)
      3 frames