cancel
Showing results for 
Search instead for 
Did you mean: 

Application Crashes when closing a PreparedStatement

Former Member
2,974

Hi,

I have a scenario in my solution, that when the user clicks on a save button the transaction is committed and the connection is closed.

At a given time if we try to close an unused preparedStatement (that depends on the closed connection) to release resources the application crashes without "telling" us that the connection is closed.

The resources that are linked on a connection shouldn't be released after closing the connection? Or when trying to close the preparedStatement after the connection an exception should occur?

tks,

Renato Pedrosa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Renato,

Yes, all resources owned by a Connection are released when the Connection is released. I think we have a bug that is causing your application to crash when a PreparedStatement from a released Connection is closed. We will fix that. A ULjException will be thrown if you try to close a PreparedStatement owned by a released Connection.

Former Member
0 Kudos

Tks Andy!!

Do you have an estimated time to fix this issue?

Former Member
0 Kudos

In general I cannot commit to a time for a fix unless someone can convince me that this bug cannot be worked around.

Answers (0)