apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.48k stars 26.43k forks source link

[Bug] dubbo3.2.11 direct connection for test caused error! #14758

Closed zzps closed 2 weeks ago

zzps commented 2 weeks ago

Pre-check

Search before asking

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

dubbo 3.2.11, openjdk17,windows11, instance discovery, tripple protocol

Steps to reproduce this issue

when i do test direct connect to the provider whith dubbo 3.2.11,and it lead to a error! follow is the screenshot 图片

What you expected to happen

expect consumer direct connect to the provider help me convenience to test

Anything else

No response

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

Code of Conduct

wcy666103 commented 2 weeks ago

Can you provide a full demo address?

zzps commented 2 weeks ago

Can you provide a full demo address?

https://gitee.com/755157298/dubbo-tree.git after clone ,start invoker and servant ,then request by url "http://127.0.0.1:9090/ping/api" and method GET,and you will see both in invoker and servant 图片

AlbumenJ commented 2 weeks ago

@zzps You can use @DubboReference(url = "tri://localhost:50051?serialization=fastjson2") or use hessian2 instead.

In Dubbo 3.3, we have improved the compability between hessian and JDK17

zzps commented 2 weeks ago

?serialization=fastjson2

thank you, it works