Seems like RawJsonDocument doesn’t work properly yet, although the code has been merged (or I’m doing something wrong?).
When creating a RawJsonDocument using a line like:
RawJsonDocument doc = RawJsonDocument.create(“anIdHere”,WELL_FORMED_CONFIRMED_JSON_HERE);
and then putting to a bucket with something like:
bucket.upsert(doc);
Always nets:
java.lang.NullPointerException
at com.couchbase.client.java.CouchbaseAsyncBucket.upsert(CouchbaseAsyncBucket.java:307)
at com.couchbase.client.java.CouchbaseBucket.upsert(CouchbaseBucket.java:290)
at com.couchbase.client.java.CouchbaseBucket.upsert(CouchbaseBucket.java:284)
at com.voltaireapp.voltaireingest.twitter.TwitterDataPuller.saveCollectionToCouchbase(TwitterDataPuller.java:172)
at com.voltaireapp.voltaireingest.twitter.TwitterDataPuller.pullTweets(TwitterDataPuller.java:157)
at com.voltaireapp.voltaireingest.twitter.TwitterDataPuller.main(TwitterDataPuller.java:343)
Looks like the RawJsonTranscoder isn’t being loaded in the upset method, seems to be the root of the NPE?
Advice?