• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps "Bad cache file for reading." upon DbxFile.readString() call.

  • Thread starter Thread starter W Ike
  • Start date Start date
W

W Ike

Guest
Hi all,
I'm writing an Android app for my Samsung S3 running Android 4.3. I am trying to read a file that I have recently, successfully, written to. When I call readString() I get:

03-16 17:11:44.168 3961-3961/com.example.MySecondBrain.app I/libDropboxSync.so(latest)﹕ file.cpp:728: latest 256305d65cb, we have
03-16 17:11:44.208 3961-3961/com.example.MySecondBrain.app E/com.dropbox.sync.android.DbxFile﹕ Bad cache file for reading.
com.dropbox.sync.android.DbxRuntimeException$System: Bad cache file for reading.
at com.dropbox.sync.android.DbxFile.getReadStream(DbxFile.java:266)
at com.dropbox.sync.android.DbxFile.readString(DbxFile.java:292)...


Just before this, I check the status of the file and I see:

isCached: true, isLatest false, Pending: NONE, Newer status <cached, latest, idle, -1/10 bytes>, hasSynced: true

Any ideas or help would be appreciated. I feel I am very close to being successful with this app. Thanks All!
W Ike
 
Hey W Ike,

As noted and needed, I've moved your thread over here to the application development area for you.

Also and in case you haven't found these pages yet:

I didn't find your error in a Google search either, so I'm not sure what might be going on, but hope that the above links might be helpful (let us know if they are).

Cheers and best of luck!
 
Hey W Ike,

As noted and needed, I've moved your thread over here to the application development area for you.

Also and in case you haven't found these pages yet:

I didn't find your error in a Google search either, so I'm not sure what might be going on, but hope that the above links might be helpful (let us know if they are).

Cheers and best of luck!

Hi,
Thanks. Yeah, I saw that info for developers right after my first (poorly executed) post. I'll check out your links right-away. So far, I hadn't found that message mentioned anywhere. Thanks for the quick feedback.
W
 
The Android docs are helpful and I use them regularly. Thanks. Unfortunately, they don't list this exception as a possible return for that method call. So we're on our own. The sample worked so I just have to figure out what is different. Investigation continues...
 
No solution yet, but I decided to go with a work-around that I actually like better. Instead of opening the DropBox file for write, I write to a file on the local file system, then use the DB APA to move the complete file into place on the DB file system. This is safer since I will never corrupt the target file in case some intermediate write fails.
 
Back
Top Bottom