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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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.

,

Thrown if trying to access an index which is out of bounds on objects like String, Array, or Vector. Any negative integer less than or equal to -1 and positive integer greater than or equal to the size of the object is an index which would be out of bounds

Solutions on the web

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.opencloudb.route.util.RouterUtil.findRouteWithcConditionsForTables(RouterUtil.java:984)
at org.opencloudb.route.util.RouterUtil.tryRouteForOneTable(RouterUtil.java:877)
at org.opencloudb.route.util.RouterUtil.tryRouteForTables(RouterUtil.java:755)
at org.opencloudb.route.impl.DruidMycatRouteStrategy.routeNormalSqlWithAST(DruidMycatRouteStrategy.java:75)
at org.opencloudb.route.impl.AbstractRouteStrategy.route(AbstractRouteStrategy.java:61)
at org.opencloudb.route.RouteService.route(RouteService.java:118)
at org.opencloudb.server.ServerConnection.routeEndExecuteSQL(ServerConnection.java:201)
at org.opencloudb.server.ServerConnection.execute(ServerConnection.java:154)
at org.opencloudb.server.ServerQueryHandler.query(ServerQueryHandler.java:120)
at org.opencloudb.net.FrontendConnection.query(FrontendConnection.java:319)
at org.opencloudb.net.handler.FrontendCommandHandler.handle(FrontendCommandHandler.java:71)
at org.opencloudb.net.FrontendConnection.rawHandle(FrontendConnection.java:456)
at org.opencloudb.net.FrontendConnection.handle(FrontendConnection.java:434)
at org.opencloudb.net.AbstractConnection.onReadData(AbstractConnection.java:307)
at org.opencloudb.net.NIOSocketWR.asynRead(NIOSocketWR.java:186)
at org.opencloudb.net.AbstractConnection.asynRead(AbstractConnection.java:268)
at org.opencloudb.net.NIOReactor$RW.run(NIOReactor.java:96)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

44 times, 2 weeks ago
4 times, 5 months ago
Once, 11 months ago
2 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
262 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.