Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Tag Archives: java

First thing to check when encountered “java.lang.SecurityException: Cannot set up certs for trusted CAs” and “java.lang.SecurityException: Cannot locate policy or framework files!”

I ran into following error

Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.b.<clinit>(Unknown Source)
... 49 more
Caused by: java.lang.SecurityException: Cannot locate policy or framework files!
at javax.crypto.b.c(Unknown Source)
at javax.crypto.b.access$600(Unknown Source)
at javax.crypto.b$ Source)
... 50 more

I checked system class path and other configure path.

But as Sean pointed out, it was just I mistakenly put https instead of http

Lesson Learnt:

Check the URL first! Especially the unnecessary https.