Hello Chen Jia,
Thank you for reaching out and explaining your issue in detail. I've taken a look at the screenshots you've attached and have noticed something that might be causing this issue.
First, I'm very eager to learn the JDK on which you Mendix project is running. Here's how to learn this information:
Mendix Studio Pro
.Edit
then hit Preferences
.Deployment
section, under JDK directory
you need a JDK version that is 11 or newer
Second, it appears the constant UseStaticCredentials
is not currently set in your Mendix environment. This constant is key to enabling static authentication when your application is interfacing with AWS S3. Without this, the application might face problems when trying to authenticate the request, which could lead to the issues you're experiencing.
Here's how you can resolve this issue:
Mendix Studio Pro
.App Explorer
, navigate to Settings
.Settings
pane, select your S3 Configuration profile.Constants
pane and select the UseStaticCredentials
constant.True
.Custom
tab to see if there's any other environment variables that could cause the issue. This tab should be empty when using static credentials.
Alternatively, if the issue persists, then I would suggest opting to use session-based credentials. Because, the error message sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
suggests that the TLS handshake is unsuccesful. Authentication using session-based credentials may circumvent the cause of that. For more information on configuring session-based authentication, refer to Mendix Docs.
Please give this a try and see if it resolves your issue. If you have any more questions, don't hesitate to ask. You can respond directly to this thread, or if you prefer a more private communication, you can reach out to me via a private message. Simply visit my developer profile and click on the "Contact" button.
I'm here to help!
Best,
Trong Tran
Hi chen jia,
If you are using any client certificate please check the certification whether it is expired or not?
Hello Chen Jia,
Can you tell me more about your setup? Additional information on the following topics may aid in assisting you:
Here‘s the pictures