File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!