[jira] [Commented] (CB-2293) File Transfer of picture fails on every other picture
[ https://issues.apache.org/jira/browse/CB-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696238#comment-13696238 ] Ben Dalton commented on CB-2293: I think I seem to be struggling with the same issue (on a Nexus 4, Android 4.2, Cordova 2.6.0). Multiple uploads to my server work as long as I disable any downloads in between, otherwise they fail some or all of the time. I managed to find a temporary work around by passing the 'Connection:close' header in my download requests. like this: {code:JavaScript} fileTransfer.download( source, target, successCallback, errorCallback , false ,{ headers: { "Connection":"close" } } ); {code} > File Transfer of picture fails on every other picture > - > > Key: CB-2293 > URL: https://issues.apache.org/jira/browse/CB-2293 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 2.2.0, 2.3.0 > Environment: Tested on a Motorola Atrix HD(Android 4.1.2) as well as > a Samsung Galaxy S3(Android 4.1.1) >Reporter: Amrit Kahlon >Assignee: Ian Clelland > Fix For: 2.8.0 > > Attachments: cordova-2.4.0rc1.jar > > > When uploading pictures using the File Transfer function on android, the > first picture will upload fine. Then the second upload will give the > following error: > 01-21 13:48:02.545: W/FileTransfer(8894): Error getting HTTP status code from > connection. > 01-21 13:48:02.545: W/FileTransfer(8894): java.io.EOFException > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.io.Streams.readAsciiLine(Streams.java:203) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.createFileTransferError(FileTransfer.java:535) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.access$500(FileTransfer.java:62) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:437) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): > {"target":"http:\/\/xxx.xxx.xxx\/api\/photo_uploads\/create?version=2&api_key=x&source=androidapp-2.2.1","source":"file:\/\/\/storage\/sdcard0\/Android\/data\/com.hockeycommunity.hc_app\/cache\/resize.jpg?1358804880392","code":3} > 01-21 13:48:02.555: E/FileTransfer(8894): java.net.SocketException: sendto > failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:475) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.write(PlainSocketImpl.java:508) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:270) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.net.http.FixedLengthOutputStream.write(FixedLengthOutputStream.java:41) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.io.DataOutputStream.write(DataOutputStream.java:98) > 01-21 13:48:02.555: E/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:372) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): Caused by: > libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.Posix.sendtoBytes(Native Method) > 01-21 13:48:02.555: E/FileTransfer(8894): at
[jira] [Updated] (CB-4055) error html remote template loading WP8
[ https://issues.apache.org/jira/browse/CB-4055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] El farouk mokrani updated CB-4055: -- Description: Hello Everyone,I've been trying to develop an app in cordova 2.8 in Windows phone 8. Everything works fine in iOS and Android, but I'm getting a really strange error message. ERROR: failed to InvokeMethodNamed :: readResourceAsText on Object :: File CommandString : DebugConsole/log/DebugConsole1223202439/"Error in error callback: File1223202438 = Error: js/../templates/home/home.html HTTP status: 404" Log:["Error in error callback: File1223202438 = Error: js\/..\/templates\/home\/home.html HTTP status: 404","DebugConsole1223202439"] The thread 0xea8 has exited with code 259 (0x103). so i'm used BackboneJs + Jquerymob + require and textjs plugin the problem is found at int start = int.Parse(optStrings[2]); in file plugin of phonegap File.cs and the content of pathToResource ="js/../templates/home/home.html" loading template that's why I think that this is the problem. Do you guys know anything about it? i'm sorry for my english thanks. was: Hello Everyone,I've been trying to develop an app in phonegap in Windows phone 8. Everything works fine in iOS and Android, but I'm getting a really strange error message. ERROR: failed to InvokeMethodNamed :: readResourceAsText on Object :: File CommandString : DebugConsole/log/DebugConsole1223202439/"Error in error callback: File1223202438 = Error: js/../templates/home/home.html HTTP status: 404" Log:["Error in error callback: File1223202438 = Error: js\/..\/templates\/home\/home.html HTTP status: 404","DebugConsole1223202439"] The thread 0xea8 has exited with code 259 (0x103). so i'm used BackboneJs + Jquerymob + require and textjs plugin the problem is found at int start = int.Parse(optStrings[2]); in file plugin of phonegap File.cs and the content of pathToResource ="js/../templates/home/home.html" loading template that's why I think that this is the problem. Do you guys know anything about it? i'm sorry for my english thanks. > error html remote template loading WP8 > -- > > Key: CB-4055 > URL: https://issues.apache.org/jira/browse/CB-4055 > Project: Apache Cordova > Issue Type: Bug > Components: WP8 >Affects Versions: 2.8.0 > Environment: Windows 8 >Reporter: El farouk mokrani >Assignee: Jesse MacFadyen > Labels: backbonejs, javascript, requirejs > Fix For: 2.8.0 > > > Hello Everyone,I've been trying to develop an app in cordova 2.8 in Windows > phone 8. Everything works fine in iOS and Android, but I'm getting a really > strange error message. > ERROR: failed to InvokeMethodNamed :: readResourceAsText on Object :: File > CommandString : DebugConsole/log/DebugConsole1223202439/"Error in error > callback: File1223202438 = Error: js/../templates/home/home.html HTTP status: > 404" > Log:["Error in error callback: File1223202438 = Error: > js\/..\/templates\/home\/home.html HTTP status: 404","DebugConsole1223202439"] > The thread 0xea8 has exited with code 259 (0x103). > so i'm used BackboneJs + Jquerymob + require and textjs plugin the problem is > found at int start = int.Parse(optStrings[2]); in file plugin of phonegap > File.cs and the content of pathToResource ="js/../templates/home/home.html" > loading template that's why I think that this is the problem. > Do you guys know anything about it? i'm sorry for my english > thanks. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (CB-4055) error html remote template loading WP8
El farouk mokrani created CB-4055: - Summary: error html remote template loading WP8 Key: CB-4055 URL: https://issues.apache.org/jira/browse/CB-4055 Project: Apache Cordova Issue Type: Bug Components: WP8 Affects Versions: 2.8.0 Environment: Windows 8 Reporter: El farouk mokrani Assignee: Jesse MacFadyen Fix For: 2.8.0 Hello Everyone,I've been trying to develop an app in phonegap in Windows phone 8. Everything works fine in iOS and Android, but I'm getting a really strange error message. ERROR: failed to InvokeMethodNamed :: readResourceAsText on Object :: File CommandString : DebugConsole/log/DebugConsole1223202439/"Error in error callback: File1223202438 = Error: js/../templates/home/home.html HTTP status: 404" Log:["Error in error callback: File1223202438 = Error: js\/..\/templates\/home\/home.html HTTP status: 404","DebugConsole1223202439"] The thread 0xea8 has exited with code 259 (0x103). so i'm used BackboneJs + Jquerymob + require and textjs plugin the problem is found at int start = int.Parse(optStrings[2]); in file plugin of phonegap File.cs and the content of pathToResource ="js/../templates/home/home.html" loading template that's why I think that this is the problem. Do you guys know anything about it? i'm sorry for my english thanks. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-2293) File Transfer of picture fails on every other picture
[ https://issues.apache.org/jira/browse/CB-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696168#comment-13696168 ] Joe Bowser commented on CB-2293: Can someone send me a demo project for this so we don't have to re-invent the wheel? We have a Samsung Galaxy S3 in the office that we can use to test this. That being said, I think this happens on any device based on what I see here. Also, is the device using WiFi or Mobile Data? I don't think I've ever seen that asked, but I might be wrong. It may be that the latency on HSPA may suck and you can't immediately upload one file after another without a brief wait period or something, which wouldn't be present on an emulator unless you specifically set up the emulator to simulate mobile data. > File Transfer of picture fails on every other picture > - > > Key: CB-2293 > URL: https://issues.apache.org/jira/browse/CB-2293 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 2.2.0, 2.3.0 > Environment: Tested on a Motorola Atrix HD(Android 4.1.2) as well as > a Samsung Galaxy S3(Android 4.1.1) >Reporter: Amrit Kahlon >Assignee: Ian Clelland > Fix For: 2.8.0 > > Attachments: cordova-2.4.0rc1.jar > > > When uploading pictures using the File Transfer function on android, the > first picture will upload fine. Then the second upload will give the > following error: > 01-21 13:48:02.545: W/FileTransfer(8894): Error getting HTTP status code from > connection. > 01-21 13:48:02.545: W/FileTransfer(8894): java.io.EOFException > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.io.Streams.readAsciiLine(Streams.java:203) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.createFileTransferError(FileTransfer.java:535) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.access$500(FileTransfer.java:62) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:437) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): > {"target":"http:\/\/xxx.xxx.xxx\/api\/photo_uploads\/create?version=2&api_key=x&source=androidapp-2.2.1","source":"file:\/\/\/storage\/sdcard0\/Android\/data\/com.hockeycommunity.hc_app\/cache\/resize.jpg?1358804880392","code":3} > 01-21 13:48:02.555: E/FileTransfer(8894): java.net.SocketException: sendto > failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:475) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.write(PlainSocketImpl.java:508) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:270) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.net.http.FixedLengthOutputStream.write(FixedLengthOutputStream.java:41) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.io.DataOutputStream.write(DataOutputStream.java:98) > 01-21 13:48:02.555: E/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:372) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): Caused by: > libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransf
[jira] [Created] (CB-4054) WP8 file requests are not relative to www folder
Frederico Costa Galvão created CB-4054: -- Summary: WP8 file requests are not relative to www folder Key: CB-4054 URL: https://issues.apache.org/jira/browse/CB-4054 Project: Apache Cordova Issue Type: Bug Components: Docs, Plugin File, WP8 Affects Versions: 2.9.0 Environment: Windows 8 x64 Reporter: Frederico Costa Galvão Assignee: Michael Brooks I started migrating my app (http://tippz.mobi) to *WP8* and found that all files requested via js (xhr) are expected to be served relative to the project root (at least on development/emulator, but I can't imagine it to be different on other environments), which is not according to the way it happens on iOS and Android. On both iOS and Android, working directory for the code serving files via xhr is the 'www' folder (or is it the folder where my 'index.html' is located?), while on WP8 it is 'www/..' (the project root, in other words). Resources mapped directly on the html file however are served from the right directory on all cases. There is also no word about it on the docs, the only thing I found was an answer on stackoverflow. Adding the following code on line 717 of Plugins/File.cs@readResourceAsText() solved the problem (so far!, can't be sure it didn't have side effects as I could not make my app work well enough on WP8 yet): {code:java} pathToResource = "www/" + pathToResource; {code} Also, on the same method and file, +optStrings+ variable is expected to always have 5 fields, but everytime I ran my app Visual Studio threw me an exception because +optStrings+ never have more than 2 fields. I solved it surrounding remaining variables attribution with an if(optStrings.Length>2){}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-2293) File Transfer of picture fails on every other picture
[ https://issues.apache.org/jira/browse/CB-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696136#comment-13696136 ] Jason Milkins commented on CB-2293: --- Quick additional note, (I'd already made a note of this originally.) the server never sees the failing posts > File Transfer of picture fails on every other picture > - > > Key: CB-2293 > URL: https://issues.apache.org/jira/browse/CB-2293 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 2.2.0, 2.3.0 > Environment: Tested on a Motorola Atrix HD(Android 4.1.2) as well as > a Samsung Galaxy S3(Android 4.1.1) >Reporter: Amrit Kahlon >Assignee: Ian Clelland > Fix For: 2.8.0 > > Attachments: cordova-2.4.0rc1.jar > > > When uploading pictures using the File Transfer function on android, the > first picture will upload fine. Then the second upload will give the > following error: > 01-21 13:48:02.545: W/FileTransfer(8894): Error getting HTTP status code from > connection. > 01-21 13:48:02.545: W/FileTransfer(8894): java.io.EOFException > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.io.Streams.readAsciiLine(Streams.java:203) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.createFileTransferError(FileTransfer.java:535) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.access$500(FileTransfer.java:62) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:437) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): > {"target":"http:\/\/xxx.xxx.xxx\/api\/photo_uploads\/create?version=2&api_key=x&source=androidapp-2.2.1","source":"file:\/\/\/storage\/sdcard0\/Android\/data\/com.hockeycommunity.hc_app\/cache\/resize.jpg?1358804880392","code":3} > 01-21 13:48:02.555: E/FileTransfer(8894): java.net.SocketException: sendto > failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:475) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.write(PlainSocketImpl.java:508) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:270) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.net.http.FixedLengthOutputStream.write(FixedLengthOutputStream.java:41) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.io.DataOutputStream.write(DataOutputStream.java:98) > 01-21 13:48:02.555: E/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:372) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): Caused by: > libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.Posix.sendtoBytes(Native Method) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.Posix.sendto(Posix.java:146) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:473) > 01-21 13:48:02.555: E/FileTransfer(8894): ... 9 more > 01-21 13:48:02.575: D/CordovaLog(8894): error: > {"code":3,"source
[jira] [Commented] (CB-2293) File Transfer of picture fails on every other picture
[ https://issues.apache.org/jira/browse/CB-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696135#comment-13696135 ] Jason Milkins commented on CB-2293: --- Certainly, this is an app running on Andrioid, (a Samsung Galaxy 3) the server is a Rails 3.2 server, with a PUT request (same happens when done as a POST btw.) What I'll do is set up a standalone app that does an image capture and post / put to the server. Hopefully I can get this done within the next 24-36 hour or less. I'll also setup a dedicated service to receive it, and provide the request details needed. What I've done so far is try doing uploads via an existing Cordova app, and as a separate test curl, and a http request extension for Chrome called Postman, to check that uploading works outside the Cordova app. These tests were repeated for 2.5(with a patch to allow PUT), and 2.8 both behave the same. All non Cordova tests pass, and the Cordova tests fail, as per the subject line, fault description of this ticket. No noticeable change with 2.8. Anyway, I'll get that test environment isolated and post here when it's ready. Thanks for your help > File Transfer of picture fails on every other picture > - > > Key: CB-2293 > URL: https://issues.apache.org/jira/browse/CB-2293 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 2.2.0, 2.3.0 > Environment: Tested on a Motorola Atrix HD(Android 4.1.2) as well as > a Samsung Galaxy S3(Android 4.1.1) >Reporter: Amrit Kahlon >Assignee: Ian Clelland > Fix For: 2.8.0 > > Attachments: cordova-2.4.0rc1.jar > > > When uploading pictures using the File Transfer function on android, the > first picture will upload fine. Then the second upload will give the > following error: > 01-21 13:48:02.545: W/FileTransfer(8894): Error getting HTTP status code from > connection. > 01-21 13:48:02.545: W/FileTransfer(8894): java.io.EOFException > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.io.Streams.readAsciiLine(Streams.java:203) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.createFileTransferError(FileTransfer.java:535) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.access$500(FileTransfer.java:62) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:437) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): > {"target":"http:\/\/xxx.xxx.xxx\/api\/photo_uploads\/create?version=2&api_key=x&source=androidapp-2.2.1","source":"file:\/\/\/storage\/sdcard0\/Android\/data\/com.hockeycommunity.hc_app\/cache\/resize.jpg?1358804880392","code":3} > 01-21 13:48:02.555: E/FileTransfer(8894): java.net.SocketException: sendto > failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:475) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.write(PlainSocketImpl.java:508) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:270) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.net.http.FixedLengthOutputStream.write(FixedLengthOutputStream.java:41) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.io.DataOutputStream.write(DataOutputStream.java:98) > 01-21 13:48:02.555: E/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:372) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 0
[jira] [Commented] (CB-2293) File Transfer of picture fails on every other picture
[ https://issues.apache.org/jira/browse/CB-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696111#comment-13696111 ] Andrew Grieve commented on CB-2293: --- Re-opened. Jason - can you spell out what device & OS you're seeing this on? Can you also verify whether it's an EOFException you're seeing in your logs. Would it also be possible to let us know what server you're uploading to that will reproduce this? To debug this, I'd need to be able to write an app with a giant button that performs a FileTransfer of a small file to your server. There definitely was a bug fixed in 2.8, so it could be that this issue has multiple things going on. > File Transfer of picture fails on every other picture > - > > Key: CB-2293 > URL: https://issues.apache.org/jira/browse/CB-2293 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 2.2.0, 2.3.0 > Environment: Tested on a Motorola Atrix HD(Android 4.1.2) as well as > a Samsung Galaxy S3(Android 4.1.1) >Reporter: Amrit Kahlon >Assignee: Ian Clelland > Fix For: 2.8.0 > > Attachments: cordova-2.4.0rc1.jar > > > When uploading pictures using the File Transfer function on android, the > first picture will upload fine. Then the second upload will give the > following error: > 01-21 13:48:02.545: W/FileTransfer(8894): Error getting HTTP status code from > connection. > 01-21 13:48:02.545: W/FileTransfer(8894): java.io.EOFException > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.io.Streams.readAsciiLine(Streams.java:203) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.createFileTransferError(FileTransfer.java:535) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.access$500(FileTransfer.java:62) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:437) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): > {"target":"http:\/\/xxx.xxx.xxx\/api\/photo_uploads\/create?version=2&api_key=x&source=androidapp-2.2.1","source":"file:\/\/\/storage\/sdcard0\/Android\/data\/com.hockeycommunity.hc_app\/cache\/resize.jpg?1358804880392","code":3} > 01-21 13:48:02.555: E/FileTransfer(8894): java.net.SocketException: sendto > failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:475) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.write(PlainSocketImpl.java:508) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:270) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.net.http.FixedLengthOutputStream.write(FixedLengthOutputStream.java:41) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.io.DataOutputStream.write(DataOutputStream.java:98) > 01-21 13:48:02.555: E/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:372) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): Caused by: > libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.Posix.sendtoBytes(Native Method) > 01-21 13:48:02.555: E/FileTransfer(8894):
[jira] [Reopened] (CB-2293) File Transfer of picture fails on every other picture
[ https://issues.apache.org/jira/browse/CB-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Grieve reopened CB-2293: --- > File Transfer of picture fails on every other picture > - > > Key: CB-2293 > URL: https://issues.apache.org/jira/browse/CB-2293 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 2.2.0, 2.3.0 > Environment: Tested on a Motorola Atrix HD(Android 4.1.2) as well as > a Samsung Galaxy S3(Android 4.1.1) >Reporter: Amrit Kahlon >Assignee: Ian Clelland > Fix For: 2.8.0 > > Attachments: cordova-2.4.0rc1.jar > > > When uploading pictures using the File Transfer function on android, the > first picture will upload fine. Then the second upload will give the > following error: > 01-21 13:48:02.545: W/FileTransfer(8894): Error getting HTTP status code from > connection. > 01-21 13:48:02.545: W/FileTransfer(8894): java.io.EOFException > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.io.Streams.readAsciiLine(Streams.java:203) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) > 01-21 13:48:02.545: W/FileTransfer(8894): at > libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.createFileTransferError(FileTransfer.java:535) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer.access$500(FileTransfer.java:62) > 01-21 13:48:02.545: W/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:437) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.545: W/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): > {"target":"http:\/\/xxx.xxx.xxx\/api\/photo_uploads\/create?version=2&api_key=x&source=androidapp-2.2.1","source":"file:\/\/\/storage\/sdcard0\/Android\/data\/com.hockeycommunity.hc_app\/cache\/resize.jpg?1358804880392","code":3} > 01-21 13:48:02.555: E/FileTransfer(8894): java.net.SocketException: sendto > failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:475) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.write(PlainSocketImpl.java:508) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:270) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.net.http.FixedLengthOutputStream.write(FixedLengthOutputStream.java:41) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.io.DataOutputStream.write(DataOutputStream.java:98) > 01-21 13:48:02.555: E/FileTransfer(8894): at > org.apache.cordova.FileTransfer$1.run(FileTransfer.java:372) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) > 01-21 13:48:02.555: E/FileTransfer(8894): at > java.lang.Thread.run(Thread.java:856) > 01-21 13:48:02.555: E/FileTransfer(8894): Caused by: > libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.Posix.sendtoBytes(Native Method) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.Posix.sendto(Posix.java:146) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177) > 01-21 13:48:02.555: E/FileTransfer(8894): at > libcore.io.IoBridge.sendto(IoBridge.java:473) > 01-21 13:48:02.555: E/FileTransfer(8894): ... 9 more > 01-21 13:48:02.575: D/CordovaLog(8894): error: > {"code":3,"source":"file:///storage/sdcard0/Android/data/com.hockeycommunity.hc_app/cache/resize.jpg?1358804880392","target":"http://xxx.xxx./api/photo_uploads/create?version=2&api_key=x