java.lang.IndexOutOfBoundsException: Source emitted more than one item

GitHub | adrian-herscu | 1 week ago
  1. 0

    GitHub comment 602#271907219

    GitHub | 1 week ago | adrian-herscu
    java.lang.IndexOutOfBoundsException: Source emitted more than one item
  2. 0

    GitHub comment 85#249858422

    GitHub | 4 months ago | ericbottard
    java.util.NoSuchElementException: Flux#last() didn't observe any onNext signal
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 41#255749660

    GitHub | 3 months ago | lpborges
    org.springframework.web.server.ServerWebInputException: Request failure [status: 400, reason: "Validation failed"]
  5. 0

    When using the {{WebClient}} with the following example and the server returns HTTP 401: {code} Mono<ResponseEntity<Map>> response = this.webClient                 .perform(peopleRequest().apply(httpBasic("rob","invalid")))                 .extract(response(Map.class)); {code} The client throws a {{NoSuchElementException}}: {code} java.util.NoSuchElementException: Source was empty     at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:179)     at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144)     at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:762)     at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:520)     at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:500)     at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:493)     at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:155)     at reactor.core.publisher.FluxSubscribeOn$SubscribeOnPipeline.onComplete(FluxSubscribeOn.java:136)     at reactor.core.publisher.Operators.complete(Operators.java:182)     at reactor.ipc.netty.common.NettyChannelHandler.subscribe(NettyChannelHandler.java:537)     at reactor.core.publisher.FluxSource.subscribe(FluxSource.java:59)     at reactor.core.publisher.FluxSubscribeOn$SourceSubscribeTask.run(FluxSubscribeOn.java:234)     at reactor.core.scheduler.ExecutorScheduler$ExecutorTrackedRunnable.run(ExecutorScheduler.java:136)     at io.netty.util.concurrent.SingleThreadEventExecutor.safeExecute(SingleThreadEventExecutor.java:451)     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418)     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:401)     at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)     at java.lang.Thread.run(Thread.java:745) {code}

    Spring JIRA | 5 months ago | Brian Clozel
    java.util.NoSuchElementException: Source was empty

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      Source emitted more than one item

      at reactor.core.publisher.MonoSingle$SingleSubscriber.onNext()
    2. reactor.core.publisher
      FluxSubscribeOn$SubscribeOnSubscriber.onComplete
      1. reactor.core.publisher.MonoSingle$SingleSubscriber.onNext(MonoSingle.java:124)
      2. reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:661)
      3. reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:541)
      4. reactor.core.publisher.FluxFlatMap$FlatMapInner.onSubscribe(FluxFlatMap.java:1072)
      5. reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:95)
      6. reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:59)
      7. reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:385)
      8. reactor.core.publisher.MonoFlatMap$FlattenSubscriber$InnerSubscriber.onNext(MonoFlatMap.java:194)
      9. reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drainAsync(FluxFlattenIterable.java:358)
      10. reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drain(FluxFlattenIterable.java:587)
      11. reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.onNext(FluxFlattenIterable.java:216)
      12. reactor.core.publisher.FluxBuffer$BufferExactSubscriber.onComplete(FluxBuffer.java:179)
      13. reactor.core.publisher.FluxConcatArray$ConcatArraySubscriber.onComplete(FluxConcatArray.java:177)
      14. reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:801)
      15. reactor.core.publisher.FluxFlatMap$FlatMapMain.innerComplete(FluxFlatMap.java:921)
      16. reactor.core.publisher.FluxFlatMap$FlatMapInner.onComplete(FluxFlatMap.java:1107)
      17. reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onComplete(Operators.java:1198)
      18. reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onComplete(FluxPeekFuseable.java:217)
      19. reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:152)
      20. reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:894)
      21. reactor.core.publisher.MonoThenApply$MonoThenApplyManager$SecondSubscriber.onNext(MonoThenApply.java:201)
      22. reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:122)
      23. reactor.core.publisher.FluxUsing$UsingFuseableSubscriber.onNext(FluxUsing.java:314)
      24. reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:108)
      25. reactor.core.publisher.FluxPeekFuseable$PeekFuseableConditionalSubscriber.onNext(FluxPeekFuseable.java:368)
      26. reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:892)
      27. reactor.core.publisher.MonoReduce$ReduceSubscriber.onComplete(MonoReduce.java:149)
      28. reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144)
      29. reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.onComplete(FluxSubscribeOn.java:160)
      29 frames
    3. reactor.ipc.netty
      NettyHttpClientHandler.channelRead
      1. reactor.ipc.netty.common.NettyChannelHandler$InboundSink.complete(NettyChannelHandler.java:654)
      2. reactor.ipc.netty.http.NettyHttpClientHandler.postRead(NettyHttpClientHandler.java:184)
      3. reactor.ipc.netty.http.NettyHttpClientHandler.channelRead(NettyHttpClientHandler.java:135)
      3 frames
    4. Netty
      AbstractChannelHandlerContext.fireChannelRead
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      4. io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
      5. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
      6. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
      7. io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
      8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      9. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      10. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      11. io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      13. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      14. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      15. io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:233)
      16. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      17. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      18. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      19. io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1066)
      20. io.netty.handler.ssl.SslHandler.decode(SslHandler.java:900)
      21. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)
      22. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
      23. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      24. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      25. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      25 frames
    5. io.netty.handler
      ProxyHandler.channelRead
      1. io.netty.handler.proxy.ProxyHandler.channelRead(ProxyHandler.java:253)
      1 frame
    6. Netty
      SingleThreadEventExecutor$5.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      4. io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
      5. io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:252)
      6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      7. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      8. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      9. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
      10. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      11. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      12. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
      13. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
      14. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:610)
      15. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:551)
      16. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:465)
      17. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:437)
      18. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      18 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame