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 ?