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

Stack Overflow | Drux | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android not building on OSX

    GitHub | 2 years ago | ljbade
    java.lang.RuntimeException: java.net.UnknownHostException: services.gradle.org
  2. 0

    Network hickup causes exception

    GitHub | 2 years ago | giray
    cloudsync.exceptions.CloudsyncException: Unexpected error during remote search of folder 'Backup/Docs backup 20021107/unix/1.0userlevel-linux'
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Spring Integration with JMS + ActiveMQ: Messages remain in JDBC Message Store after reconnect

    Stack Overflow | 2 years ago
    org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.integration.jms.JmsSendingMessageHandler#0]; nested exception is org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://my.url.net:61616. Reason: java.net.UnknownHostException: my.url.net
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.UnknownHostException

    postgres-service

    at java.net.AbstractPlainSocketImpl.connect()
  2. Java RT
    Socket.connect
    1. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    2. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    3. java.net.Socket.connect(Socket.java:589)
    3 frames
  3. PostgreSQL JDBC Driver
    ConnectionFactory.openConnection
    1. org.postgresql.core.PGStream.<init>(PGStream.java:64)
    2. org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:150)
    3. org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
    3 frames
  4. org.postgresql.jdbc
    PgConnection.<init>
    1. org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:211)
    1 frame
  5. PostgreSQL JDBC Driver
    Driver.connect
    1. org.postgresql.Driver.makeConnection(Driver.java:407)
    2. org.postgresql.Driver.connect(Driver.java:275)
    2 frames
  6. Glassfish Core
    HostConfig$DeployDescriptor.run
    1. org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:661)
    2. org.apache.catalina.realm.JDBCRealm.startInternal(JDBCRealm.java:724)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
    4. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5054)
    5. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
    6. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
    7. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
    8. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    9. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:596)
    10. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1805)
    10 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames