[
https://issues.apache.org/jira/browse/CB-8749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Blotsky updated CB-8749:
-------------------------------
Description:
Steps to reproduce:
1. Create mobilespec app with {{--android}} for platform
2. Run {{cordova-medic/bin/updateconfig.js --android}} from a directory above
the created mobilespec app
3. Run the app with {{cordova run android -- --ant --debug}}
4. Wait for the app to open, and then click the buttons to start the Auto tests
5. Run `adb logcat` to capture the output
App runs and often (but not always) crashes with the following exception in the
{{logcat}} output:
{noformat}
D/FileTransfer( 2225): download http://cordova-filetransfer.jitsu.com/404 to
file:///data/data/org.apache.mobilespec/files/files/testFile.txt
D/FileTransfer( 2225): Download file:http://cordova-filetransfer.jitsu.com/404
E/FileTransfer( 2225):
{"code":1,"source":"http:\/\/cordova-filetransfer.jitsu.com\/404","target":"file:\/\/\/data\/data\/org.apache.mobilespec\/files\/files\/testFile.txt","body":"You
requested a
404","http_status":404,"exception":"http:\/\/cordova-filetransfer.jitsu.com\/404"}
E/FileTransfer( 2225): java.io.FileNotFoundException:
http://cordova-filetransfer.jitsu.com/404
E/FileTransfer( 2225): at
com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:197)
E/FileTransfer( 2225): at
org.apache.cordova.filetransfer.FileTransfer.getInputStream(FileTransfer.java:556)
E/FileTransfer( 2225): at
org.apache.cordova.filetransfer.FileTransfer.access$500(FileTransfer.java:69)
E/FileTransfer( 2225): at
org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:844)
E/FileTransfer( 2225): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/FileTransfer( 2225): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/FileTransfer( 2225): at java.lang.Thread.run(Thread.java:818)
{noformat}
was:
Steps to reproduce:
1. Create mobilespec app with {{--android}} for platform
2. Run {{cordova-medic/bin/updateconfig.js --android}} from a directory above
the created mobilespec app
3. Run the app with {{cordova run android -- --ant --debug}}
4. Wait for the app to open, and then click the buttons to start the Auto tests
5. Run `adb logcat` to capture the output
App runs and often (but not always) crashes with the following exception in the
{{logcat}} output:
D/FileTransfer( 2225): download http://cordova-filetransfer.jitsu.com/404 to
file:///data/data/org.apache.mobilespec/files/files/testFile.txt
D/FileTransfer( 2225): Download file:http://cordova-filetransfer.jitsu.com/404
E/FileTransfer( 2225):
{"code":1,"source":"http:\/\/cordova-filetransfer.jitsu.com\/404","target":"file:\/\/\/data\/data\/org.apache.mobilespec\/files\/files\/testFile.txt","body":"You
requested a
404","http_status":404,"exception":"http:\/\/cordova-filetransfer.jitsu.com\/404"}
E/FileTransfer( 2225): java.io.FileNotFoundException:
http://cordova-filetransfer.jitsu.com/404
E/FileTransfer( 2225): at
com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:197)
E/FileTransfer( 2225): at
org.apache.cordova.filetransfer.FileTransfer.getInputStream(FileTransfer.java:556)
E/FileTransfer( 2225): at
org.apache.cordova.filetransfer.FileTransfer.access$500(FileTransfer.java:69)
E/FileTransfer( 2225): at
org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:844)
E/FileTransfer( 2225): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/FileTransfer( 2225): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/FileTransfer( 2225): at java.lang.Thread.run(Thread.java:818)
> FileTransfer test failure often crashes Android test app
> --------------------------------------------------------
>
> Key: CB-8749
> URL: https://issues.apache.org/jira/browse/CB-8749
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Affects Versions: Master
> Environment: Android 21 on Nexus S emulator on Windows
> Reporter: Dmitry Blotsky
> Priority: Critical
> Labels: cordova-medic, crash, file-transfer, medic, mobilespec
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Steps to reproduce:
> 1. Create mobilespec app with {{--android}} for platform
> 2. Run {{cordova-medic/bin/updateconfig.js --android}} from a directory above
> the created mobilespec app
> 3. Run the app with {{cordova run android -- --ant --debug}}
> 4. Wait for the app to open, and then click the buttons to start the Auto
> tests
> 5. Run `adb logcat` to capture the output
> App runs and often (but not always) crashes with the following exception in
> the {{logcat}} output:
> {noformat}
> D/FileTransfer( 2225): download http://cordova-filetransfer.jitsu.com/404 to
> file:///data/data/org.apache.mobilespec/files/files/testFile.txt
> D/FileTransfer( 2225): Download file:http://cordova-filetransfer.jitsu.com/404
> E/FileTransfer( 2225):
> {"code":1,"source":"http:\/\/cordova-filetransfer.jitsu.com\/404","target":"file:\/\/\/data\/data\/org.apache.mobilespec\/files\/files\/testFile.txt","body":"You
> requested a
> 404","http_status":404,"exception":"http:\/\/cordova-filetransfer.jitsu.com\/404"}
> E/FileTransfer( 2225): java.io.FileNotFoundException:
> http://cordova-filetransfer.jitsu.com/404
> E/FileTransfer( 2225): at
> com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:197)
> E/FileTransfer( 2225): at
> org.apache.cordova.filetransfer.FileTransfer.getInputStream(FileTransfer.java:556)
> E/FileTransfer( 2225): at
> org.apache.cordova.filetransfer.FileTransfer.access$500(FileTransfer.java:69)
> E/FileTransfer( 2225): at
> org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:844)
> E/FileTransfer( 2225): at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
> E/FileTransfer( 2225): at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
> E/FileTransfer( 2225): at java.lang.Thread.run(Thread.java:818)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]