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

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

,

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

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

Solutions on the web

via GitHub by obecker
, 1 year ago
Index: 204, Size: 204
via Stack Overflow by Robin Steffers
, 2 years ago
Index: 1, Size: 1
via GitHub by shaynl
, 1 year ago
via Stack Overflow by rahulserver
, 2 years ago
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at massim.competition2015.MapSimulation.finalizeSimpleSimulation(MapSimulation.java:197)
at massim.framework.simulation.AbstractSimulation.endSimulation(AbstractSimulation.java:141)
at massim.framework.SimulationRun.runSimulation(SimulationRun.java:38)
at massim.server.ServerSimulationRun2.runSimulation(ServerSimulationRun2.java:243)
at massim.server.Server.runMatch(Server.java:413)
at massim.server.Server.run(Server.java:555)
at massim.server.Server.main(Server.java:739)
at pucrs.agentcontest2015.Scenario1$2.run(Scenario1.java:34)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Once, 6 days ago
4 times, 1 week ago
17 times, 2 weeks ago
Once, 3 weeks ago
2 times, 1 month ago

Write tip

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