Beginner |
 |
Joined: Tue Aug 10, 2004 8:59 am Posts: 47
|
I have somehow managed to make hibernate crash with the NPE below. Hibernate tries to carry out the following code:
throw new MappingException("entity pojo class not found: " + entity.getEntityName(), cnfe);
But for some reason the variable "entity" is null. Has anyone got a hint to what I could be doing wrong? Why would the parameter "entity" be null when H3 expects it not to be?
Is this a known bug?
Randahl
Caused by: java.lang.NullPointerException
at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.
java:87)
at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntit
yPersister.java:405)
at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(J
oinedSubclassEntityPersister.java:87)
at org.hibernate.persister.PersisterFactory.createClassPersister(Persist
erFactory.java:58)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
199)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1043)
at dk.rockit.puls.server.hibernate.SessionManager.initialize(SessionMana
ger.java:54)
... 83 more
|
|