Bubbleware Technology Bubbleware Technology - 1 year ago 146
Java Question

Error - trustAnchors parameter must be non-empty

I'm trying to configure my e-mail on Jenkins/Hudson and I constantly receive the error

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


I've seen a good amount of information online about the error, but have not gotten any to work. I'm using Sun's JDK on fedora linux (not openJDK).

Here are a few things I've tried. I tried following the advice from this post but it copying the cacerts from windows over to my Fedora box hosting Jenkins didn't work. I tried following this guide as I'm trying to configure gmail as my SMTP server but it didn't work either. I also tried to download and move those cacert files manually and move them over to my java folder using a variation of the commands on this guide.

I open to any suggestions as I'm currently stuck right now. I have gotten it to work from a Windows Hudson server but I am struggling on Linux.

EJP EJP
Answer Source

This bizarre message means that the truststore you specified was not found, or couldn't be opened due to access permissions for example.

See also @AdamPlumb's answer below.