Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 83221 invoked from network); 14 Feb 2009 18:08:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2009 18:08:00 -0000 Received: (qmail 26858 invoked by uid 500); 14 Feb 2009 18:07:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 26822 invoked by uid 500); 14 Feb 2009 18:07:58 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 26811 invoked by uid 99); 14 Feb 2009 18:07:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 10:07:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bordoley@gmail.com designates 74.125.46.31 as permitted sender) Received: from [74.125.46.31] (HELO yw-out-2324.google.com) (74.125.46.31) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 18:07:50 +0000 Received: by yw-out-2324.google.com with SMTP id 2so733449ywt.5 for ; Sat, 14 Feb 2009 10:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=31wmAgiEesgqGx9UNmVAA66ULdDesmK64xuVrocRC9c=; b=AOMJ/Nl1HAe6A+4saM5YU0jjPZz91m/2tRaJshbbwoWUCtTjGdlpjnCiltMJyp0K+c Ntam9I3zUa7a9/2yCeckZ5g5IR5wNMPA0AUZ0jq0qG+A4IqRhxmgw8iGAEqin+yPX/RK KvXRm/Bjz2xnjjdudx0053l2lZjbUz+VdjuOw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=iekrNE3qdYZ0TwCSX7QQgEFDsTnIJhp3+YLWXY3fY/lBxQ1nbWOFoP/FqIyX8kcmku VzzxZTKF1Mzp/stro7L5/LOwWiDMolOKuWFpuy3JS6PyaAdX2eAnbaZXyBR3L6TdUdVE A6D2MEmny/+11dMtazZl0kRt9f+PLp3vhddVs= MIME-Version: 1.0 Received: by 10.150.140.9 with SMTP id n9mr294780ybd.190.1234634849885; Sat, 14 Feb 2009 10:07:29 -0800 (PST) Date: Sat, 14 Feb 2009 10:07:29 -0800 Message-ID: <7700b5010902141007vb00ec89u9acc60ea332a71d4@mail.gmail.com> Subject: Question when using JCouchDB java binding From: Dave Bordoley To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm having an issue using the JCouchDB binding (I hope this is an appropriate list to ask this question???). In CouchDB I'm storing a simple nested object like the following: { "var1": { } } In my Java Code I'd like to map the object contained in var1 to a specific POJO class in my outer POJO. For instance: public class innerClass { . Getters/Setters . } public class myClass { public setVar1(InnerClass obj) { ... } } Unfortunately no matter what I try I can't seem to get this to work. I keep receiving the following exception the Svenson JSON library, and from a cursory look at the code, I'm wondering if this is even supported. org.svenson.JSONParseException: Cannot set property media on class contentstore.dao.MediaEntry at org.svenson.JSONParser.parseObjectInto(JSONParser.java:357) at org.svenson.JSONParser.parseObjectInto(JSONParser.java:389) at org.svenson.JSONParser.parseArrayInto(JSONParser.java:283) at org.svenson.JSONParser.parseObjectInto(JSONParser.java:399) at org.svenson.JSONParser.parse(JSONParser.java:185) at org.jcouchdb.db.Response.getContentAsBean(Response.java:129) at org.jcouchdb.db.Database.queryViewInternal(Database.java:505) at org.jcouchdb.db.Database.queryView(Database.java:365) Any suggestions, I've tried annotated type hints, using a JSONParser, all to no avail. Am I missing something? Thanks for any help you can provide. Dave