I am getting Exception in thread "DisconnectableInputStream source reader" in sample project.

Hi,

For few days now I have been getting this error every time I tried to do an Android build (on my Win10 PC).

Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: Access is denied 23:40:37.168 at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:61) 23:40:37.168 at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41) 23:40:37.168 at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125) 23:40:37.168 at java.lang.Thread.run(Thread.java:748) 23:40:37.168 Caused by: java.io.IOException: Access is denied

I am not sure if this error is related to my PC/Windows system or is it on the server side?

What I tried so far:

1- Uninstalled all Java versions from my PC and then installed java version “1.8.0_221”

2- Uninstalled Corona and then installed corona Build=2019.3540

3- I started a new project and selected a “Tab Bar Application”.

4- I tried to build this new app for Android but I got the above error.

The full build log can be found here:

https://justpaste.it/2mlo8

Anyone else having this issue?

Is gradle a tool on my PC that I need to upgrade?

Thanks.

hi

I had the same issue. I just rebuild it and it works. I am using 2019.3540 build.

19:55:05.569 @ver \> NUL 19:55:05.569 Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: Access is denied 19:55:05.569 at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:61) 19:55:05.569 at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41) 19:55:05.569 at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125) 19:55:05.569 at java.lang.Thread.run(Thread.java:748) 19:55:05.569 Caused by: java.io.IOException: Access is denied 19:55:05.569 at java.io.FileInputStream.readBytes(Native Method) 19:55:05.569 at java.io.FileInputStream.read(FileInputStream.java:255) 19:55:05.569 at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) 19:55:05.569 at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) 19:55:05.569 at java.io.BufferedInputStream.read(BufferedInputStream.java:345) 19:55:05.569 at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96) 19:55:05.569 ... 1 more 19:55:05.569 Error while fetching plugins 19:55:05.569 SPLASH nil 19:55:05.569 ERROR: unable to fetch plugin download location for plugin.calendar (com.coronalabs). Error message: 19:55:05.569 19:55:05.569 19:55:05.569 FAILURE: Build failed with an exception. 19:55:05.569 19:55:05.569 \* Where: 19:55:05.569 Build file 'C:\Users\X\AppData\Local\Temp\Corona Labs\CLtmpa06916\template\app\build.gradle.kts' line: 597 19:55:05.569 19:55:05.569 \* What went wrong: 19:55:05.569 Error while fetching plugins 19:55:05.569 19:55:05.569 \* Try: 19:55:05.569 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 19:55:05.569 19:55:05.569 \* Get more help at https://help.gradle.org 19:55:05.569 19:55:05.569 BUILD FAILED in 50s 19:55:05.569 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 19:55:05.887 Android build failed (1) after 54 seconds

me too…

Corona version is 2019.3547(2019.11.1).

11:47:58.267 Testing credentials for 'C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore': 11:47:59.817 jar signed. 11:47:59.817 11:47:59.817 Warning: 11:47:59.817 The signer's certificate is self-signed. 11:47:59.817 11:47:59.817 The timestamp will expire on 2030-10-17. 11:47:59.817 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 11:48:03.395 Using custom build id from app bundle: 00000 (AppSettings.lua) 11:48:03.395 11:48:03.395 Using custom Build Id 00000 11:48:14.224 @ver \> NUL 11:48:14.224 Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: A N Z X ۂ ܂ B 11:48:14.224 at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:61) 11:48:14.224 at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41) 11:48:14.224 at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125) 11:48:14.224 at java.lang.Thread.run(Thread.java:748) 11:48:14.224 Caused by: java.io.IOException: A N Z X ۂ ܂ B 11:48:14.224 at java.io.FileInputStream.readBytes(Native Method) 11:48:14.224 at java.io.FileInputStream.read(FileInputStream.java:255) 11:48:14.224 at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) 11:48:14.224 at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) 11:48:14.224 at java.io.BufferedInputStream.read(BufferedInputStream.java:345) 11:48:14.224 at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96) 11:48:14.224 ... 1 more 11:48:14.224 Error while fetching plugins 11:48:14.224 11:48:14.224 11:48:14.224 FAILURE: Build failed with an exception. 11:48:14.224 11:48:14.224 \* Where: 11:48:14.224 Build file 'C:\Users\ryo\AppData\Local\Temp\Corona Labs\CLtmpa20276\template\app\build.gradle.kts' line: 597 11:48:14.224 11:48:14.224 \* What went wrong: 11:48:14.224 Error while fetching plugins 11:48:14.224 11:48:14.224 \* Try: 11:48:14.224 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 11:48:14.224 11:48:14.224 \* Get more help at https://help.gradle.org 11:48:14.224 11:48:14.224 BUILD FAILED in 8s 11:48:14.224 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 11:48:14.661 Android build failed (1) after 11 seconds

I am getting the same error?

Any advances?

Me too… 

16:44:23.401  Exception in thread “DisconnectableInputStream source reader” org.gradle.api.UncheckedIOException: java.io.IOException: Acceso denegado

16:44:23.401  at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:61)

16:44:23.401  at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)

16:44:23.401  at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125)

