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

Mac getMacInstance(Key key)补充日志 #12446

Closed
HMYDK opened this issue Jul 31, 2024 · 1 comment · Fixed by #12447
Closed

Mac getMacInstance(Key key)补充日志 #12446

HMYDK opened this issue Jul 31, 2024 · 1 comment · Fixed by #12447

Comments

@HMYDK
Copy link
Contributor

HMYDK commented Jul 31, 2024

Mac getMacInstance(Key key)补充日志。

目前有几个issue似乎和这个方法有关系,所以需要对日志进行补充。
便于确定导致问题的原因。

目前的方法实现:

private Mac getMacInstance(Key key) {
    try {
        Mac instance = Mac.getInstance(jcaName);
        instance.init(key);
        return instance;
    } catch (NoSuchAlgorithmException | InvalidKeyException e) {
        throw new IllegalArgumentException("Invalid key: " + key);
    }
}

存在的问题:无法确定是哪种异常导致失败。

fuhouyu added a commit to fuhouyu/nacos that referenced this issue Jul 31, 2024
@fuhouyu
Copy link
Contributor

fuhouyu commented Jul 31, 2024

@i will solve it@

KomachiSion pushed a commit that referenced this issue Aug 12, 2024
* FIX [ISSUE #12446] macInstance 补充日志

* UPDATE [ISSUE #12466] serviceMetadata environment variables config

* fixed DefaultParamChecker and DefaultParamCheckerTest codeStyle
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

Successfully merging a pull request may close this issue.

2 participants