java.lang.IndexOutOfBoundsException: End index: 4098 >= 4096

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

Solutions on the web

via GitHub by loicortola
, 1 year ago
End index: 4098 >= 4096
via GitHub by romanzes
, 1 year ago
Beginning index larger than ending index: 0, -1621147904
java.lang.IndexOutOfBoundsException: End index: 4098 >= 4096
at com.google.protobuf.ByteString.checkRange(ByteString.java:1219)
at com.google.protobuf.ByteString.copyTo(ByteString.java:596)
at com.google.protobuf.CodedInputStream.tryRefillBuffer(CodedInputStream.java:1101)
at com.google.protobuf.CodedInputStream.isAtEnd(CodedInputStream.java:1035)
at com.google.protobuf.CodedInputStream.readTag(CodedInputStream.java:139)
at POGOProtos.Networking.Responses.GetMapObjectsResponseOuterClass$GetMapObjectsResponse.(GetMapObjectsResponseOuterClass.java:78)
at POGOProtos.Networking.Responses.GetMapObjectsResponseOuterClass$GetMapObjectsResponse.(GetMapObjectsResponseOuterClass.java:51)
at POGOProtos.Networking.Responses.GetMapObjectsResponseOuterClass$GetMapObjectsResponse$1.parsePartialFrom(GetMapObjectsResponseOuterClass.java:759)
at POGOProtos.Networking.Responses.GetMapObjectsResponseOuterClass$GetMapObjectsResponse$1.parsePartialFrom(GetMapObjectsResponseOuterClass.java:754)
at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:197)
at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:214)
at POGOProtos.Networking.Responses.GetMapObjectsResponseOuterClass$GetMapObjectsResponse.parseFrom(GetMapObjectsResponseOuterClass.java:222)
at com.pokegoapi.api.map.Map$6.handle(Map.java:299)
at com.pokegoapi.api.map.Map$6.handle(Map.java:294)
at com.pokegoapi.util.FutureWrapper.getResult(FutureWrapper.java:78)
at com.pokegoapi.util.FutureWrapper.get(FutureWrapper.java:53)
at com.pokegoapi.util.FutureWrapper.getResult(FutureWrapper.java:78)
at com.pokegoapi.util.FutureWrapper.get(FutureWrapper.java:53)
at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:108)
at com.pokegoapi.util.FutureWrapper.toBlocking(FutureWrapper.java:94)
at com.pokegoapi.api.map.Map.getCatchablePokemon(Map.java:122)

Users with the same issue

You are the first who have seen this exception.

Write tip

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