-->
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.  [ 3 posts ] 
Author Message
 Post subject: hib 2.1beta5 with oscache and disk caching enabled problem
PostPosted: Fri Oct 31, 2003 8:42 am 
Beginner
Beginner

Joined: Fri Aug 29, 2003 10:01 am
Posts: 34
Location: florence, italy
I am using happily oscache with hib 2.1beta5 with memory caching (in a non clustered environment). But if I turn on DiskPersistenceListener, with say a simple query

from tob in class com.twproject.resource.Operator where tob.id in (?)

with value "1" and type = net.sf.hibernate.type.StringType, I get

Quote:
Caused by: net.sf.hibernate.MappingException: No persister for: java.lang.String
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:331)
at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2659)
at net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
at net.sf.hibernate.type.EntityType.isDirty(EntityType.java:147)
at net.sf.hibernate.type.TypeFactory.findDirty(TypeFactory.java:225)
at net.sf.hibernate.persister.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:248)
at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2414)
at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2372)
at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2248)
at net.sf.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:1785)


I am unable to see the relation of the exception with the disk cache. Am I the only one with this problem ?


Top
 Profile  
 
 Post subject: sense of disk caching
PostPosted: Mon Nov 03, 2003 4:27 am 
Beginner
Beginner

Joined: Fri Aug 29, 2003 10:01 am
Posts: 34
Location: florence, italy
actually this lead me tho think about whether it makes sense to have a disk cache with database persistence, and hence there is a thread on the oscache mailing list:
http://sourceforge.net/mailarchive/forum.php?forum_id=4754


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 4:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Ah are you absolutely certain that this is the real underlying exception? have a look to see if you are somehow swallowing an earlier exception, or if there is something else earlier in the log.

If you think this really is correct, please add something to JIRA so I can take a look, but please make sure I can run it easily and immediately see the error.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.