Giter VIP home page Giter VIP logo

couchdb4j's People

Contributors

bytefoundry avatar dependabot[bot] avatar galonsky avatar i386 avatar mbreese avatar theaspect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

couchdb4j's Issues

json-lib needs to be upgraded to 2.4

Adding a new view from code gives the following error with the older library. It works fine with 2.4 (json-lib).

Exception in thread "main" net.sf.json.JSONException: java.lang.NoSuchMethodException: Property 'text' has no getter method
at net.sf.json.JSONObject._fromBean(JSONObject.java:958)
at net.sf.json.JSONObject.fromObject(JSONObject.java:193)
at net.sf.json.JSONObject._processValue(JSONObject.java:2778)
at net.sf.json.JSONObject.processValue(JSONObject.java:2837)
at net.sf.json.JSONObject.setInternal(JSONObject.java:2852)
at net.sf.json.JSONObject._accumulate(JSONObject.java:2725)
at net.sf.json.JSONObject.accumulate(JSONObject.java:1631)
at com.fourspaces.couchdb.Document.addView(Document.java:198)
at couch.Main.createViewGetSession(Main.java:37)
at couch.Main.main(Main.java:23)
Caused by: java.lang.NoSuchMethodException: Property 'text' has no getter method
at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1127)
at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)
at net.sf.json.JSONObject._fromBean(JSONObject.java:930)
... 9 more

Sample Code:

Document doc = new Document();
doc.addView("checkexist", "getSessions", "function(doc) {\n emit(doc.sessionID, doc); \n}");
db.saveDocument(doc);

Session.http() returns lastResponse when connection times out.

Not sure if this is by design, but Session.http() is returning the lastResponse when it times out (IOException) on a equest to the couch server. This results in the failed Database.view() call quietly returning the results of the last view, and we return invalid data to our users.

The time out is logged, but we would prefer a noisy failure (maybe even a checked exception!) so we can take steps to handle it.

Regards............ Larry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.