You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/06/19 03:02:31 UTC

[GitHub] [dubbo] lihao0324 opened a new issue, #10176: gateway integration dubbo routing failed(gateway整合dubbo路由失败)

lihao0324 opened a new issue, #10176:
URL: https://github.com/apache/dubbo/issues/10176

   Springcloud: Hoxton.SR9
   Springboot: 2.3.7.RELEASE
   dubbo-spring-boot-starter: 3.0.8
   
   DUBBO3添加了应用级注册的功能, 如果我开启了应用级注册, 并且开启了spring.cloud.gateway.discovery.locator.enabled=true 则gateway会将DUBBO服务也视为我的服务然后进行路由, 最后导致请求失败
   DUBBO3 adds application-level registration, if I enable application-level registration and enable spring.cloud.gateway.discovery.locator.enabled=true then the gateway will treat the DUBBO service as my service and route it, resulting in a failed request
   
   
   注册中心截图
   Registration Center Screenshot
   ![1655607363562](https://user-images.githubusercontent.com/49888630/174463979-42cd32cf-6529-4210-ab28-7240fb7ac146.jpg)
   
   网关报错信息
   Gateway error message
   ``` java
   [c7c94c5d-303940]  500 Server Error for HTTP GET "/wison-subcontract/system/dict/group/cache/all"
   java.lang.IllegalArgumentException: invalid version format: UNSUPPORTED
   	at io.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:120)
   	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
   Error has been observed at the following site(s):
   	|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
   	|_ checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
   	|_ checkpoint ⇢ HTTP GET "/wison-subcontract/system/dict/group/cache/all" [ExceptionHandlingWebHandler]
   Stack trace:
   		at io.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:120)
   		at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:77)
   		at io.netty.handler.codec.http.HttpResponseDecoder.createMessage(HttpResponseDecoder.java:126)
   		at io.netty.handler.codec.http.HttpObjectDecoder.decode(HttpObjectDecoder.java:250)
   		at io.netty.handler.codec.http.HttpClientCodec$Decoder.decode(HttpClientCodec.java:225)
   		at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:508)
   		at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:447)
   		at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
   		at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
   		at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
   		at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
   		at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
   		at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
   		at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
   		at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
   		at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
   		at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795)
   		at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480)
   		at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)
   		at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
   		at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
   		at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   		at java.lang.Thread.run(Thread.java:853)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] TOP-LH closed issue #10176: gateway integration dubbo routing failed(gateway整合dubbo路由失败)

Posted by GitBox <gi...@apache.org>.
TOP-LH closed issue #10176: gateway integration dubbo routing failed(gateway整合dubbo路由失败)
URL: https://github.com/apache/dubbo/issues/10176


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] chickenlj commented on issue #10176: gateway integration dubbo routing failed(gateway整合dubbo路由失败)

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10176:
URL: https://github.com/apache/dubbo/issues/10176#issuecomment-1159899245

   dubbo 服务和 Spring 在同一个 namespace、group 下导致的?可以尝试调整 dubbo 侧的 namespace 或这 spring 应用的 namespace,把地址空间隔离开。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] gateway integration dubbo routing failed(gateway整合dubbo路由失败) [dubbo]

Posted by "yizhitangtongxue (via GitHub)" <gi...@apache.org>.
yizhitangtongxue commented on issue #10176:
URL: https://github.com/apache/dubbo/issues/10176#issuecomment-1878079382

   > dubbo 服务和 Spring 在同一个 namespace、group 下导致的?可以尝试调整 dubbo 侧的 namespace 或这 spring 应用的 namespace,把地址空间隔离开。
   
   确实有这个问题,其他微服务和dubbo的group不能是同一个,会导致请求pending


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org