You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "kangzhaok (via GitHub)" <gi...@apache.org> on 2024/06/05 08:04:10 UTC

[I] [Bug] 通过网关将 http 流量接入 Dubbo 后端服务报错 [dubbo]

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

   ### Pre-check
   
   - [X] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   3.3.0-beta.3
   
   ### Steps to reproduce this issue
   
   use 3.3.0-beta.3 both publish dubbo and tri protocol, use http call dubbo interface has a error.
   java.lang.NoClassDefFoundError: io/netty/handler/codec/http/HttpDecoderConfig
   	at org.apache.dubbo.rpc.protocol.tri.TripleHttp2Protocol.configurerHttp1Handlers(TripleHttp2Protocol.java:133) ~[dubbo-3.3.0-beta.3.jar:3.3.0-beta.3]
   	at org.apache.dubbo.rpc.protocol.tri.TripleHttp2Protocol.configServerProtocolHandler(TripleHttp2Protocol.java:118) ~[dubbo-3.3.0-beta.3.jar:3.3.0-beta.3]
   	at org.apache.dubbo.remoting.transport.netty4.NettyPortUnificationServerHandler.detectProtocol(NettyPortUnificationServerHandler.java:176) ~[dubbo-3.3.0-beta.3.jar:3.3.0-beta.3]
   	at org.apache.dubbo.remoting.transport.netty4.NettyPortUnificationServerHandler.decode(NettyPortUnificationServerHandler.java:124) ~[dubbo-3.3.0-beta.3.jar:3.3.0-beta.3]
   	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529) ~[netty-codec-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468) ~[netty-codec-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) ~[netty-codec-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) [netty-transport-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) [netty-common-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.87.Final.jar:4.1.87.Final]
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.87.Final.jar:4.1.87.Final]
   	at java.lang.Thread.run(Thread.java:750) [na:1.8.0_401]
   Caused by: java.lang.ClassNotFoundException: io.netty.handler.codec.http.HttpDecoderConfig
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[na:1.8.0_401]
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_401]
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:359) ~[na:1.8.0_401]
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_401]
   	... 23 common frames omitted
   
   ### What you expected to happen
   
   use http call dubbo interface no error。 try use 3.3.0-beta.2 is right。
   need upgrade netty-codec-http version to 4.1.107.Final
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [X] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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


Re: [I] [Bug] 通过网关将 http 流量接入 Dubbo 后端服务报错 [dubbo]

Posted by "kangzhaok (via GitHub)" <gi...@apache.org>.
kangzhaok closed issue #14288: [Bug]  通过网关将 http 流量接入 Dubbo 后端服务报错
URL: https://github.com/apache/dubbo/issues/14288


-- 
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] [Bug] 通过网关将 http 流量接入 Dubbo 后端服务报错 [dubbo]

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

   ok,i see latest code already upgrade to 4.1.109.Final ,i will close this issus


-- 
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] [Bug] 通过网关将 http 流量接入 Dubbo 后端服务报错 [dubbo]

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

   Please upgrade to the latest netty version.


-- 
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