Exception in thread "main" java.lang.reflect.InvocationTargetException: Cannot set y
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1019)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:456)
at BeanUtilsDemo.main(BeanUtilsDemo.java:13)
Caused by: java.lang.NoSuchMethodException: Property 'y' has no setter method in class 'class BeanUtilsData'
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2138)
at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1957)
at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:2064)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1017)
... 2 more