org.postgresql.util.PSQLException: The connection attempt failed.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Drux
, 1 year ago
via Stack Overflow by Marc Polizzi
, 10 months ago
The connection attempt failed.
via GitHub by edrdo
, 4 months ago
Connection to localhost:1047 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
via Stack Overflow by hywy
, 1 year ago postgres-service
at org.postgresql.core.PGStream.(
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(
at org.postgresql.jdbc.PgConnection.(
at org.postgresql.Driver.makeConnection(
at org.postgresql.Driver.connect(
at org.apache.catalina.realm.JDBCRealm.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployDescriptor(
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Users with the same issue

9 times, 2 days ago
Once, 5 days ago
Once, 1 week ago
3 times, 2 weeks ago
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.