gradlew cleanAll loadAll fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gradlew cleanAll loadAll fails

Rick F.
Hi all

I've downloaded  the latest  17.12.04 version to my windows 10 machine. I have java 1.8.0_251 set as Java_Home.

When I ran init-gradle-wrapper I got an error w/ execution policy so I unblocked the file and re ran the command. It seemed to complete.

But when I run gradlew cleanAll loadAll I get:

C:\Users\rick\ofbiz17\ofbiz17>gradlew cleanAll loadAll
Downloading https://services.gradle.org/distributions/gradle-3.2.1-bin.zip

Exception in thread "main" javax.net.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:1979)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:60)
        at org.gradle.wrapper.Download.download(Download.java:45)
        at org.gradle.wrapper.Install$1.call(Install.java:62)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

What do I need to do to get around this?

Thanks for your help
Rick
Reply | Threaded
Open this post in threaded view
|

Re: gradlew cleanAll loadAll fails

jack-2
https://stackoverflow.com/questions/16541627/javax-net-ssl-sslexception-received-fatal-alert-protocol-version

On 2020-09-06 08:30, Rick Fleming wrote:
> javax.net.ssl.SSLException: Received fatal alert: protocol_version

Reply | Threaded
Open this post in threaded view
|

Re: gradlew cleanAll loadAll fails

Rick F.
In reply to this post by Rick F.
Thanks Jack

But I found that I only thought I was using java 1.8. When I actually did, that command worked.

Rick

On 2020/09/06 14:30:35, Rick Fleming <[hidden email]> wrote:

> Hi all
>
> I've downloaded  the latest  17.12.04 version to my windows 10 machine. I have java 1.8.0_251 set as Java_Home.
>
> When I ran init-gradle-wrapper I got an error w/ execution policy so I unblocked the file and re ran the command. It seemed to complete.
>
> But when I run gradlew cleanAll loadAll I get:
>
> C:\Users\rick\ofbiz17\ofbiz17>gradlew cleanAll loadAll
> Downloading https://services.gradle.org/distributions/gradle-3.2.1-bin.zip
>
> Exception in thread "main" javax.net.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:1979)
>         at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)
>         at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
>         at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
>         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
>         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
>         at org.gradle.wrapper.Download.downloadInternal(Download.java:60)
>         at org.gradle.wrapper.Download.download(Download.java:45)
>         at org.gradle.wrapper.Install$1.call(Install.java:62)
>         at org.gradle.wrapper.Install$1.call(Install.java:48)
>         at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
>         at org.gradle.wrapper.Install.createDist(Install.java:48)
>         at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
>         at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
>
> What do I need to do to get around this?
>
> Thanks for your help
> Rick
>