You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "hato233 (via GitHub)" <gi...@apache.org> on 2026/08/24 17:26:20 UTC

Re: [I] [Bug] When running a Dubbo 3.3.6 application on JDK 25, application startup fails with `NoClassDefFoundError: com/google/gson/JsonSyntaxException`. [dubbo]

hato233 commented on issue #16295:
URL: https://github.com/apache/dubbo/issues/16295#issuecomment-5398864823

   如果你只是想让本地能够测试而不是生产上升级到java25的话有个办法可以绕过这个异常让你继续执行下去
   
   <img width="1158" height="261" alt="Image" src="https://github.com/user-attachments/assets/50e3861d-b93f-423c-944e-299e5c02bbbe" />
   通过修改实例化的顺序再加上本身代码就有短路的逻辑,让其跳过后面的初始化
   
   <img width="966" height="58" alt="Image" src="https://github.com/user-attachments/assets/7703bd25-3e9a-4ab0-acfe-3d439ea7f122" />
   
   <img width="1120" height="331" alt="Image" src="https://github.com/user-attachments/assets/60f330f3-ae7e-4119-82ca-9388d696cc1c" />
   
   <img width="1181" height="602" alt="Image" src="https://github.com/user-attachments/assets/b87946e8-30cd-44af-84ca-1c2e70e952d9" />
   我本地是用的Jackson的实现所以我做了2件事让程序继续走下去了
   1. -Ddubbo.json-framework.prefer=jackson
   2. 
   
   <img width="578" height="133" alt="Image" src="https://github.com/user-attachments/assets/fc6c8fad-3f6f-4561-b65b-73fbfb6484fc" />
   
   <img width="636" height="56" alt="Image" src="https://github.com/user-attachments/assets/988f56be-66f3-4417-b5c3-dcd93a331a84" />
   


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