Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
I have enabled second level cache and query cache.
Used the following to enable the query cache
query.setCacheable(true).setCacheMode CacheMode.NORMAL). setCacheRegion("Simple.cache").list();
But i am getting the following error
Building SessionFactory failed.
java.lang.NullPointerException
at org.hibernate.cfg.Configuration.setCacheConcurrencyStrategy(Ljava.lan
g.String;Ljava.lang.String;Ljava.lang.String;)V(Configuration.java:1469)
at org.hibernate.cfg.Configuration.parseSessionFactory(Lorg.dom4j.Elemen
t;Ljava.lang.String;)V(Configuration.java:1290)
at org.hibernate.cfg.Configuration.doConfigure(Lorg.dom4j.Document;)Lorg
.hibernate.cfg.Configuration;(Configuration.java:1266)
at org.hibernate.cfg.Configuration.doConfigure(Ljava.io.InputStream;Ljav
a.lang.String;)Lorg.hibernate.cfg.Configuration;(Configuration.java:1233)
at org.hibernate.cfg.Configuration.configure(Ljava.lang.String;)Lorg.hib
ernate.cfg.Configuration;(Configuration.java:1161)
at org.hibernate.cfg.Configuration.configure()Lorg.hibernate.cfg.Configu
ration;(Configuration.java:1147)
I am using hibernate3.0