ERRest, JSON, and Joda DateTime objects
ERRest, JSON, and Joda DateTime objects
- Subject: ERRest, JSON, and Joda DateTime objects
- From: Matthew Ness <email@hidden>
- Date: Wed, 19 Oct 2011 14:08:39 +1100
- Importance: Normal
Hello,
One of my client applications has switched from XML to JSON for GET reads
of a number of EOs through ERRest.
I was getting an exception when the JSON response is being written on a
number of those EOs:
'''
ERROR er.extensions.appserver.ERXApplication - Handling
exception:java.lang.NoSuchMethodException: Property 'cachable' has no
getter method
NoSuchMethodException: Property 'cachable' has no getter method
'''
I started eliminating the ERXKeys in the ERXKeyFilter used in that
particular call to see if a particular key/attribute/relationship was
responsible.
Some of those EOs have joda DateTime attributes using the jodatDateTime
Prototype, and they were the culprits. Well, the problem went away when I
excluded those keys :)
Does/did anyone else have this problem?
I ended up creating a couple of custom ERXKeys for passing those attribute
values as a different java type.
Cheers, and apologies if this is a solved problem.
Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden