apache / apache/shenyu

[Question] Dubbo proxy occurs NullPointerException, have no "dubbo" Decorator

Open
#4,836 4 comments 0 reactions 0 assignees View on GitHub
type: question
Dominant language
Java
Stars
8.8k
Forks
3.1k
Avg merge
7d 1h
Merged PRs (30d)
85

Description

### Question

When i use the shenyu to proxy dubbo service and then call the gateway interface.

java.lang.NullPointerException: null
at org.apache.shenyu.plugin.global.DefaultShenyuContextBuilder.build(DefaultShenyuContextBuilder.java:61) ~[shenyu-plugin-global-2.5.1.jar:2.5.1]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:

![image](https://github.com/apache/shenyu/assets/66467678/f561c51d-1b7a-4a39-83fd-66d1029f364a)
The decoratorMap just have http. When the DubboShenyuContextDecorator was added to this map?

maybe i miss some dependencies ... but i can't find it in document.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with org.apache.shenyu.plugin.global.DefaultShenyuContextBuilder at line 61 and inspect how decoratorMap is populated. Trace the referenced DubboShenyuContextDecorator and the documented dependencies for Dubbo proxying. Done means the cause of the missing decorator is identified and a Dubbo gateway call no longer produces this NullPointerException, with the required setup clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.