The 'access key id is invalid' error occurs when using the Java SDK

Updated at:

Symptoms

When you use the Java software development kit (SDK), the following error occurs:

java.lang.IllegalArgumentException: The access key id is invalid:xxx.

Cause

This error is caused by an invalid character in the AccessKey. An AccessKey consists of an AccessKey ID and an AccessKey secret.

Solutions

Ensure that the AccessKey is set correctly.

If you have not created an AccessKey, create one. For more information, see Create an AccessKey.