admin管理员组

文章数量:1305157

Below is the error I am getting while building hibernate project with openjdk6.

Downloading .9-all.zip

Exception in thread "main" java.lang.RuntimeException: javax.ssl.SSLException:          Received fatal alert: protocol_version
at   .gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:7   8)
at .gradle.wrapper.Install.createDist(Install.java:44)
at .gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
at .gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58)
Caused by: javax.ssl.SSLException: Received fatal alert: protocol_version
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1902)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074)
at   sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1320)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1347)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1331)
at sun.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:440)
at   sun.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegate   HttpsURLConnection.java:185)
at   sun.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1227  )
at    sun.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImp l.java:254)
at .gradle.wrapper.Download.downloadInternal(Download.java:56)
at .gradle.wrapper.Download.download(Download.java:42)
at .gradle.wrapper.Install$1.call(Install.java:57)
at .gradle.wrapper.Install$1.call(Install.java:44)
at  .gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:6 5)
... 3 more

I have tried changing below properties

systemProp.http.keepAlive=false
systemProp.https.protocols=TLSv1.2
java -Dhttps.protocols=TLSv1.2 -jar gradle-wrapper.jar

I've been trying to resolve this for the past few days, but I still haven't been able to figure it out. Any help would be greatly appreciated.

本文标签: hibernateGetting SSLException while builde gradle 19 version with openjdk6Stack Overflow