Following exception is occur while using the json for converting the json to bean..
Exception in
thread "main" net.sf.json.JSONException: java.lang.NoSuchMethodException: Property 'name' has no setter method
at net.sf.json.util.PropertySetStrategy$DefaultPropertySetStrategy._setProperty(PropertySetStrategy.java:69)
at net.sf.json.util.PropertySetStrategy$DefaultPropertySetStrategy.setProperty(PropertySetStrategy.java:60)
at net.sf.json.JSONObject.setProperty(JSONObject.java:1547)
at net.sf.json.JSONObject.toBean(JSONObject.java:364)
at net.sf.json.JSONObject.toBean(JSONObject.java:229)
at Json.json2bean(Json.java:53)
at Json.main(Json.java:13)
Caused by: java.lang.NoSuchMethodException: Property 'name' has no setter method
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1782)
at net.sf.json.util.PropertySetStrategy$DefaultPropertySetStrategy._setProperty(PropertySetStrategy.java:67)
... 6 more
can any one know how to resolve this..