Definite's Extractor

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

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$0.run(Unknown Source)
at java.security.AccessController.doPrivileged(AccessController.java:341)
... 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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: