File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Calendar Control
Error exporting Blob to File
How to color JTable cell without a renderer?
Date/Time Component Required [URGENT]