aspose file tools*
The moose likes Object Relational Mapping and the fly likes Can't retrieve value from JsonNode mapped via Ektorp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Can Watch "Can New topic

Can't retrieve value from JsonNode mapped via Ektorp

James Gibbs

Joined: Feb 21, 2013
Posts: 29

I'm building an Android app which replicates a CouchDB using TouchDB. I create a view with all the documents and pass it to my own implementation of CouchBaseViewAdapter, which links it to my ListView:

In the SyncListAdapter I override getView() and try and extract the "header" field of each JsonNode which has each has been mapped to the results of my viewquery by Ektorp:

However item.get("header") always returns null, even though the same amount of list items are populated as the amount of docs in the DB, so I assume everything else is working.
I agree. Here's the link:
subject: Can't retrieve value from JsonNode mapped via Ektorp
Similar Threads
Exception in 2.1.6 when uploaded file size is greater than the maxSize
Date/Time Component Required [URGENT]
Error exporting Blob to File
Calendar Control
How to color JTable cell without a renderer?