I have just updated to Hibernate 4.0 and am seeing the warning message :
HHH000387: ResultSet's statement was not registered
in my log files. What does this mean, and should I be worried?
I would not worry too much. In any case it looks like it is not in API's users hands to avoid this message. Logging is done in the org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl. According documentation:
The main function of a JdbcResourceRegistry is to make sure resources get cleaned up.
Short look to the code tells, that such a message is logged in two situations:
Looking at the source for the JdbcResourceRegistryImpl
class that throws this error, I personally think having it log at WARN level is excessive; it should be INFO at most, unless there's a way to have all Statement
s implicitly registered as part of a Hibernate/framework configuration.
It's not clear to me why a Statement
should be registered, but if it's only a concern of the inner workings of Hibernate then routinely warning API users about it is a bug, right?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With