This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes proxy handle is no longer valid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "proxy handle is no longer valid" Watch "proxy handle is no longer valid" New topic

proxy handle is no longer valid

Kevin Sheng

Joined: Jun 26, 2012
Posts: 13
When closing hibernate session, I got an exception. I am using Hibernate 4.1.7-Final. I searched the web to no avail.

Can anyone shed light on this issue? Thanks/Kevin

org.hibernate.HibernateException: proxy handle is no longer valid
at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.errorIfInvalid(
at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(
at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(
at $Proxy9.getWrappedObject(Unknown Source)
at org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl.close(
at org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl.cleanup(
at org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl.close(
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.close(
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.close(
at org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.close(
at org.hibernate.internal.SessionImpl.close(
at com.shengtech.docm.entitymanager.StoredProcedureManager.runStoredProcedure(
at com.shengtech.docm.entitymanager.StoredProcedureManager.main(
I agree. Here's the link:
subject: proxy handle is no longer valid
It's not a secret anymore!