# org.hibernate.engine.jdbc.internal.JdbcServicesImpl - HHH000342: Could not obtain connection to query metadata : This ResultSet is closed

**URL:** <https://discourse.hibernate.org/t/org-hibernate-engine-jdbc-internal-jdbcservicesimpl-hhh000342-could-not-obtain-connection-to-query-metadata-this-resultset-is-closed/1281>\
**Category:** Hibernate ORM\
**Created:** [August 25, 2018, 3:07pm UTC](https://discourse.hibernate.org/t/org-hibernate-engine-jdbc-internal-jdbcservicesimpl-hhh000342-could-not-obtain-connection-to-query-metadata-this-resultset-is-closed/1281 "2018-08-25T15:07:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Kartik\_ARG](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Kartik\_ARG](https://discourse.hibernate.org/u/Kartik_ARG)\
**Post date:** [November 9, 2018, 2:26pm UTC](https://discourse.hibernate.org/t/org-hibernate-engine-jdbc-internal-jdbcservicesimpl-hhh000342-could-not-obtain-connection-to-query-metadata-this-resultset-is-closed/1281/5 "2018-11-09T14:26:53Z")

</div>

Hi Vlad,

Finally today I have resolved this issue!  
The problem was with the version of the postgresql installed in my local machine.  
It was v10.0.And the dependency postgres jar downloaded by pom.xml was 9.1.

Today I have uninstalled it completely and installed v9.6 and I didn’t get this exception.  
It worked.  
Thank You. 🙂

---

_[View the full topic](https://discourse.hibernate.org/t/org-hibernate-engine-jdbc-internal-jdbcservicesimpl-hhh000342-could-not-obtain-connection-to-query-metadata-this-resultset-is-closed/1281)._
