Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZK7vk-0000ii-OU for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jul 2015 16:40:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZK7vk-0001yE-Ae for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jul 2015 16:40:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZJzl2-0005M2-OV for pgsql-bugs@postgresql.org; Tue, 28 Jul 2015 07:57:04 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZJzl1-0006FY-8m for pgsql-bugs@postgresql.org; Tue, 28 Jul 2015 07:57:04 +0000 MIME-Version: 1.0 Subject: BUG #13521: refused connection to host and port To: pgsql-bugs@postgresql.org From: adfuser321@gmail.com Date: Tue, 28 Jul 2015 07:56:29 +0000 Message-ID: <20150728075629.25045.4838@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.1 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13521 Logged by: guestUser Email address: adfuser321@gmail.com PostgreSQL version: 9.4.4 Operating system: Linux Description: Hi, Trying to connect to Postgresql database running on remote machine using jdeveloper. Using 8.1 jdbc driver and exception noticed is below, tried latest and old driver for all the drivers it gives same error. Test failed: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Exception: java.net.ConnectException: Connection refused Stack Trace: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.(Socket.java:375) at java.net.Socket.(Socket.java:189) at org.postgresql.core.PGStream.(PGStream.java:60) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:116) at org.postgresql.jdbc2.Jdbc2Connection.(Jdbc2Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:369) at org.postgresql.Driver.connect(Driver.java:245) at oracle.jdeveloper.db.adapter.AbstractConnectionCreator.getConnection(AbstractConnectionCreator.java:172) at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at oracle.jdevimpl.db.extension.DatabaseConnectionHook$ConnectionType$1.invoke(DatabaseConnectionHook.java:205) at $Proxy2.getConnection(Unknown Source) at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:331) at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:260) at oracle.jdeveloper.db.DatabaseConnections.testConnection(DatabaseConnections.java:1077) at oracle.jdevimpl.db.panels.ConnectionEditorPanel$ConnectionTester.doWork(ConnectionEditorPanel.java:749) at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161) at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655) at java.lang.Thread.run(Thread.java:662) End of Stack Trace -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs