I copied the exception message. Might be it will help you understand where the problem occurred.
com.couchbase.lite.CouchbaseLiteException com.couchbase.lite.CouchbaseLiteException null [1462915328, 451, 1462915272, 5, 1463020336, 137, 1463020280, 9, 1462744624, 39, 1462943280, 4, 1463283568, 58, 1463284808, 9, 1459791184, 28, 1463191704, 0, 1463287160, 0, 1463294584, 8, 1463285984, 2, 1463298952, 2, 1461828864, 24, 1459658792, 6, 1461922408, 22, 1459660472, 15, 1461916072, 3, 1461898944, 8, 1459489944, 18, 1459609664, 2, 1459600392, 2, 1459600456, 4, 1460186072, 84, 1460049056, 48, 1459080768, 0, 1459081896, 17, 1460208056, 11, 1460002968, 66, 1459100640, 0] null Status: 400 [] On Thursday, March 27, 2014 11:59:29 AM UTC+5:30, Pankaj Jakhar wrote: > > I am trying to put properties Map in a CBLite document but getting > exception. Please answer me what should I do. For formatting reasons I have > put this question on StackOverflow. > > > http://stackoverflow.com/questions/22679850/com-couchbase-lite-couchbaseliteexception-when-document-putpropertiesmap-is-ca > > > Map<String, Object> map = new HashMap<String, Object>(); > map = (Map<String, Object>) gson.fromJson(json, map.getClass()); > //map.put("_id", UUID.randomUUID().toString()); > > Document document = mDatabaseLocal.createDocument(); > try { > document.putProperties(map); > } catch (CouchbaseLiteException e) { > e.printStackTrace(); > } > > Exception: > > com.couchbase.lite.CouchbaseLiteException > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/52210964-d8f2-477f-9c6d-394dc59f7e64%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
