-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problem with query cache
PostPosted: Thu Aug 25, 2005 2:02 am 
Newbie

Joined: Fri Feb 11, 2005 7:20 am
Posts: 18
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

_________________
Thanks in advance,
Lakshmi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 25, 2005 7:50 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Upgrade ot latest version, I think, you use an old one.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.