Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi talend community,
I am getting the following error
Exception in component tDBConnection_5 (testconnection)
org.postgresql.util.PSQLException: The connection attempt failed.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
at org.postgresql.Driver.makeConnection(Driver.java:454)
at org.postgresql.Driver.connect(Driver.java:256)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at moonfare.testconnection_0_1.testconnection.tDBConnection_5Process(testconnection.java:1428)
at moonfare.testconnection_0_1.testconnection.runJobInTOS(testconnection.java:1962)
at moonfare.testconnection_0_1.testconnection.main(testconnection.java:1570)
Caused by: java.net.UnknownHostException: XXXXXXXXXXXXXXXXX
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.postgresql.core.PGStream.<init>(PGStream.java:70)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:91)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)
... 9 more
Could you please advise?
Thank you in advance for your help
Hi,
Could you please check the below link?
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Hi Nikhil,
Thanks for getting back to me. Unfortunately I have not been able to solve the issue. I am still getting the same error. When I test the connection the result is "Connection successful" but when i run the job I constantly get connection to db refused.
Any ideas?
Best,