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.  [ 1 post ] 
Author Message
 Post subject: No persister for java.lang.Boolean
PostPosted: Sun Jan 23, 2005 8:20 am 
Newbie

Joined: Sun Jan 23, 2005 7:59 am
Posts: 1
I am using Hibernate 2.1.7 with Mysql 4.1 on Windows XP. I am using Tomcat 5.0.19 as the servlet container.

I get the following error
java.lang.MappingException: No persister found for java.lang.Boolean
Strangely I am not even using any boolean variable for persistence in my mapping files. I do not get the above error when I try and run the code without using servlet container via command line.

StackTrace:
net.sf.hibernate.MappingException: No persister for: java.lang.Boolean
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)
at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2686)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2693)

at net.sf.hibernate.impl.SessionImpl.isUnsaved(SessionImpl.java:1090)
at net.sf.hibernate.impl.SessionImpl.nullifyTransientReferences(SessionImpl.java:1036)
at net.sf.hibernate.impl.SessionImpl.nullifyTransientReferences(SessionImpl.java:1022)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:927)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(Session


I am using Sun JDK 1.4.2 for the application.

I tried to look in the previous posts, but couldn't get a suitable hint on the problem. It will be great if someone can point towards the problem.

Thanks

Regards
Sunil


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

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.