I am trying to do a simple query in the database using Object/Relational Mapping wiht iBatis SqlMapClientFactoryBean and seting it up in Spring applicationContext.xml
and i am getting the following error Message
Error creating bean with name 'sqlMapClient' defined in (no description): Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Property 'dataSource' is not writable in bean class [org.springframework.orm.ibatis.SqlMapClientFactory Bean] Exception in thread "main" java.lang.NullPointerException at com.prac.elh.client.ELHClient.hpService(ELHClient. java:22) at com.prac.elh.client.ELHClient.main(ELHClient.java: 946)
On trying to locate the hpService bean, i get the above mentioned error
Please if someone can guide me on what is that i am doing wrong it would be very helpful Also i you have had a similar problem please share your experience