Anyone got problems with JodaTime and ERRest (JSON)? I'm getting this error 
when I query entities that use JodaTime:

java.lang.NoSuchMethodException: Property 'durationType' 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:918)
  at net.sf.json.JSONObject.fromObject(JSONObject.java:168)
  at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:265)
  at net.sf.json.JSONArray._processValue(JSONArray.java:2514)
  at net.sf.json.JSONArray.processValue(JSONArray.java:2539)
  at net.sf.json.JSONArray.addValue(JSONArray.java:2526)
  at net.sf.json.JSONArray._fromArray(JSONArray.java:982)
  at net.sf.json.JSONArray.fromObject(JSONArray.java:133)
  at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:237)
  at net.sf.json.JSONObject._processValue(JSONObject.java:2808)
  at net.sf.json.JSONObject.processValue(JSONObject.java:2874)
  at net.sf.json.JSONObject.setInternal(JSONObject.java:2889)
  at net.sf.json.JSONObject.setValue(JSONObject.java:1577)
  at net.sf.json.JSONObject._fromBean(JSONObject.java:934)
  at net.sf.json.JSONObject.fromObject(JSONObject.java:168)
  at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:265)
  at net.sf.json.JSONObject._processValue(JSONObject.java:2808)
  at net.sf.json.JSONObject.processValue(JSONObject.java:2874)
  at net.sf.json.JSONObject.setInternal(JSONObject.java:2889)
  at net.sf.json.JSONObject.setValue(JSONObject.java:1577)
  at net.sf.json.JSONObject._fromMap(JSONObject.java:1340)
  at net.sf.json.JSONObject.fromObject(JSONObject.java:159)
  at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:265)
  at net.sf.json.JSONArray._processValue(JSONArray.java:2514)
  at net.sf.json.JSONArray.processValue(JSONArray.java:2539)
  at net.sf.json.JSONArray.addValue(JSONArray.java:2526)
  at net.sf.json.JSONArray._fromCollection(JSONArray.java:1057)
  at net.sf.json.JSONArray.fromObject(JSONArray.java:123)
  at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:105)
  at 
er.rest.format.ERXJSONRestWriter.appendToResponse(ERXJSONRestWriter.java:41)
  at er.rest.routes.ERXRouteResults.generateResponse(ERXRouteResults.java:89)


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to