Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8749

FileTransfer test failure often crashes Android test app

    XMLWordPrintableJSON

Details

    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:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dblotsky Dmitry Blotsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified