Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
java.io.IOException: read failed: EBADF (Bad file number)
07-01 08:46:21.394 V/Sync (20257): Uploaded multipart request.
07-01 08:46:23.524 V/Sync (20257): Uploaded multipart request.
07-01 08:46:28.094 V/Sync (20257): Uploaded multipart request.
07-01 08:46:32.954 V/Sync (20257): Uploaded multipart request.
07-01 08:46:32.974 D/dalvikvm(20257): GC_FOR_ALLOC freed 963K, 8% free 18794K/20408K, paused 15ms, total 17ms
07-01 08:46:51.504 V/Sync (20257): Uploaded multipart request.
07-01 08:46:54.524 E/RemoteRequest(20257): io exception
07-01 08:46:54.524 E/RemoteRequest(20257): java.net.SocketTimeoutException
07-01 08:46:54.524 E/RemoteRequest(20257): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
07-01 08:46:54.524 E/RemoteRequest(20257): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
07-01 08:46:54.524 E/RemoteRequest(20257): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-01 08:46:54.524 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-01 08:46:54.524 E/RemoteRequest(20257): at com.couchbase.lite.support.RemoteRequest.executeRequest(RemoteRequest.java:208)
07-01 08:46:54.524 E/RemoteRequest(20257): at com.couchbase.lite.support.RemoteMultipartRequest.run(RemoteMultipartRequest.java:49)
07-01 08:46:54.524 E/RemoteRequest(20257): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-01 08:46:54.524 E/RemoteRequest(20257): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-01 08:46:54.524 E/RemoteRequest(20257): at java.lang.Thread.run(Thread.java:841)
07-01 08:47:03.904 V/Sync (20257): Uploaded multipart request.
07-01 08:47:10.174 D/dalvikvm(20257): GC_FOR_ALLOC freed 436K, 8% free 18844K/20408K, paused 84ms, total 87ms
07-01 08:47:11.604 E/RemoteRequest(20257): io exception
07-01 08:47:11.604 E/RemoteRequest(20257): java.io.IOException: read failed: EBADF (Bad file number)
07-01 08:47:11.604 E/RemoteRequest(20257): at libcore.io.IoBridge.read(IoBridge.java:435)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.io.FileInputStream.read(FileInputStream.java:179)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.io.InputStream.read(InputStream.java:162)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.entity.mime.content.InputStreamBody.writeTo(InputStreamBody.java:87)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.entity.mime.HttpMultipart.doWriteTo(HttpMultipart.java:206)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.entity.mime.HttpMultipart.writeTo(HttpMultipart.java:224)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.entity.mime.MultipartEntity.writeTo(MultipartEntity.java:183)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:97)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:162)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:272)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:237)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:119)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-01 08:47:11.604 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-01 08:47:11.604 E/RemoteRequest(20257): at com.couchbase.lite.support.RemoteRequest.executeRequest(RemoteRequest.java:208)
07-01 08:47:11.604 E/RemoteRequest(20257): at com.couchbase.lite.support.RemoteMultipartRequest.run(RemoteMultipartRequest.java:49)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-01 08:47:11.604 E/RemoteRequest(20257): at java.lang.Thread.run(Thread.java:841)
07-01 08:47:11.604 E/RemoteRequest(20257): Caused by: libcore.io.ErrnoException: read failed: EBADF (Bad file number)
07-01 08:47:11.604 E/RemoteRequest(20257): at libcore.io.Posix.readBytes(Native Method)
07-01 08:47:11.604 E/RemoteRequest(20257): at libcore.io.Posix.read(Posix.java:128)
07-01 08:47:11.604 E/RemoteRequest(20257): at libcore.io.BlockGuardOs.read(BlockGuardOs.java:149)
07-01 08:47:11.604 E/RemoteRequest(20257): at libcore.io.IoBridge.read(IoBridge.java:425)
07-01 08:47:11.604 E/RemoteRequest(20257): ... 24 more
07-01 08:47:11.604 V/Sync (20257): Uploaded multipart request.
07-01 08:47:16.804 V/Sync (20257): Uploaded multipart request.
07-01 08:47:21.334 V/Sync (20257): Uploaded multipart request.
07-01 08:47:24.944 D/dalvikvm(20257): GC_FOR_ALLOC freed 436K, 8% free 18806K/20408K, paused 55ms, total 57ms
07-01 08:47:26.144 E/RemoteRequest(20257): io exception
07-01 08:47:26.144 E/RemoteRequest(20257): java.io.IOException: read failed: EBADF (Bad file number)
07-01 08:47:26.144 E/RemoteRequest(20257): at libcore.io.IoBridge.read(IoBridge.java:435)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.io.FileInputStream.read(FileInputStream.java:179)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.io.InputStream.read(InputStream.java:162)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.entity.mime.content.InputStreamBody.writeTo(InputStreamBody.java:87)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.entity.mime.HttpMultipart.doWriteTo(HttpMultipart.java:206)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.entity.mime.HttpMultipart.writeTo(HttpMultipart.java:224)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.entity.mime.MultipartEntity.writeTo(MultipartEntity.java:183)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:97)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:162)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:272)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:237)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:119)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-01 08:47:26.144 E/RemoteRequest(20257): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-01 08:47:26.144 E/RemoteRequest(20257): at com.couchbase.lite.support.RemoteRequest.executeRequest(RemoteRequest.java:208)
07-01 08:47:26.144 E/RemoteRequest(20257): at com.couchbase.lite.support.RemoteMultipartRequest.run(RemoteMultipartRequest.java:49)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-01 08:47:26.144 E/RemoteRequest(20257): at java.lang.Thread.run(Thread.java:841)
07-01 08:47:26.144 E/RemoteRequest(20257): Caused by: libcore.io.ErrnoException: read failed: EBADF (Bad file number)
07-01 08:47:26.144 E/RemoteRequest(20257): at libcore.io.Posix.readBytes(Native Method)
07-01 08:47:26.144 E/RemoteRequest(20257): at libcore.io.Posix.read(Posix.java:128)
07-01 08:47:26.144 E/RemoteRequest(20257): at libcore.io.BlockGuardOs.read(BlockGuardOs.java:149)
07-01 08:47:26.144 E/RemoteRequest(20257): at libcore.io.IoBridge.read(IoBridge.java:425)
07-01 08:47:26.144 E/RemoteRequest(20257): ... 24 more
07-01 08:47:26.144 E/Sync (20257): com.couchbase.lite.support.RemoteMultipartRequest@427b2e90: RemoteRequest failed all retries, giving up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.