Am trying Spring 4 with kundera 2.17 to connect couchdb. Am actually trying a sample to fetch a user by id. But the log shows me status 200 ok for the response by anyhow am unable to get the entity. I get the following exception..
2015-10-14 11:11:01 [] DEBUG (PoolingClientConnectionManager.java:272) - Connection [id: 1][route: {}->
http://localhost:5984] can be kept alive indefinitely
2015-10-14 11:11:01 [] DEBUG (PoolingClientConnectionManager.java:278) - Connection released: [id: 1][route: {}->http://localhost:5984][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
2015-10-14 11:11:01 [] ERROR (CouchDBClient.java:911) - Error while executing query, Caused by {}.
java.lang.NullPointerException
at com.impetus.client.couchdb.CouchDBClient.executeQuery(CouchDBClient.java:960)
at com.impetus.client.couchdb.CouchDBClient.createAndExecuteQuery(CouchDBClient.java:907)
at com.impetus.client.couchdb.CouchDBQuery.populateEntities(CouchDBQuery.java:80)
at com.impetus.kundera.query.QueryImpl.fetch(QueryImpl.java:1377)
at com.impetus.kundera.query.QueryImpl.getResultList(QueryImpl.java:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:362)
at com.sun.proxy.$Proxy54.getResultList(Unknown Source)
at calories.tracker.app.dao.UserRepository.findUserByUsername(UserRepository.java:42)
at calories.tracker.app.security.SecurityUserDetailsService.loadUserByUsername(SecurityUserDetailsService.java:33)
Thanks in advance for any help..