[Java native] missing dependency in maven repository

29 views
Skip to first unread message

Fabian Steels

unread,
Dec 9, 2014, 10:28:45 AM12/9/14
to mobile-c...@googlegroups.com
Hi all,
I'm working with couchbase-lite-java (only java not android). I have migrated from 1.0.1 version to 1.0.3 version. When I execute my application I receive this error:
Exception in thread "main" java.lang.RuntimeException: Failed to load storage.  Resource: services/com.couchbase.lite.storage.SQLiteStorageEngine classname: 
at com.couchbase.lite.storage.SQLiteStorageEngineFactory.createStorageEngine(SQLiteStorageEngineFactory.java:45)
at com.couchbase.lite.Database.open(Database.java:905)
at com.couchbase.lite.Manager.getDatabase(Manager.java:236)
at be.cetic.iphi.Ecriture.main(Ecriture.java:69)
Caused by: java.lang.NullPointerException
at com.couchbase.lite.util.TextUtils.read(TextUtils.java:52)
at com.couchbase.lite.storage.SQLiteStorageEngineFactory.createStorageEngine(SQLiteStorageEngineFactory.java:38)
... 3 more 
In the 1.0.1 version I had this library couchbase-lite-java.jar that contained classes about SQLlite storage. (https://github.com/couchbase/couchbase-lite-java)
In the maven repository I don't find this library (http://files.couchbase.com/maven2/com/couchbase/lite/) and this library in not more given to download.

Where can I download this library?
Thanks!

In any case here is my pom
 <dependencies>        
        <dependency>
            <groupId>com.couchbase.lite</groupId>
            <artifactId>java-native</artifactId>
            <version>1.0.3-7</version>
        </dependency>
        <dependency>
            <groupId>com.couchbase.lite</groupId>
            <artifactId>couchbase-lite-java-core</artifactId>
            <version>1.0.3-7</version>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore</artifactId>
            <version>4.3.2</version>
        </dependency>
    </dependencies>


Traun Leyden

unread,
Dec 9, 2014, 5:00:04 PM12/9/14
to mobile-c...@googlegroups.com

Hey Fabian,

Thanks for reporting this. 

I just looked into it, and yes our official download for 1.0.3.1 couchbase-lite-java is broken.  It is missing quite a few jars, including the couchbase-lite-java.jar that you mentioned.

I will do what I can to make sure this gets fixed in our next major release, but in the meantime I'd advise you to build it yourself from source:


If you run into any problems, we're here to help!  If the docs are confusing, please post issues onto the repo or comments on this thread and we'll improve the docs.
Reply all
Reply to author
Forward
0 new messages