java.lang.IllegalStateException: Error resolving argument [0] of type [sample.web.reactive.BootStarter] on method [public reactor.core.publisher.Mono<sample.web.reactive.BootStarter> sample.web.reactive.HomeController.createUser(sample.web.reactive.User)]

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 Spring JIRA by Brian Clozel, 1 year ago
Error resolving argument [0] of type [sample.web.reactive.BootStarter] on method [public reactor.core.publisher.Mono<sample.web.reactive.BootStarter> sample.web.reactive.HomeController.createUser(sample.web.reactive.User)]
java.lang.IllegalStateException: Error resolving argument [0] of type [sample.web.reactive.BootStarter] on method [public reactor.core.publisher.Mono<sample.web.reactive.BootStarter> sample.web.reactive.HomeController.createUser(sample.web.reactive.User)]
at org.springframework.web.reactive.result.method.annotation.AbstractMessageReaderArgumentResolver.readBody(AbstractMessageReaderArgumentResolver.java:163)
at org.springframework.web.reactive.result.method.annotation.RequestBodyArgumentResolver.resolveArgument(RequestBodyArgumentResolver.java:81)
at org.springframework.web.reactive.result.method.InvocableHandlerMethod.lambda$resolveArguments$29(InvocableHandlerMethod.java:130)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
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 org.springframework.web.reactive.result.method.InvocableHandlerMethod.resolveArguments(InvocableHandlerMethod.java:139)
at org.springframework.web.reactive.result.method.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:93)
at org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter.handle(RequestMappingHandlerAdapter.java:242)
at org.springframework.web.reactive.DispatcherHandler.invokeHandler(DispatcherHandler.java:119)
at org.springframework.web.reactive.DispatcherHandler.lambda$handle$1(DispatcherHandler.java:112)
at reactor.core.publisher.MonoThenApply$MonoThenApplyManager.onNext(MonoThenApply.java:97)
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:71)
at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:81)
at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:383)
at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onSubscribe(FluxConcatMap.java:192)
at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:95)
at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:59)
at reactor.core.publisher.FluxConcatMap.subscribe(FluxConcatMap.java:116)
at reactor.core.publisher.MonoNext.subscribe(MonoNext.java:44)
at reactor.core.publisher.MonoOtherwiseIfEmpty.subscribe(MonoOtherwiseIfEmpty.java:47)
at reactor.core.publisher.MonoThenApply.subscribe(MonoThenApply.java:57)
at reactor.core.publisher.MonoThenApply.subscribe(MonoThenApply.java:57)
at reactor.core.publisher.MonoOtherwise.subscribe(MonoOtherwise.java:47)
at reactor.core.publisher.MonoOtherwise.subscribe(MonoOtherwise.java:47)
at reactor.core.publisher.MonoOtherwise.subscribe(MonoOtherwise.java:47)
at reactor.core.publisher.MonoThenSupply$MonoConcatIgnoreManager.drain(MonoThenSupply.java:166)
at reactor.core.publisher.MonoThenSupply.subscribe(MonoThenSupply.java:54)
at reactor.ipc.netty.http.NettyHttpServerHandler.channelRead(NettyHttpServerHandler.java:92)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:512)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:426)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)
at java.lang.Thread.run(Thread.java:745)

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.

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