Hi,
I have created one Sample Hibernate application just to save one record in database and that was working fine. But since i have added below line of code in my Configuration file i.e. hibernate.cfg.xml, it start giving error.
<!-- Caching Implementation -->
Code:
<property name="hibernate.cache.use_second_level_cache">true</property>
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
It is not able to initialize the transcation and thats why giving NullPointerException when i try to commit the transcation.
I am using Hibarnate 3.3. As EhCache is by default in this version, thats why problem is coming or due to any other reason.
Thanks