Skip to content

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

Open
@wxc0642

Description

@wxc0642

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"]”
手动写接口和方法,启动测试,也是出现这个错误。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions