We're updating the issue view to help you get more done. 

Connection is Closed after commit

Description

I have a hibernate session create with standard options.

Execute multiple select and inserts with prepareStatement.

Next is executed :
session.connection.commit();

And in next try execute a new query with prepareStatement that give the error:
java.sql.SQLException: You can't operate on a closed Connection!!!

I don't close the session after commit.

It's work equal if I user HQL.

If I use Hibernate 5.1.10 work fine, and if I use 5.2.10 and remove hibernate-c3p0-5.2.10.Final.jar work fine too.

With all jar of 5.2.10 get the error.

Environment

None

Status

Assignee

Unassigned

Reporter

sopadespachar

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.1.10

Affects versions

5.2.10

Priority

Critical