错误 - trustAnchors 参数必须非空 [英] Error - trustAnchors parameter must be non-empty

查看:34
本文介绍了错误 - trustAnchors 参数必须非空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Jenkins/Hudson 上配置我的电子邮件,但我不断收到错误:

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

我在网上看到了大量有关该错误的信息,但我没有得到任何工作.我在 Fedora Linux(不是 OpenJDK)上使用 Sun 的 JDK.

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

以下是我尝试过的一些方法.我尝试遵循此帖子中的建议,但从Windows 到我的 Fedora 主机托管 Jenkins 不起作用.我尝试按照 本指南 操作,因为我正在尝试将 Gmail 配置为我的 SMTP 服务器,但它没有也不行.我还尝试手动下载和移动这些 cacert 文件,然后使用 本指南.

Here are a few things I've tried. I tried following the advice from this post, but 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.

我愿意接受任何建议,因为我目前陷入困境.我已经在 Windows Hudson 服务器上让它工作了,但我在 Linux 上遇到了困难.

I am 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.

推荐答案

这条奇怪的消息意味着您指定的 trustStore 是:

This bizarre message means that the trustStore you specified was:

  • 空,
  • 未找到,或
  • 无法打开
    • (由于错误/丢失trustStorePassword,或
    • 例如文件访问权限).

    另见@AdamPlumb 的下面的答案.

    See also @AdamPlumb's answer below.

    这篇关于错误 - trustAnchors 参数必须非空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