lucky-xin commented on issue #12885:
URL: https://github.com/apache/dubbo/issues/12885#issuecomment-1679932521

   > 
![image](https://user-images.githubusercontent.com/9292748/260370471-11953ea3-c248-45e8-805b-200df0adf421.png)
   > 
   > 在具体获取的地方还有再检查一次 ClassLoader 的
   
   某些情况下readObject是在子线程里边,如使用Caffeine缓存异步加载数据,子线程的ClassLoader和父线程的ClassLoader不一致
   
![image](https://github.com/apache/dubbo/assets/13815910/ac9ac7a3-27ec-491b-b490-01aac8c90c15)
   
   我是在开启子线程时设置了父线程的ClassLoader解决了该问题,如下:
   
![image](https://github.com/apache/dubbo/assets/13815910/24744a30-d15f-41c1-a806-07f8cfd9b2c5)


-- 
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-unsubscr...@dubbo.apache.org

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


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

Reply via email to