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

"java.lang.NoClassDefFoundError: Could not initialize class org.apache.dubbo.config.ReferenceConfig"错误 #164

Open
wxc0642 opened this issue Apr 30, 2024 · 0 comments

Comments

@wxc0642
Copy link

wxc0642 commented Apr 30, 2024

Dubbo使用2.7.8版本,启动Nacos和服务后,Nacos可以看到注册列表。在JMeter上用Get Provider List 按钮获取服务列表,出现以下错误,无法连接。
image
“Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalStateException: Failed to create adaptive instance: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.rpc.Protocol, cause: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @75329a49 [in thread "AWT-EventQueue-0"]”
手动写接口和方法,启动测试,也是出现这个错误。

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

1 participant