[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1065?page=c...
]
Steve Ebersole closed HHH-1065.
-------------------------------
Closing stale resolved issues
user provided connection not usable by default due to agressive
release changes
-------------------------------------------------------------------------------
Key: HHH-1065
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1065
Project: Hibernate Core
Issue Type: Bug
Components: core
Environment: cvs head of 2005-19-10
Reporter: Stephan Fudeus
Assignee: Steve Ebersole
Fix For: 3.1
When I'm using the UserSuppliedConnectionProvider calling userConnection() on
JDBCContext leads to
"java.lang.UnsupportedOperationException: The user must supply a JDBC
connection" even when I supplied a connection creating the session.
It seems that agressive release defaults to true even on user-supplied connections, so
JDBCContext.userConnection() tries to return
getFactory().getConnectionProvider().getConnection() instead of the locally referenced
(user supplied) connection.
Relevant stacktrace:
java.lang.UnsupportedOperationException: The user must supply a JDBC connection
at
org.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:30)
at org.hibernate.jdbc.JDBCContext.userConnection(JDBCContext.java:114)
at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:366)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira