steveraman117 commented on issue #11912:
URL: https://github.com/apache/dubbo/issues/11912#issuecomment-1732865954

   > > 遇到类似问题,也是2.7.15版本,且同一个docker镜像,重启后自己又好了,正式环境偶发,测试环境从未出现过,本地无法复现 
`java.lang.ClassCastException: java.util.HashMap cannot be cast to XXX`
   > 
   > 找一下 std 输出流,hessian 应该有报错输出
   
   在std中找到日志了,最后排查原因是:在某些java8版本下,在CompletableFuture中getClassLoader()会得到null。
   由于hessian只在首次初始化时保存loader,结果是个null。
   所以出现概率性发生异常,重启后会好的情况:因为和首次进行dubbo调用的线程有关。


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