plusmancn opened a new issue #8961:
URL: https://github.com/apache/dubbo/issues/8961


   Reproduce steps:
   * Use Triple protocol in both consumer and provider,
   * The provider works with `-Ddubbo.application.register-mode=instance`
   * The consumer works with 
`-Ddubbo.application.service-discovery.migration=FORCE_APPLICATION`
   
   Above test case will throw following errors:
   ```shell
   [29/09/21 11:52:35:035 CST] NettyClientWorker-3-3  WARN 
channel.ChannelInitializer: Failed to initialize a channel. Closing: [id: 
0xc1ba4a78]
   java.lang.NullPointerException
        at 
org.apache.dubbo.registry.client.InstanceAddressURL.getScopeModel(InstanceAddressURL.java:498)
        at 
org.apache.dubbo.rpc.protocol.tri.TripleHttp2Protocol.configClientPipeline(TripleHttp2Protocol.java:76)
        at 
org.apache.dubbo.remoting.api.Connection$1.initChannel(Connection.java:115)
        at 
org.apache.dubbo.remoting.api.Connection$1.initChannel(Connection.java:102)
        at 
io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)
        at 
io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)
        at 
io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)
        at 
io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)
        at 
io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)
        at 
io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)
        at 
io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)
        at 
io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)
        at 
io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)
        at 
io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)
        at 
io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)
        at 
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
        at 
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
        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:748)
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to