16:44:23.401  at java.lang.Thread.run(Thread.java:748)

16:44:23.401  Caused by: java.io.IOException: Acceso denegado

16:44:23.401  at java.io.FileInputStream.readBytes(Native Method)

16:44:23.401  at java.io.FileInputStream.read(FileInputStream.java:255)

16:44:23.401  at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)

16:44:23.401  at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)

16:44:23.401  at java.io.BufferedInputStream.read(BufferedInputStream.java:345)

16:44:23.401  at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96)

16:44:23.401  … 1 more

16:44:23.401  Error while fetching plugins

16:44:23.401  No build.settings plugins to download

16:44:23.401  ERROR: unable to fetch build ID:

16:44:23.401  

16:44:23.401  

16:44:23.401  FAILURE: Build failed with an exception.

16:44:23.401  

16:44:23.401  * Where:

16:44:23.401  Build file ‘C:\Users\User\AppData\Local\Temp\Corona Labs\CLtmpa05548\template\app\build.gradle.kts’ line: 595

16:44:23.401  

16:44:23.401  * What went wrong:

16:44:23.401  Error while fetching plugins

16:44:23.401  

16:44:23.401  * Try:

16:44:23.401  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

16:44:23.401  

16:44:23.401  * Get more help at https://help.gradle.org

16:44:23.401  

16:44:23.401  BUILD FAILED in 45s

16:44:23.401  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

16:44:23.823  Android build failed (1) after 50 seconds

Hi.

I solved it by installing the latest release and by commenting this part in my build.settings file:

–[“plugin.google.play.services”] =
        --{
        –    publisherId = “com.coronalabs”,
        –    supportedPlatforms = { android=true }
        --},

Hope it helps.

i have the same issue i’m using 2020.3582 and jdk 8 32-bit

 The signer’s certificate is self-signed.
19:16:57.712  
19:16:57.712  The timestamp will expire on 2030-10-17.
19:16:57.712  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
19:16:57.742  WebServices: Call: system.connect
19:17:00.402  WebServices: Response received in 3 seconds
19:17:00.402  WebServices: Call: corona.getTime
19:17:01.679  WebServices: Response received in 1 seconds
19:17:01.679  WebServices: Call: user.login2
19:17:03.042  WebServices: Response received in 2 seconds
19:17:03.042  Using custom build id from app bundle: 00000 (AppSettings.lua)
19:17:03.042  
19:17:03.042  Using custom Build Id 00000
19:17:03.222  Excluding specified files from build:
19:17:03.222     excluding: Icon.png
19:17:03.222     excluding: Icon-Small-*.png
19:17:03.222     excluding: Icon*@2x.png
19:17:19.472  @ver > NUL
19:17:19.472  Exception in thread “DisconnectableInputStream source reader” org.gradle.api.UncheckedIOException: java.io.IOException: Access is denied
19:17:19.472      at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:61)
19:17:19.472      at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
19:17:19.472      at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125)
19:17:19.472      at java.lang.Thread.run(Thread.java:748)
19:17:19.472  Caused by: java.io.IOException: Access is denied
19:17:19.472      at java.io.FileInputStream.readBytes(Native Method)
19:17:19.472      at java.io.FileInputStream.read(FileInputStream.java:255)
19:17:19.472      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
19:17:19.472      at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
19:17:19.472      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
19:17:19.472      at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96)
19:17:19.472      … 1 more
19:17:19.472  
19:17:19.472  FAILURE: Build failed with an exception.
19:17:19.472  
19:17:19.472  * Where:
19:17:19.472  Build file ‘C:\Users\Blue Zone\AppData\Local\Temp\Corona Labs\CLtmpa07612\template\app\build.gradle.kts’ line: 583
19:17:19.472  
19:17:19.472  * What went wrong:
19:17:19.472  Unable to retrieve build.data: ‘null’, ‘C:\Users\Blue Zone\AppData\Local\Temp\Corona Labs\CLtmpa07612\template\app\null’
19:17:19.472  
19:17:19.472  * Try:
19:17:19.472  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
19:17:19.472  
19:17:19.472  * Get more help at https://help.gradle.org
19:17:19.472  
19:17:19.472  BUILD FAILED in 13s
19:17:19.472  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
19:17:19.682  Android build failed (1) after 16 seconds
19:17:19.682  WebServices: Call: user.logout
19:17:20.872  WebServices: Response received in 1 seconds

Please help me to sort it out.

I’m getting a similar error:

Exception in thread “DisconnectableInputStream source reader” org.gradle.api.UncheckedIOException: java.io.IOException: Access is denied
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:61)

I updated my JDK from Java SE Dev Kit 8 Update 5 (1.8.0_25) to Java SE Dev Kit 8 Update 251 (1.8.0_251) and now I can build with no errors

1 Like

Hey. Actually, your erorr is “Error while fetching plugins”.
DisconnectedINputStream is just build artifact, not connected to Corona. Error still happen. Offline builds are still in early stage

1 Like

For what it’s worth, I had the same issue. Updating to Java SE Dev Kit 8 Update 251 worked for me. :slight_smile: