-->
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: net.sf.hibernate.AssertionFailure: cannot cache a reference
PostPosted: Wed Oct 22, 2003 3:10 am 
Newbie

Joined: Wed Oct 22, 2003 3:05 am
Posts: 9
to an object with a null id.

i have a thursday deadline. what is going on? i searche for this in the archives but found nothing.

we have been using hibernate 2.0.3, but i just switched to 2.1 because i wanted to use createSqlQuery, now, i am getting this exception.




23:57:47,321 [tcpConnection-9090-0] ERROR AssertionFailure:20 - An AssertionFailure occured - this may indicate a bug in Hibernate
net.sf.hibernate.AssertionFailure: cannot cache a reference to an object with a null id
at net.sf.hibernate.type.EntityType.disassemble(EntityType.java:89)
at net.sf.hibernate.impl.CacheEntry.disassemble(CacheEntry.java:36)
at net.sf.hibernate.impl.CacheEntry.<init>(CacheEntry.java:27)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:26)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2278)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2234)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2178)
at com.olt.waf.db.SessionFactory.closeThreadSession(SessionFactory.java:108)
at com.olt.waf.servlet.FacadeEntryServlet.doGet(FacadeEntryServlet.java:240)
at com.olt.waf.servlet.FacadeEntryServlet.doPost(FacadeEntryServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 22, 2003 3:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
So .... do you have a reference to an object with a null id?

Why not put a break point just before the assertion and have a look at exactly why the assertion fails...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 22, 2003 4:32 am 
Newbie

Joined: Wed Oct 22, 2003 3:05 am
Posts: 9
i will do that.

but, i am not getting this failure when i switch to 2.0.3. it is exactly the same application.

everything works fine with 2.0.3


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.