#101 NoSuchMethodException while converting a JSONObject to bean

open
aalmiray
None
5
2009-11-16
2009-11-16
VENDHAN
No

Consider a bean containing java.sql.Timestamp property.
When this bean is converted to JSONObject and then back to bean using JSONObject.toBean(jsonObj, beanClass), NoSuchMethodException occurs.

The above situation happens only if the bean has a setter method for the Timestamp property.

P.S: Attached the Testcase for your reference.

Thanks
Ezhil

Discussion

  • VENDHAN
    VENDHAN
    2009-11-16

    TestCase to test the above scenario

     
    Attachments
  • VENDHAN
    VENDHAN
    2009-11-16

    • assigned_to: nobody --> aalmiray