Skip to content

IllegalStateException in org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice.handleNoHandlerFound #1051

Closed
@speralta

Description

@speralta

Describe the bug
OpenApiResourceNotFoundException handler fails with IllegalStateException

[19303290-1373] There was an unexpected error (type=Internal Server Error, status=500).
Could not resolve parameter [1] in public org.springframework.http.ResponseEntity<org.springdoc.api.ErrorMessage> org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice.handleNoHandlerFound(org.springdoc.api.OpenApiResourceNotFoundException,org.springframework.web.context.request.WebRequest): No suitable resolver
java.lang.IllegalStateException: Could not resolve parameter [1] in public org.springframework.http.ResponseEntity<org.springdoc.api.ErrorMessage> org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice.handleNoHandlerFound(org.springdoc.api.OpenApiResourceNotFoundException,org.springframework.web.context.request.WebRequest): No suitable resolver
	at org.springframework.web.reactive.result.method.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:197)
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
	|_ checkpoint ⇢ HTTP GET "/v3/api-docs/test" [ExceptionHandlingWebHandler]

To Reproduce
Steps to reproduce the behavior:
On spring boot 2 Web flux with Open API 3 demo for example :
http://158.101.164.60:8082/v3/api-docs/test

  • What version of spring-boot you are using?
    2
  • What modules and versions of springdoc-openapi are you using?
    1.5.3
  • What is the actual and the expected result using OpenAPI Description (yml or json)?
    N/A
  • Provide with a sample code (HelloController) or Test that reproduces the problem
    I use springdoc demo site to reproduce

Expected behavior

  • A clear and concise description of what you expected to happen.
    A correct error handling
  • What is the expected result using OpenAPI Description (yml or json)?
    N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions