Skip to content

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

@niuhutao

Description

@niuhutao

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions