Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError: 'io.swagger.v3.oas.annotations.StringToClassMapItem[] io.swagger.v3.oas.annotations.media.Schema.dependentSchemas()' #2586

Closed
KaseiHaku opened this issue May 1, 2024 · 0 comments

Comments

@KaseiHaku
Copy link

KaseiHaku commented May 1, 2024

Describe the bug

org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0
When I access /swagger-ui.html , the following error is reported in the backend

java.lang.NoSuchMethodError: 'io.swagger.v3.oas.annotations.StringToClassMapItem[] io.swagger.v3.oas.annotations.media.Schema.dependentSchemas()'
2024-05-01T17:35:38.916204960Z at io.swagger.v3.core.util.AnnotationsUtils.hasSchemaAnnotation(AnnotationsUtils.java:108) ~[swagger-core-jakarta-2.2.21.jar!/:2.2.21]
2024-05-01T17:35:38.916207774Z at org.springdoc.core.utils.SpringDocAnnotationsUtils.getMediaType(SpringDocAnnotationsUtils.java:392) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916210247Z at org.springdoc.core.utils.SpringDocAnnotationsUtils.getContent(SpringDocAnnotationsUtils.java:185) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916212719Z at org.springdoc.core.service.RequestBodyService.buildResquestBodyContent(RequestBodyService.java:147) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916215165Z at org.springdoc.core.service.RequestBodyService.buildRequestBodyFromDoc(RequestBodyService.java:128) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916218349Z at org.springdoc.core.service.RequestBodyService.buildRequestBodyFromDoc(RequestBodyService.java:235) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916220893Z at org.springdoc.core.service.OperationService.parse(OperationService.java:158) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916223722Z at org.springdoc.api.AbstractOpenApiResource.calculatePath(AbstractOpenApiResource.java:481) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916226669Z at org.springdoc.api.AbstractOpenApiResource.calculatePath(AbstractOpenApiResource.java:676) ~[springdoc-openapi-starter-common-2.5.0.jar!/:2.5.0]
2024-05-01T17:35:38.916229124Z at org.springdoc.webflux.api.OpenApiResource.lambda$calculatePath$5(OpenApiResource.java:191) ~[springdoc-openapi-starter-webflux-api-2.5.0.jar!/:2.5.0]

To Reproduce
Steps to reproduce the behavior:

Expected behavior

work fine

Screenshots
Screenshot_20240502_044035
Screenshot_20240502_044250

Why are different versions referenced???

Additional context

  • spring-boot 3.2.0
  • spring-cloud 2023.0.0
  • webflux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant