Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Query runner does not work and error occurs when running a query



Query runner does not work and error occurs when running a query. This occurs when using the Tomcat application server.

Error Messages

There was a problem performing a database query: Database-General Problem encountered when getting connection for database pegadata 0 08003 This connection has been closed.
DatabaseException caused by prior exception: org.postgresql.util.PSQLException: This connection has been closed.
| SQL Code: 0 | SQL State: 08003

Steps to Reproduce

Not Applicable

Root Cause

A bad connection to the database is used.


As a local-change, restart the node.

To prevent this from occurring again, include the following attribute in to the Resource element for the jdbc/PegaRULES connection in the context.xml file:



Published December 27, 2018 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us