Skip to content

发送短信模块报错 BASE64Encoder 错误 #394

Open
@techzhai

Description

@techzhai

1. 环境
docker 环境 jdk11版本

<dependency>
            <groupId>com.aliyun</groupId>
            <artifactId>dysmsapi20170525</artifactId>
            <version>2.0.4</version>
</dependency>

2. 报错栈信息
Caused by: java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at com.aliyun.openapiutil.Client.getRPCSignature(Client.java:374)
at com.aliyun.teaopenapi.Client.doRPCRequest(Client.java:154)
at com.aliyun.dysmsapi20170525.Client.sendSmsWithOptions(Client.java:238)
at com.aliyun.dysmsapi20170525.Client.sendSms(Client.java:243)

  1. 具体报错位置
    com.aliyun.openapiutil.Client类使用了jdk11里已经被废弃的 BASE64Encoder类,导致出现运行时报错

希望能早点修复,谢谢

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