gpt4 book ai didi

第二次尝试时出现 javax.net.ssl.SSLHandshakeException

转载 作者:太空宇宙 更新时间:2023-11-03 14:33:52 24 4
gpt4 key购买 nike

我将所需的证书添加到我的 java/weblogic 证书中,并且绕过了 SSL 握手异常。但是,一旦我启动我的服务器,该应用程序在第一次尝试时运行良好,但当我发送第二个请求时,它再次抛出握手错误。是因为超时还是什么?

Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1496)
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1508)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:70)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.FilterOutputStream.flush(FilterOutputStream.java:140)

Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts`enter code here`.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)

最佳答案

在 setDomainEnv.cmd 中为 JAVA_OPTIONS 设置此项解决了问题!

-Dhttps.protocols=TLSv1.1,TLSv1.2

关于第二次尝试时出现 javax.net.ssl.SSLHandshakeException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49949691/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com