java.lang.IllegalArgumentException

Invalid range: [917..-1)


Solutions on the web6248

Solution icon of github
Invalid range: [917..-1)

Solution icon of github
Invalid range: [163‥-1)

Solution icon of bugzilla
invalid cell range (9, -1, 1, 1)

Solution icon of stackoverflow
Invalid range

Solution icon of stackoverflow
Invalid offset: -1. Valid range is [0, 10562]

Solution icon of web
Invalid row number (-1) outside allowable range (0..65535)

Solution icon of github
via GitHub by arcoirislabs
, 10 months ago
Invalid topic length, should be in range[1, 65535]!

Solution icon of github
Invalid offset: -1. Valid range is [0, 86]

Solution icon of stackoverflow
Invalid offset: -1. Valid range is [0, 923]

Solution icon of github
via GitHub by trubitsyn
, 2 months ago
Invalid offset: -1. Valid range is [0, 5]

Stack trace

  • java.lang.IllegalArgumentException: Invalid range: [917..-1) at com.google.common.collect.Range.<init>(Range.java:352) at com.google.common.collect.Range.create(Range.java:146) at com.google.common.collect.Range.closedOpen(Range.java:182) at com.google.errorprone.fixes.Replacement.create(Replacement.java:38) at com.google.errorprone.fixes.SuggestedFix$ReplacementFix.getReplacement(SuggestedFix.java:369) at com.google.errorprone.fixes.SuggestedFix.getReplacements(SuggestedFix.java:91) at com.google.errorprone.fixes.AppliedFix$Applier.apply(AppliedFix.java:66) at com.google.errorprone.JavacErrorDescriptionListener.lambda$new$0(JavacErrorDescriptionListener.java:61) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.google.errorprone.JavacErrorDescriptionListener.onDescribed(JavacErrorDescriptionListener.java:75) at com.google.errorprone.VisitorState.reportMatch(VisitorState.java:159) at com.google.errorprone.scanner.Scanner.reportMatch(Scanner.java:160) at com.google.errorprone.scanner.ErrorProneScanner.visitBinary(ErrorProneScanner.java:554) at com.google.errorprone.scanner.ErrorProneScanner.visitBinary(ErrorProneScanner.java:144) at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:1958) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:72) at com.google.errorprone.scanner.Scanner.scan(Scanner.java:89) at com.google.errorprone.scanner.Scanner.scan(Scanner.java:43)

Write tip

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

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.