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

ICEsoft JIRA Issue Tracker | Deryk Sinotte | 1 year ago
  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 | 1 year ago | Deryk Sinotte
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    IndexOutOfBoundsException problems

    Stack Overflow | 4 years ago | please delete me
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. 0

    Problem with the ArrayList class in Java

    Stack Overflow | 7 years ago | user42155
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Command for YUI Compressor for Input folders JS

    Stack Overflow | 2 years ago | mmt
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  6. 0

    Shopping Cart in Java

    Stack Overflow | 2 years ago | Toohey88
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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