Menu

#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

     
  • VENDHAN

    VENDHAN - 2009-11-16
    • assigned_to: nobody --> aalmiray
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.