java.lang.IndexOutOfBoundsException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 4#247005223
    via GitHub by pascal-ballet
    ,
  • Crash when using X-Ray Manager
    via GitHub by GhostGuy283
    ,
  • GitHub comment 5374#162835297
    via GitHub by davsclaus
    ,
  • We use Artifactory (4.4.1) as Docker registry. Pushing a docker imamage on Windows 7 with the latest Docker client (1.9.1) usually works well, but with a big image (1.4 GB) we get the following output: ?? docker push docker.viewpoint.io/alxserver The push refers to a repository [docker.viewpoint.io/alxserver] (len: 1) bafcf9f11c9e: Pushed [==================================================>] 919.7 MB/906.5 MB 054f42cdbfd3: Image already exists 6cd0b91c259c: Image already exists 85b9108e526f: Pushed [==================================================>] 2.048 kB fff3df67c11a: Pushed [==================================================>] 2.56 kB f70e8cdd150b: Pushed [==================================================>] 3.584 kB/660 B f8472710388d: Pushed [==================================================>] 396 MB/396 MB 34d65c86da35: Image already exists b4a0e9499ec5: Image already exists 624118f67d2d: Image already exists latest: digest: sha256:7dc2edb7581f62c23a318a058e7345ed50ca3e6119b3455dd69a32ad16a98400 size: 20146 Received unexpected HTTP status: 500 Internal Server Error The Arfiactory logs show: 2016-01-15 08:57:52,726 [art-exec-112] [INFO ] (o.j.r.d.v.i.DockerV2UploadsCleaner:31) - Starting cleanup of idle docker uploads 2016-01-15 08:57:52,727 [http-nio-8080-exec-30] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:46) - Index: 2, Size: 2 java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[na:1.8.0_60] at java.util.ArrayList.get(ArrayList.java:429) ~[na:1.8.0_60] at org.jfrog.repomd.docker.v2.view.DockerInfo.getCommand(DockerInfo.java:67) ~[DockerInfo.class:na] at org.jfrog.repomd.docker.v2.view.DockerInfo.populateWithCommand(DockerInfo.java:49) ~[DockerInfo.class:na] at org.jfrog.repomd.docker.v2.view.DockerInfo.getDockerV2Info(DockerInfo.java:36) ~[DockerInfo.class:na] at org.jfrog.repomd.docker.v2.rest.handler.DockerV2LocalRepoHandler.uploadManifest(DockerV2LocalRepoHandler.java:224) ~[DockerV2LocalRepoHandler.class:na] at org.jfrog.repomd.docker.v2.rest.DockerV2Resource.uploadManifest(DockerV2Resource.java:69) ~[DockerV2Resource.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60] at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[JavaMethodInvokerFactory$1.class:1.19] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) ~[AbstractResourceMethodDispatchProvider$ResponseOutInvoker.class:1.19] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[ResourceJavaMethodDispatcher.class:1.19] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[HttpMethodRule.class:1.19] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[RightHandPathRule.class:1.19] at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137) ~[SubLocatorRule.class:1.19] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[RightHandPathRule.class:1.19] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[ResourceClassRule.class:1.19] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[RightHandPathRule.class:1.19] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[RootResourceClassesRule.class:1.19] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) [WebApplicationImpl.class:1.19] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) [WebApplicationImpl.class:1.19] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) [WebApplicationImpl.class:1.19] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) [WebApplicationImpl.class:1.19] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) [WebComponent.class:1.19] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) [ServletContainer.class:1.19] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) [ServletContainer.class:1.19] at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [tomcat8-servlet-api-8.0.14.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat8-websocket-8.0.14.jar:8.0.14] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:203) [RepoFilter.class:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:94) [RepoFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:334) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:234) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:190) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:156) [AccessFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:65) [RequestFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:116) [ArtifactoryFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537) [tomcat8-catalina-8.0.14.jar:8.0.14] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081) [tomcat8-coyote-8.0.14.jar:8.0.14] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658) [tomcat8-coyote-8.0.14.jar:8.0.14] at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) [tomcat8-coyote-8.0.14.jar:8.0.14] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) [tomcat8-coyote-8.0.14.jar:8.0.14] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) [tomcat8-coyote-8.0.14.jar:8.0.14] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat8-util-8.0.14.jar:8.0.14] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60] 2016-01-15 08:57:52,736 [art-exec-112] [INFO ] (o.j.r.d.v.i.DockerV2UploadsCleaner:52) - Completed idle docker uploads cleanup: removed 0 blobs. Artifactory's free disk space is: 181.56 GB
    via by Kai T??dter,
    • java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at org.xid.basics.ui.field.ListField$2.handleEvent(ListField.java:112) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122) at org.eclipse.swt.widgets.Table.checkData(Table.java:1180) at org.eclipse.swt.widgets.Table.wmNotifyChild(Table.java:6831) at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5690) at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1956) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5242) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4718) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5063) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443) at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:578) at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:444) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4760) at org.eclipse.swt.widgets.Table.windowProc(Table.java:5983) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5050) at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3302) at org.eclipse.swt.widgets.Table.clearAll(Table.java:1455) at org.xid.basics.ui.field.ListField.refresh(ListField.java:286) at org.xid.basics.ui.field.ListField.setValue(ListField.java:274) at org.xid.basics.ui.field.ListField.setValue(ListField.java:280) at matrixstudio.ui.controller.TaskController.refreshFields(TaskController.java:186) at org.xid.basics.ui.field.PropertiesField.setSubject(PropertiesField.java:113) at matrixstudio.ui.MatrixStudio.setSelection(MatrixStudio.java:256) at matrixstudio.ui.ScheduleTabController$1.notified(ScheduleTabController.java:37) at org.xid.basics.notification.NotificationSupport$Stub.fireNotification(NotificationSupport.java:37) at org.xid.basics.notification.NotificationSupport$Stub.fireValueNotification(NotificationSupport.java:47) at org.xid.basics.ui.diagram.DiagramController.fireProperty(DiagramController.java:106) at org.xid.basics.ui.diagram.DiagramController.setSelectedElements(DiagramController.java:533) at org.xid.basics.ui.diagram.DiagramController.findSelectionNewElements(DiagramController.java:814) at org.xid.basics.ui.diagram.DiagramController.refreshElements(DiagramController.java:353) at org.xid.basics.ui.field.DiagramField.refreshDiagram(DiagramField.java:133) at matrixstudio.ui.ScheduleTabController.refreshFields(ScheduleTabController.java:54) at matrixstudio.ui.MatrixStudio.refreshSchedule(MatrixStudio.java:215) at matrixstudio.ui.MatrixStudio.refreshFields(MatrixStudio.java:194) at matrixstudio.ui.MatrixStudio$1.executeAction(MatrixStudio.java:80) at org.xid.basics.ui.action.ActionManager$1.handleEvent(ActionManager.java:57) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769) at matrixstudio.ui.MatrixStudio.open(MatrixStudio.java:467) at matrixstudio.ui.MatrixStudio.main(MatrixStudio.java:511)

    Users with the same issue

    DavidDavid
    4 times, last one,
    tvrmsmithtvrmsmith
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    harshgharshg
    1 times, last one,
    235 more bugmates