当前位置: 首页 > 知识库问答 >
问题:

jenkins(java)和Bitbucket插件之间的SSL错误

孔阳炎
2023-03-14
Connecting to https://bitbucket.org using ****/******
Looking up ****/****for branches
FATAL: Failed to recompute children of ***** » **** » build
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: Communication error: javax.net.ssl.SSLException: java.security.ProviderException: java.security.KeyException
    at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:421)
    at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getBranches(BitbucketCloudApiClient.java:217)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveBranches(BitbucketSCMSource.java:323)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:279)
    at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:404)
Caused by: javax.net.ssl.SSLException: java.security.ProviderException: java.security.KeyException
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1916)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1874)
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1857)
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1783)
    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:127)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:412)
    ... 9 more
Caused by: java.security.ProviderException: java.security.KeyException
    at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:146)
    at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:704)
    at sun.security.ssl.ECDHCrypt.<init>(ECDHCrypt.java:78)
    at sun.security.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:717)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:278)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:913)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:849)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1035)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344)
    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:721)
    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
    ... 19 more
Caused by: java.security.KeyException
    at sun.security.ec.ECKeyPairGenerator.generateECKeyPair(Native Method)
    at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:126)
    ... 29 more
Finished: FAILURE

共有1个答案

钦良弼
2023-03-14

在此目录中:

/lib/security

在我的Java安装中,我发现了一个Java.security文件

我评论了这一行:

#jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 768
jdk.tls.disabledAlgorithms=SSLv3
 类似资料:
  • 我有与BitBucket版本5.2.2一起工作的插件,我想更新它以支持BitBucket版本6.8.0。如下所示更新我的后,当我尝试运行时,我遇到依赖项错误: pom.xml: 编译时出错: 我不确定所提到的bitbucket版本的amps和bitbucket-maven-plugin的对应版本,这可能是错误的原因之一。

  • 问题内容: 我还没有找到任何有关此的信息,所以我希望你们能在这一方面帮助我 我在bitbucket中托管了一个maven项目,该项目的BitBucket WebHook指向someurl / bitbucket-hook /,此钩子触发由具有以下结构的管道定义的我的项目的构建: 问题是maven版本插件将更改推送到BitBucket,这又触发了jenkins脚本,使构建无限循环,是否有办法防止这种

  • 有办法让这成为可能吗? 感谢您的关注!

  • 我试图使用Jenkins CLI安装Jenkins插件,但收到了一个错误。 插件安装命令: java-jar-jenkins cli。jar-s http:// 错误: 我尝试过的: 改变java版本,现在我已经尝试了Java8和Java11 重新下载jenkins CLI以确保其未损坏 从Jenkins界面安装一个类似的插件,这一点很成功 其他Jenkins CLI命令(如列表插件)也能成功运行

  • 本文向大家介绍Android Studio插件之Jenkins插件详解,包括了Android Studio插件之Jenkins插件详解的使用技巧和注意事项,需要的朋友参考一下 现在我就来介绍Android Studio上的Jenkins插件,让你可以更加方便地使用Jenkins。用Jenkins持续集成很久了,再Android Studio上的Jenkins插件也有一段时间了,用了该Jenkins

  • 有没有方法在BitBucket插件中使用Eclipselink JPA并连接到BitBucket数据库?我正在尝试使用EclipseLink连接到BitBucket数据库并检索用户。我创建了一个User实体类,并尝试使用本机查询检索用户。显示以下错误: 有什么方法可以使用任何JPA框架连接到数据库吗?