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

[Bug] org.apache.dubbo.rpc.protocol.tri.rest.mapping.DefaultRequestMappingRegistry restConfig may be null #14923

Open
3 of 4 tasks
niuhutao opened this issue Nov 22, 2024 · 1 comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@niuhutao
Copy link

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

dubbo java 3.3.2
spring boot 3.x
jdk 21

Steps to reproduce this issue

restconfig is not initialized until tomcat is started, when the system is ready to receive requests. If there is a request before restconfig is initialized, the exception restconfig is null.
Can you add initialization logic when determining whether to use the triple-rest protocol, or reject the request before the initialization is complete

What you expected to happen

no exception

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@niuhutao niuhutao added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Nov 22, 2024
@oxsean
Copy link
Collaborator

oxsean commented Nov 22, 2024

Could you please provide the exception stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

2 participants