试图访问AWS服务时,不支持的记录版本未知-0.0除外。

当我试图访问AWS的一个服务时,我得到了以下证书错误。我在Jetty服务器上运行这个项目。

我用同样的设置创建了另一个hello world项目,似乎工作正常?

为什么我得到的突然 – javax.net.ssl.SSLException: Unsupported record version Unknown-0.0 excepttion?

[java] software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Unsupported record version Unknown-0.0
 [java]     at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:97)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage$RetryExecutor.handleThrownException(RetryableStage.java:136)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage$RetryExecutor.execute(RetryableStage.java:94)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage.execute(RetryableStage.java:62)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage.execute(RetryableStage.java:42)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
 [java]     at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:57)
 [java]     at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:37)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.executeWithTimer(ApiCallTimeoutTrackingStage.java:80)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:60)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:42)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:37)
 [java]     at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:26)
 [java]     at software.amazon.awssdk.core.internal.http.AmazonSyncHttpClient$RequestExecutionBuilderImpl.execute(AmazonSyncHttpClient.java:240)
 [java]     at software.amazon.awssdk.core.client.handler.BaseSyncClientHandler.invoke(BaseSyncClientHandler.java:96)
 [java]     at software.amazon.awssdk.core.client.handler.BaseSyncClientHandler.execute(BaseSyncClientHandler.java:120)
 [java]     at software.amazon.awssdk.core.client.handler.BaseSyncClientHandler.execute(BaseSyncClientHandler.java:73)
 [java]     at software.amazon.awssdk.core.client.handler.SdkSyncClientHandler.execute(SdkSyncClientHandler.java:44)
 [java]     at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.execute(AwsSyncClientHandler.java:55)
 [java]     at software.amazon.codeguruprofilerjavaagent.sdkclientcopy.DefaultCodeGuruProfilerClient.configureAgent(DefaultCodeGuruProfilerClient.java:137)
 [java]     at software.amazon.codeguruprofilerjavaagent.CodeGuruProfilerSDKClient.configureAgent(CodeGuruProfilerSDKClient.java:55)
 [java]     at software.amazon.codeguruprofilerjavaagent.ProfilingCommand.refreshConfiguration(ProfilingCommand.java:246)
 [java]     at software.amazon.codeguruprofilerjavaagent.ProfilingCommand.runProfiler(ProfilingCommand.java:210)
 [java]     at software.amazon.codeguruprofilerjavaagent.Timer.time(Timer.java:69)
 [java]     at software.amazon.codeguruprofilerjavaagent.ProfilingCommand.run(ProfilingCommand.java:195)
 [java]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 [java]     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
 [java]     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
 [java]     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
 [java]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 [java]     at java.lang.Thread.run(Thread.java:748)
 [java] Caused by: javax.net.ssl.SSLException: Unsupported record version Unknown-0.0
 [java]     at sun.security.ssl.InputRecord.checkRecordVersion(InputRecord.java:552)
 [java]     at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:565)
 [java]     at sun.security.ssl.InputRecord.read(InputRecord.java:529)
 [java]     at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
 [java]     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
 [java]     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)
 [java]     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)
 [java]     at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
 [java]     at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
 [java]     at software.amazon.awssdk.http.apache.internal.conn.SdkTlsSocketFactory.connectSocket(SdkTlsSocketFactory.java:113)
 [java]     at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
 [java]     at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
 [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

解决方案:

原来这是在我们的代码库中设置的,删除它解决了这个问题。

System.setProperty("jsse.enableSNIExtension", "false")

去掉这条线,你就会好起来的。

给TA打赏
共{{data.count}}人
人已打赏
未分类

RxJs操作符,其行为类似于withLatestFrom,但会等待第二个流的值。

2022-9-9 3:29:18

未分类

如何在visualforce页面中动态生成章节?

2022-9-9 3:29:20

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索