Caching decompiled code error when setting up MCreator

Status
Works as designed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I can't setup the new version of MCreator as it runs into trouble during setup

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 8142 MB, Windows 10, JVM 1.8.0_172
C:\Pylo\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
Downloading https://services.gradle.org/distributions/gradle-2.14-bin.zip
Exception in thread "main" java.net.SocketException: Connection reset
   at java.net.SocketInputStream.read(SocketInputStream.java:210)
   at java.net.SocketInputStream.read(SocketInputStream.java:141)
   at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
   at sun.security.ssl.InputRecord.read(InputRecord.java:503)
   at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
   at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
   at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractD…
   at sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.j…
   at sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.ja…
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.j…
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.ja…
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnec…
   at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
   at org.gradle.wrapper.Download.download(Download.java:44)
   at org.gradle.wrapper.Install$1.call(Install.java:59)
   at org.gradle.wrapper.Install$1.call(Install.java:46)
   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
   at org.gradle.wrapper.Install.createDist(Install.java:46)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator180\forge>
Task completed with return code 0 in 14799 milliseconds
   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 8142 MB, Windows 10, JVM 1.8.0_172
C:\Pylo\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
Downloading https://services.gradle.org/distributions/gradle-2.14-bin.zip
Exception in thread "main" java.net.ConnectException: Connection timed out: connect
   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
   at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:589)
   at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
   at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
   at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
   at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(…
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.jav…
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java…
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractD…
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.j…
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.ja…
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnec…
   at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
   at org.gradle.wrapper.Download.download(Download.java:44)
   at org.gradle.wrapper.Install$1.call(Install.java:59)
   at org.gradle.wrapper.Install$1.call(Install.java:46)
   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
   at org.gradle.wrapper.Install.createDist(Install.java:46)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator180\forge>
Task completed with return code 0 in 23498 milliseconds

Issue comments

The error you provided can be caused by any of these causes:

  • No internet connection
  • Slow internet connection
  • Firewall (on the computer, router or modem) blocking MCreator
  • AV blocking MCreator
  • ISP blocking MCreator or domains it is trying to access

Try to access one of the URLs in the log from the browser. If you can not access these files there too, it is an issue in general, otherwise, you can assume only MCreator got blocked when trying to access these files.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.