在尝试访问AWS服务时,我收到以下证书错误。我在Jetty服务器上运行这个。
我用同样的设置创建了另一个hello world项目,它似乎工作正常?
为什么我突然得到了javax。网ssl。SSLexException:不支持的记录版本未知-0.0例外?
[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)
>
从tomcat启动脚本中删除此语句后,它就工作了。setJAVA_OPTS=%JAVA_OPTS%-Djsse.enableSNIExent=false
不是删除上面的语句,而是在下面添加了“它起作用”语句。设置JAVA\u OPTS=%JAVA\u OPTS%-Dhttps。协议=SSLv3、TLSv1、TLSv1。1,TLSv1。2.
下面的代码有时失败,有时工作。我使用的是Java8。是服务器端的问题吗? 线程“main”javax.net.ssl.sslException中的异常:不支持的记录版本未知-0.0。
我发布了这个问题,我可以通过删除WebLogic startups参数来解决这个问题: 有人能解释一下吗?
我试图连接到mysql与JDBC。我在Windows 10上生成的密钥如下: 我的JDBC代码如下所示: 我得到以下错误: 原因:javax。网ssl。SSLexException:sun上不支持的记录版本未知-0.0。安全ssl。InputRecord。在sun上检查RecordVersion(InputRecord.java:552)。安全ssl。InputRecord。sun上的readV3
问题内容: 我试图拨打https并收到以下错误:记录版本不受支持SSLv2Hello 谁能告诉我我在做什么错?谢谢你的帮助。 这是StackTrace: 这是工作示例: 问题答案: 弄清楚了。我在鞋带上绊倒的两个地方是: 需要在PoolingHttpClientConnectionManager中注册https 将TLSv1设置为SSLConnectionSocketFactory中唯一受支持的协