jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Wheeler <rwhee...@artifact-software.com>
Subject Oak and Mongo
Date Mon, 22 May 2017 13:44:22 GMT
Does Oak work with the latest version (3.4.2) of MongoDB?


I could not get the code on 
http://jackrabbit.apache.org/oak/docs/construct.html to work.

getDB("test2")

is flagged as deprecated.

The

Exception in thread "main" java.lang.IllegalAccessError: tried to access 
class org.apache.jackrabbit.stats.TimeSeriesAverage from class 
org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats
     at 
org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats.getAvgTimeSeries(BlobStoreStats.java:200)
     at 
org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats.<init>(BlobStoreStats.java:75)
     at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.configureBlobStore(DocumentMK.java:1296)
     at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setBlobStore(DocumentMK.java:669)
     at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:663)
     at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:634)
     at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:684)
     at 
com.artifact_software.communication.InitiateDatabase.getNodeStore(InitiateDatabase.java:109)
     at 
com.artifact_software.communication.InitiateDatabase.main(InitiateDatabase.java:29)

I have broken the example down into smaller chunks that should do the 
same thing as the code in the example and this is the function that fails

     private static DocumentNodeStore getNodeStore(){
         DB db = new MongoClient("127.0.0.1", 27017).getDB("test2");
             DocumentNodeStore ns = new DocumentMK.Builder().
                     setMongoDB(db).getNodeStore();
             return ns;
     }


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message