Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] TripleClientRequestHandler的writeRequest获取compressor的代码可能有问题 #9022

Closed
zrlw opened this issue Oct 12, 2021 · 1 comment

Comments

@zrlw
Copy link
Contributor

zrlw commented Oct 12, 2021

Environment

Failed to invoke the method xxx in the service xxx.xxx. Tried 3 times of the providers xxx from the registry xxx on the consumer xxx using the dubbo version 3.0.4-SNAPSHOT. Last error is: Failed to invoke remote method: xxx, provider: xxx, dubbo.metadata-service.url-params=xxx, service{xxx}, cause: org.apache.dubbo.remoting.RemotingException: java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.dubbo.registry.client.InstanceAddressURL.getScopeModel(InstanceAddressURL.java:498)
	at org.apache.dubbo.rpc.protocol.tri.TripleClientRequestHandler.writeRequest(TripleClientRequestHandler.java:82)
	at org.apache.dubbo.rpc.protocol.tri.TripleClientRequestHandler.write(TripleClientRequestHandler.java:58)
	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
	at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764)
	at io.netty.channel.AbstractChannelHandlerContext$WriteTask.run(AbstractChannelHandlerContext.java:1071)
	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)

看起来是尚未完成注册时不能调用InstanceAddressURL.getScopeModel这个方法。
@XIACYBING

@EarthChen
Copy link
Member

#9024

@zrlw zrlw closed this as completed Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants