java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Today I faced an error that I’ve never seen before:

java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

This situation was happening when I was executing any Maven command in a new virtual machine with Ubuntu 15.10 and JDK 1.8. The solution for me was very simple, I just had to reconfigure Java certificates installed on that machine.

I used this command:

sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure

I’m not sure why exactly this error was happening, but seems that is a kind of bug in installing the JDK 1.8 via apt-get command.

That’s all for today. See you.

Advertisements

One thought on “java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Let me your thoughts

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s