java.lang.IndexOutOfBoundsException

Source emitted more than one item

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via GitHub by adrian-herscu
    ,
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Source emitted more than one item at reactor.core.publisher.MonoSingle$SingleSubscriber.onNext(MonoSingle.java:130)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:636)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:511)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlatMap$FlatMapInner.onSubscribe(FluxFlatMap.java:994)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:95)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:59)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:360)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.MonoFlatMap$FlattenSubscriber$InnerSubscriber.onNext(MonoFlatMap.java:195)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drainAsync(FluxFlattenIterable.java:362)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.drain(FluxFlattenIterable.java:595)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlattenIterable$FlattenIterableSubscriber.onNext(FluxFlattenIterable.java:220)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxBuffer$BufferExactSubscriber.onComplete(FluxBuffer.java:182)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxConcatArray$ConcatArraySubscriber.onComplete(FluxConcatArray.java:177)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxConcatArray.subscribe(FluxConcatArray.java:96)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxBuffer.subscribe(FluxBuffer.java:75)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFlattenIterable.subscribe(FluxFlattenIterable.java:103)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.MonoFlatMap$FlattenSubscriber.onNext(MonoFlatMap.java:158)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxResume$ResumeSubscriber.onNext(FluxResume.java:75)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:173)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:131)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.Operators$DeferredScalarSubscriber.complete(Operators.java:797)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.MonoThenApply$MonoThenApplyManager$SecondSubscriber.onNext(MonoThenApply.java:204)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:125)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxUsing$UsingFuseableSubscriber.onNext(FluxUsing.java:320)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:115)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxPeekFuseable$PeekFuseableConditionalSubscriber.onNext(FluxPeekFuseable.java:390)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.Operators$DeferredScalarSubscriber.complete(Operators.java:797)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.MonoReduce$ReduceSubscriber.onComplete(MonoReduce.java:152)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:157)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxSubscribeOn$SubscribeOnPipeline.onComplete(FluxSubscribeOn.java:137)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.ipc.netty.common.NettyChannelHandler$InboundSink.drain(NettyChannelHandler.java:696)[reactor-netty-0.5.0.M2.jar!/:na] at reactor.ipc.netty.common.NettyChannelHandler$InboundSink.request(NettyChannelHandler.java:772)[reactor-netty-0.5.0.M2.jar!/:na] at reactor.core.publisher.Operators$DeferredSubscription.set(Operators.java:598)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxSubscribeOn$SubscribeOnPipeline.onSubscribe(FluxSubscribeOn.java:117)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.ipc.netty.common.NettyChannelHandler.subscribe(NettyChannelHandler.java:543)[reactor-netty-0.5.0.M2.jar!/:na] at reactor.core.publisher.FluxSource.subscribe(FluxSource.java:59)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.publisher.FluxSubscribeOn$SourceSubscribeTask.run(FluxSubscribeOn.java:235)[reactor-core-3.0.0.RC1.jar!/:na] at reactor.core.scheduler.ExecutorScheduler$ExecutorTrackedRunnable.run(ExecutorScheduler.java:134)[reactor-core-3.0.0.RC1.jar!/:na] at io.netty.util.concurrent.SingleThreadEventExecutor.safeExecute(SingleThreadEventExecutor.java:451)[netty-all-4.1.3.Final.jar!/:4.1.3.Final] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418)[netty-all-4.1.3.Final.jar!/:4.1.3.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:401)[netty-all-4.1.3.Final.jar!/:4.1.3.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)[netty-all-4.1.3.Final.jar!/:4.1.3.Final] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_20]

    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

    We couldn't find other users who have seen this exception.