Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Database sync gives me errors #12

Open
ghost opened this issue Sep 11, 2016 · 12 comments
Open

Database sync gives me errors #12

ghost opened this issue Sep 11, 2016 · 12 comments

Comments

@ghost
Copy link

ghost commented Sep 11, 2016

No description provided.

@ghost
Copy link
Author

ghost commented Sep 11, 2016

Tells me to check logcat

@nwalters512
Copy link
Member

You'll need to provide more information if you want us to have any hope of helping you. When it errors, immediately eject and disconnect the flash drive and connect the device to a computer with Android Studio open. Scroll back in Logcat until you see the stack trace for the error; please post it here.

@ghost
Copy link
Author

ghost commented Sep 11, 2016

09-11 14:19:54.766 23686-30212/org.wildstang.wildrank.androidv2 W/System.err: java.lang.NullPointerException: Attempt to get length of null array
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at com.couchbase.lite.Manager.upgradeOldDatabaseFiles(Manager.java:351)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at com.couchbase.lite.Manager.<init>(Manager.java:139)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.data.DatabaseManager.getExternalDatabase(DatabaseManager.java:129)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.syncDatabases(SyncActivity.java:75)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.access$100(SyncActivity.java:31)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:323)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:318)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.lang.Thread.run(Thread.java:818)
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err: java.lang.Exception: Error opening database!
09-11 14:19:54.767 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.data.DatabaseManager.getExternalDatabase(DatabaseManager.java:138)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.syncDatabases(SyncActivity.java:75)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.access$100(SyncActivity.java:31)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:323)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:318)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
09-11 14:19:54.768 23686-30212/org.wildstang.wildrank.androidv2 W/System.err:     at java.lang.Thread.run(Thread.java:818)
09-11 14:19:54.877 23686-23716/org.wildstang.wildrank.androidv2 V/RenderScript: 0xa0830000 Launching thread(s), CPUs 4
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err: java.lang.NullPointerException: Attempt to get length of null array
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at com.couchbase.lite.Manager.upgradeOldDatabaseFiles(Manager.java:351)
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at com.couchbase.lite.Manager.<init>(Manager.java:139)
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.data.DatabaseManager.getExternalDatabase(DatabaseManager.java:129)
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.syncDatabases(SyncActivity.java:75)
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.access$100(SyncActivity.java:31)
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:323)
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:318)
09-11 14:20:37.098 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)
09-11 14:20:37.099 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
09-11 14:20:37.106 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
09-11 14:20:37.106 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
09-11 14:20:37.107 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
09-11 14:20:37.107 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.lang.Thread.run(Thread.java:818)
09-11 14:20:37.107 23686-30761/org.wildstang.wildrank.androidv2 W/System.err: java.lang.Exception: Error opening database!
09-11 14:20:37.108 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.data.DatabaseManager.getExternalDatabase(DatabaseManager.java:138)
09-11 14:20:37.108 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.syncDatabases(SyncActivity.java:75)
09-11 14:20:37.108 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity.access$100(SyncActivity.java:31)
09-11 14:20:37.108 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:323)
09-11 14:20:37.108 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at org.wildstang.wildrank.androidv2.activities.SyncActivity$SyncTask.doInBackground(SyncActivity.java:318)
09-11 14:20:37.109 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)
09-11 14:20:37.109 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
09-11 14:20:37.109 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
09-11 14:20:37.109 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
09-11 14:20:37.109 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
09-11 14:20:37.109 23686-30761/org.wildstang.wildrank.androidv2 W/System.err:     at java.lang.Thread.run(Thread.java:818)

@nwalters512
Copy link
Member

Did you fix wildstang/wildrank-desktop#9 before you attempted this? If the desktop app failed at properly initializing the database on the flash drive, then things will indeed behave badly.

@ghost
Copy link
Author

ghost commented Sep 11, 2016

I did

@ghost
Copy link
Author

ghost commented Sep 11, 2016

I added the folder it couldn't make a file in. It has the database.

@nwalters512
Copy link
Member

This is in the Couchbase internals, so debugging will be a little tricky.

We may have to upgrade the version of CBL in case that's a bug that's been fixed recently. May depend on wildstang/wildrank-desktop#10

@ghost
Copy link
Author

ghost commented Sep 13, 2016

How long do you think it will take?

@ghost
Copy link
Author

ghost commented Sep 15, 2016

Will the changes be done on here too or will they just stay on windows

@nwalters512
Copy link
Member

We may have to upgrade the version of CBL in case that's a bug that's been fixed recently.

So potentially both. Regardless, each should be bumped to the latest version eventually.

@ghost
Copy link
Author

ghost commented Sep 16, 2016

If I wanted to do this myself how would I do it.

@Goofybud16
Copy link
Contributor

@MrSkeletal123 If you use the latest master of both wildrank-desktop and wildrank-android, does this still occur?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants