java.lang.IllegalArgumentException: endInclusive shouldn't be less than start but start = 0, endInclusive = -1

GitHub | spand | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception from FileReadChannel.

    GitHub | 4 months ago | spand
    java.lang.IllegalArgumentException: endInclusive shouldn't be less than start but start = 0, endInclusive = -1

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      endInclusive shouldn't be less than start but start = 0, endInclusive = -1

      at org.jetbrains.ktor.nio.FileReadChannel.<init>()
    2. org.jetbrains.ktor
      AsyncKt$executeOn$1.run
      1. org.jetbrains.ktor.nio.FileReadChannel.<init>(FileReadChannel.kt:16)
      2. org.jetbrains.ktor.nio.FileReadChannel.<init>(FileReadChannel.kt:8)
      3. org.jetbrains.ktor.nio.FileReadChannelKt.asyncReadOnlyFileChannel(FileReadChannel.kt:84)
      4. org.jetbrains.ktor.nio.FileReadChannelKt.asyncReadOnlyFileChannel(FileReadChannel.kt:85)
      5. org.jetbrains.ktor.nio.FileReadChannelKt.asyncReadOnlyFileChannel$default(FileReadChannel.kt:85)
      6. org.jetbrains.ktor.content.LocalFileContent.channel(StaticContent.kt:31)
      7. org.jetbrains.ktor.content.LocalFileContent.channel(StaticContent.kt:15)
      8. org.jetbrains.ktor.content.FinalContent$ChannelContent.startContent(FinalContent.kt:28)
      9. org.jetbrains.ktor.host.BaseApplicationCall$1.invoke(BaseApplicationCall.kt:64)
      10. org.jetbrains.ktor.host.BaseApplicationCall$1.invoke(BaseApplicationCall.kt:11)
      11. org.jetbrains.ktor.pipeline.PipelineBlock.call(PipelineBlock.kt:9)
      12. org.jetbrains.ktor.pipeline.PipelineMachine.proceed(PipelineMachine.kt:34)
      13. org.jetbrains.ktor.pipeline.PipelineExecution.proceed(PipelineExecution.kt:18)
      14. org.jetbrains.ktor.pipeline.AsyncKt.continuePipeline(Async.kt:104)
      15. org.jetbrains.ktor.transform.TransformationSupport$transform$1$1.invoke(TransformIntercept.kt:39)
      16. org.jetbrains.ktor.transform.TransformationSupport$transform$1$1.invoke(TransformIntercept.kt:11)
      17. org.jetbrains.ktor.pipeline.PipelineMachine.proceed(PipelineMachine.kt:86)
      18. org.jetbrains.ktor.pipeline.PipelineMachine.execute(PipelineMachine.kt:15)
      19. org.jetbrains.ktor.transform.TransformationSupport.transform(TransformIntercept.kt:48)
      20. org.jetbrains.ktor.transform.TransformationSupport.access$transform(TransformIntercept.kt:11)
      21. org.jetbrains.ktor.transform.TransformationSupport$install$1$1.invoke(TransformIntercept.kt:23)
      22. org.jetbrains.ktor.transform.TransformationSupport$install$1$1.invoke(TransformIntercept.kt:11)
      23. org.jetbrains.ktor.pipeline.PipelineBlock.call(PipelineBlock.kt:9)
      24. org.jetbrains.ktor.pipeline.PipelineMachine.proceed(PipelineMachine.kt:34)
      25. org.jetbrains.ktor.pipeline.PipelineMachine.execute(PipelineMachine.kt:15)
      26. org.jetbrains.ktor.pipeline.AsyncKt$executeOn$1.run(Async.kt:23)
      26 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames