CreateConnector org.ektorp.DbAccessException "status" : 500

58 views
Skip to first unread message

Diogo Júnior

unread,
Mar 3, 2014, 3:12:57 PM3/3/14
to mobile-c...@googlegroups.com
I'm creating the couchdbconnector and without apparent reason the app crashes with this Exception that doesn't clarify why the exception is happening:

```
Caused by: org.ektorp.DbAccessException: com.couchbase.lite.ektorp.CBLiteHttpResponse@426f3ee0
    URI: cblite:///user_testfhpandroid7/
    Response Body:
    {
    "status" : 500
    }
            at org.ektorp.http.StdResponseHandler.createDbAccessException(StdResponseHandler.java:44)
            at org.ektorp.http.StdResponseHandler.error(StdResponseHandler.java:62)
            at org.ektorp.http.RestTemplate.handleVoidResponse(RestTemplate.java:98)
            at org.ektorp.http.RestTemplate.put(RestTemplate.java:39)
            at org.ektorp.impl.StdCouchDbInstance.createDatabase(StdCouchDbInstance.java:51)
            at org.ektorp.impl.StdCouchDbInstance.createDatabase(StdCouchDbInstance.java:43)
            at org.ektorp.impl.StdCouchDbConnector.createDatabaseIfNotExists(StdCouchDbConnector.java:387)
            at org.ektorp.impl.StdCouchDbInstance.createConnector(StdCouchDbInstance.java:103)
```
Someone knows why this might be happening? Issue reported: https://github.com/helun/Ektorp/issues/162
Thanks.

Traun Leyden

unread,
Mar 3, 2014, 5:22:18 PM3/3/14
to mobile-c...@googlegroups.com
Is there any logcat output / stacktrace that includes the couchbase lite classes?




--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/115f2c0b-efc1-4122-8317-3e170d2635dc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Diogo Júnior

unread,
Mar 3, 2014, 6:02:11 PM3/3/14
to mobile-c...@googlegroups.com

No, this is happening  because I'm using proguard and it's somehow changing the couchbase behaviour, but I don't know what might be. If I could know what are the possible causes for this error, I would have more chances of knowing how to configure proguard in order to avoid this error.

Thanks.

You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/nTaTlIQ7dCI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCHY-ywhjrN1WyYXVb1AGuoQeptKMLOctoJsn%2Bj1A4ZyDw%40mail.gmail.com.

Diogo Júnior

unread,
Mar 5, 2014, 5:33:26 AM3/5/14
to mobile-c...@googlegroups.com

Eric La fortune have found the problem! 
The "proguard/dexguard" manifest merger was removing the META-INF/services/com.couchbase.lite.storage.SQLiteStorageEngine from the final apk meaning that this service wouldn't be available. Eric is going to solve the problem.

On Monday, 3 March 2014 23:02:11 UTC, Diogo Júnior wrote:

No, this is happening  because I'm using proguard and it's somehow changing the couchbase behaviour, but I don't know what might be. If I could know what are the possible causes for this error, I would have more chances of knowing how to configure proguard in order to avoid this error.

Thanks.

On 3 Mar 2014 22:22, "Traun Leyden" wrote:
Is there any logcat output / stacktrace that includes the couchbase lite classes?


On Mon, Mar 3, 2014 at 12:12 PM, Diogo Júnior wrote:
I'm creating the couchdbconnector and without apparent reason the app crashes with this Exception that doesn't clarify why the exception is happening:

```
Caused by: org.ektorp.DbAccessException: com.couchbase.lite.ektorp.CBLiteHttpResponse@426f3ee0
    URI: cblite:///user_testfhpandroid7/
    Response Body:
    {
    "status" : 500
    }
            at org.ektorp.http.StdResponseHandler.createDbAccessException(StdResponseHandler.java:44)
            at org.ektorp.http.StdResponseHandler.error(StdResponseHandler.java:62)
            at org.ektorp.http.RestTemplate.handleVoidResponse(RestTemplate.java:98)
            at org.ektorp.http.RestTemplate.put(RestTemplate.java:39)
            at org.ektorp.impl.StdCouchDbInstance.createDatabase(StdCouchDbInstance.java:51)
            at org.ektorp.impl.StdCouchDbInstance.createDatabase(StdCouchDbInstance.java:43)
            at org.ektorp.impl.StdCouchDbConnector.createDatabaseIfNotExists(StdCouchDbConnector.java:387)
            at org.ektorp.impl.StdCouchDbInstance.createConnector(StdCouchDbInstance.java:103)
```
Someone knows why this might be happening? Issue reported: https://github.com/helun/Ektorp/issues/162
Thanks.

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/nTaTlIQ7dCI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+unsubscribe@googlegroups.com.

Traun Leyden

unread,
Mar 5, 2014, 2:42:00 PM3/5/14
to mobile-c...@googlegroups.com
Ah, so Chris and I just recently ran into that exact same problem on Phonegap.

The fix was to move to the file from:

META-INF/services/com.couchbase.lite.storage.SQLiteStorageEngine

to:

services/com.couchbase.lite.storage.SQLiteStorageEngine




To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/3491aba1-6373-46a6-ba3b-46d9bb50a127%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages