[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=13571834#comment-13571834 ] Amrit Kahlon commented on CB-2293: -- Removing con.disconnect() crashes app > 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: Andrew Grieve > 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","targ
[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=13571786#comment-13571786 ] Amrit Kahlon commented on CB-2293: -- I've tried the chunked mode already, didn't help. I'll give the other ones a shot > 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: Andrew Grieve > 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
[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=13571682#comment-13571682 ] Amrit Kahlon commented on CB-2293: -- I tried just deleting setRequestProperty and my app crashed when I tried to upload a picture. Then I tried putting setRequestProperty back and simply add System.setProperty and my app uploaded one picture, but crashed on the second one. So the only way it works is when you delete the line from FileTransfer.java as well as add System.setProperty to you project. > 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: Andrew Grieve > 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) > 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=13571613#comment-13571613 ] Amrit Kahlon commented on CB-2293: -- [~drewschmaltz] I threw it in my main app.java file public class staging extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { System.setProperty("http.keepAlive", "false"); super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/views/index.html"); } } I will try playing around and see what it was exactly > 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: Andrew Grieve > 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.send
[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=13570875#comment-13570875 ] Amrit Kahlon commented on CB-2293: -- Eureka it works! That was a most excellent shot in the dark Andrew! Works fine now, no problems! Drew you should give it a shot. Many thanks for all your help Andrew! > 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: Andrew Grieve > 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):
[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=13570805#comment-13570805 ] Amrit Kahlon commented on CB-2293: -- Sorry I never use the emulators since they're too slow. But I've tested on a Motorola Atrix HD and a Samsung Galaxy S3. I've found a workaround for this though, since it only fails every other upload, I just upload it again if it fails. Its working fine now from the users standpoint. Although its some ugly coding, it works! ft.upload(imageCaptured, Base+"photo_uploads/create/test?version=2+ "&source="+source_app,uploadedProfilePicture,function(message){ console.log("error: " + JSON.stringify(message)); // Retry on failure ft.upload(imageCaptured, Base+"photo_uploads/create/test?version=2+ "&source="+source_app,uploadedProfilePicture,function(message){ console.log("error: " + JSON.stringify(message)); }, options); }, options); I think the issue has something to do with the server I am uploading to, but it works fine on iOS with almost the exact same 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: Andrew Grieve > 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(ThreadP
[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=13570691#comment-13570691 ] Amrit Kahlon commented on CB-2293: -- I tried that latest version, it still occurs. > 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: Andrew Grieve > 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?135880488039
[jira] [Issue Comment Deleted] (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 ] Amrit Kahlon updated CB-2293: - Comment: was deleted (was: I tried the lastest, still does not work.) > 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: Andrew Grieve > 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/pho
[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=13570689#comment-13570689 ] Amrit Kahlon commented on CB-2293: -- I tried the lastest, still does not work. > 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: Andrew Grieve > 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","
[jira] [Commented] (CB-2293) File Tranfer 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=13566772#comment-13566772 ] Amrit Kahlon commented on CB-2293: -- I'm using a ruby on rails server running on heroku. I'll try that revision out later today, but I don't think that's the issue. The strangest part about this bug is it works every other time! > File Tranfer 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: Joe Bowser > 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:
[jira] [Commented] (CB-2293) File Tranfer 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=13565688#comment-13565688 ] Amrit Kahlon commented on CB-2293: -- Actually, the thing is the server logs don't show anything at all! That's the strange part. > File Tranfer 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: Joe Bowser > 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.hockeycom
[jira] [Commented] (CB-2293) File Tranfer 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=13564459#comment-13564459 ] Amrit Kahlon commented on CB-2293: -- Hey Andrew, that did not fix the error, it occurred again on the second photo upload. 01-28 10:04:24.392: W/FileTransfer(25314): Error getting HTTP status code from connection. 01-28 10:04:24.392: W/FileTransfer(25314): java.io.EOFException 01-28 10:04:24.392: W/FileTransfer(25314): at libcore.io.Streams.readAsciiLine(Streams.java:203) 01-28 10:04:24.392: W/FileTransfer(25314): at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) 01-28 10:04:24.392: W/FileTransfer(25314): at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) 01-28 10:04:24.392: W/FileTransfer(25314): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) 01-28 10:04:24.392: W/FileTransfer(25314): at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) 01-28 10:04:24.392: W/FileTransfer(25314): at org.apache.cordova.FileTransfer$1.run(FileTransfer.java:399) 01-28 10:04:24.392: W/FileTransfer(25314): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 01-28 10:04:24.392: W/FileTransfer(25314): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 01-28 10:04:24.392: W/FileTransfer(25314): at java.lang.Thread.run(Thread.java:856) 01-28 10:04:24.392: E/FileTransfer(25314): {"target":"http:\/\/xxx.xx.com\/api\/photo_uploads","source":"file:\/\/\/storage\/sdcard0\/Android\/data\/com.hockeycommunity.hc_app\/cache\/resize.jpg?1359396263245","code":3} 01-28 10:04:24.392: E/FileTransfer(25314): java.io.EOFException 01-28 10:04:24.392: E/FileTransfer(25314): at libcore.io.Streams.readAsciiLine(Streams.java:203) 01-28 10:04:24.392: E/FileTransfer(25314): at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560) 01-28 10:04:24.392: E/FileTransfer(25314): at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813) 01-28 10:04:24.392: E/FileTransfer(25314): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) 01-28 10:04:24.392: E/FileTransfer(25314): at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) 01-28 10:04:24.392: E/FileTransfer(25314): at org.apache.cordova.FileTransfer$1.run(FileTransfer.java:399) 01-28 10:04:24.392: E/FileTransfer(25314): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 01-28 10:04:24.392: E/FileTransfer(25314): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 01-28 10:04:24.392: E/FileTransfer(25314): at java.lang.Thread.run(Thread.java:856) > File Tranfer 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: Joe Bowser > 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
[jira] [Commented] (CB-2293) File Tranfer 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=13563274#comment-13563274 ] Amrit Kahlon commented on CB-2293: -- Hey Andrew, where would I find FileTransfer.java? > File Tranfer 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: Joe Bowser > > 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_uplo
[jira] [Commented] (CB-2293) File Tranfer 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=13563232#comment-13563232 ] Amrit Kahlon commented on CB-2293: -- Yea I've seen one fix that works with HTTPS, but nothing so far for regular ol http > File Tranfer 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: Joe Bowser > > 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":
[jira] [Commented] (CB-2293) File Tranfer 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=13563150#comment-13563150 ] Amrit Kahlon commented on CB-2293: -- Sure: uploadPicture_new = function () {}; uploadPicture_new.prototype = { constructor: uploadPicture_new, transfert : function(params,fct_api,option) { var ft = new FileTransfer(), parameters=params, uploadcomplete=0, progress = 0, options = new FileUploadOptions(); //even if not used, it is mandatory options.fileKey="photo"; options.fileName=imageCaptured.substr(imageCaptured.lastIndexOf('/')+1); options.mimeType="image/jpeg"; // For true progress ft.onprogress = function(progressEvent) { if (progressEvent.lengthComputable) { progress = 20 + Math.round((progressEvent.loaded / progressEvent.total) * 70) ; $('.progress_bar').children('span:first-child').css('width',progress+'%'); } else { loadingStatus.increment(); } }; //Not possible to use Oauth in this case so API_KEY ft.upload(imageCaptured, Base+"photo_uploads/create,uploadedProfilePicture,function(message){ console.log("error: " + JSON.stringify(message)); }, options); function uploadedProfilePicture(information_back){ var param_photo=""; Image_Upload_Id=information_back.response; console.log(Image_Upload_Id); if (Image_Upload_Id != undefined && Image_Upload_Id != "") { param_photo="&photo_upload_id="+Image_Upload_Id; } fct_api.send(parameters+param_photo,true); }; } } > File Tranfer 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: Joe Bowser > > 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
[jira] [Created] (CB-2293) File Tranfer of picture fails on every other picture
Amrit Kahlon created CB-2293: Summary: File Tranfer 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.3.0, 2.2.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: Joe Bowser 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=xxx&source=androidapp-2.2.1","http_status":null} 01-21 13:48:02.575: I/Web Console(8894): error: {"code":3,"source":"file:///storage/sdcard0/Android/data/com.hockeycommunity.hc_app/cache/resize.jpg?1358804880392","target":"http://xxx.xxx.xxx/api/photo_uploads/create?version=2&api_key=xxx&source=androidapp-2.2.1","http_status":null} a