How to solve: CE9803: Java dependency synchronization failed

0
Hello forum,   Since this morning we receive the following error in our application which is build in mendix 10.7.0 we did not change anything since yesterday in our application, how to fix this error?     FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':copyDependencies'.> Could not resolve all files for configuration ':implementation'.   > Could not resolve net.minidev:json-smart:[1.3.3,2.4.10].     Required by:         project : > com.nimbusds:oauth2-oidc-sdk:10.7.1      > Failed to list versions for net.minidev:json-smart.         > Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml.            > Could not HEAD 'https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target * Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 7s   10.7.0 Mendix version
asked
3 answers
1

An update to this, it has to do with network security configuration; depending on the network we use we receive this error.

answered
0

Hello,

Refer this https://community.mendix.com/link/space/app-development/questions/129646

 

Hope it helps!

answered
0

Zcaler was blocking this is what solved it for me: 

 

go to ~/.gradle or C:\Users\<USERNAME>\.gradle

 

Create or edit the file gradle.properties:

 

systemProp.http.proxyHost=localhost

systemProp.http.proxyPort=9000

systemProp.https.proxyHost=localhost

systemProp.https.proxyPort=9000

 

# If your proxy requires auth:# systemProp.http.proxyUser=YOURDOMAIN\\youruser

# systemProp.http.proxyPassword=yourpassword

# systemProp.https.proxyUser=YOURDOMAIN\\youruser

# systemProp.https.proxyPassword=yourpassword

 

systemProp.http.nonProxyHosts=localhost|127.0.0.1

systemProp.https.nonProxyHosts=localhost|127.0.0.1

 

 

The first 4 lines are i think the most important since 9000 is the Zcaler port. (but just copy all)

 

--> save file and close all running mendix processes and also all java.exe.

 

Restart Mendix -> Clean Deployment Directory -> Run

 

answered