• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERRest, JSON, and Joda DateTime objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Building framework branches with Hudson
  • Next by Date: EOF validation messages questions
  • Previous by thread: Re: EOF Boot Camp and WOWODC 2012
  • Next by thread: EOF validation messages questions
  • Index(es):
    • Date
    • Thread