* db*.queryView(createQuery(ViewsEmployee.BY_TAG_ID).key(tag),
*CouchDbTable.class)*; is Employee.class typo in last post
On Thursday, February 13, 2014 11:00:28 PM UTC+1, bpolan wrote:
>
> Thanks,
>
> then the problem I have is not there.
>
> public class EmployeeDaoImpl extends CouchDbRepositorySupport<Employee>
> implements EmployeeDao {
>
> private CouchDbConnector *dba*;
>
> public EmployeeDaoImpl(CouchDbConnector db) {
> super(Employee.class, *db*);
> this.dba = db;
> }
>
> *When I use Ektorps CouchDbRepositorySupport class queries return nothing:*
>
> * db*.queryView(createQuery(ViewsEmployee.BY_TAG_ID).key(tag),
> CouchDbTable.class);
>
> *When I bypass CouchDbRepositorySupport i get results : *
>
> ViewQuery viewQuery = new ViewQuery().designDocId("_design/" +
> ViewsEmployee.DESIGN_DOC).viewName(ViewsEmployee.BY_TAG_ID).key(tag);
> ViewResult result = *dba*.queryView(viewQuery);
>
> When there is no results no error appears just result is null. So the view
> is found.
> Don't know what would be the problem ?
>
> On Thursday, February 13, 2014 10:49:09 PM UTC+1, Traun Leyden wrote:
>>
>>
>> I just checked the commit logs and it looks like that change didn't make
>> it into beta2.
>>
>>
>> On Thu, Feb 13, 2014 at 11:30 AM, Matt Quinn <[email protected]> wrote:
>>
>>>
>>>
>>> bpolan <[email protected]> wrote:
>>> >02-13 19:09:08.666: D/Database(2792): lastSequence (2061) ==
>>> >dbMaxSequence
>>> >(2061), nothing to do
>>> >*02-13 19:09:08.666: W/Database(2792): Failed to rebuild view
>>> >CouchDbTable/by_company_and_name: 500*
>>> >
>>> >What is 500 error and why view fails to rebuild?
>>>
>>> This is a misleading error message. Nothing's wrong -- the view isn't
>>> rebuilding because it doesn't have to (see log message one line earlier).
>>>
>>> This has already been fixed, but I guess it didn't make it into beta 2.
>>> https://github.com/couchbase/couchbase-lite-java-core/pull/28
>>>
>>> --
>>> 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/2ac34115-b102-4243-a063-be8b37db5987%40email.android.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
--
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/2201812a-f833-4e20-9168-ab961c7baeb1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.