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

查看:1941
本文介绍了错误 - 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上使用Sun的JDK(不是OpenJDK)。

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).

以下是我尝试过的一些事情。我尝试按照发布的建议,但复制cacerts Windows到我托管詹金斯的Fedora盒子没有用。当我尝试将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.

推荐答案

这个奇怪的消息意味着您指定的信任库是:

This bizarre message means that the truststore you specified was:


  • 空,

  • 未找到,或
  • $ b无法打开$ b
  • (例如,由于访问权限)。

  • empty,
  • not found, or
  • couldn't be opened (due to access permissions for example).

另请参阅@ AdamPlumb的以下

See also @AdamPlumb's answer below.

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

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