I am using Rest api call in a web application . That was working fine.
Unfortunately i have formatted my system.
After that i import the previous web application into my workspace. now the same code throws socket exception
Exception in thread "main" java.lang.RuntimeException: Data sent:javax.net.ssl.S
SLHandshakeException: sun.security.validator.ValidatorException: PKIX path valid
ation failed: java.security.cert.CertPathValidatorException: basic constraints c
heck failed: pathLenConstraint violated - this cert must be the last cert in the
certification path
could you clarify me what should i configure in my java environment