Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQgOx-0006fF-HL for pgsql-jdbc@arkaria.postgresql.org; Tue, 02 Feb 2016 19:14:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQgOw-0003cK-LG for pgsql-jdbc@arkaria.postgresql.org; Tue, 02 Feb 2016 19:14:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQgOw-0003c3-3V for pgsql-jdbc@postgresql.org; Tue, 02 Feb 2016 19:14:10 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aQgOs-0006cN-6y for pgsql-jdbc@postgresql.org; Tue, 02 Feb 2016 19:14:08 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aQgOo-0008T9-9K for pgsql-jdbc@postgresql.org; Tue, 02 Feb 2016 20:14:02 +0100 Received: from ppp-46-244-208-209.dynamic.mnet-online.de ([46.244.208.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2016 20:14:02 +0100 Received: from spam_eater by ppp-46-244-208-209.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2016 20:14:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Unable to connect to 9.5 via JDBC driver 1207 Date: Tue, 2 Feb 2016 20:13:49 +0100 Lines: 52 Message-ID: References: <1454432904.2165.6.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-46-244-208-209.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org As I said: by simply switching to the previous driver, everything was fine. It works fine with JDBC connections to localhost, but not to a remote server (psql was fine) I had also one user of SQL Workbench/J who reported the same problem and after switching to 1206 the problem went away for him as well. Thomas Dave Cramer schrieb am 02.02.2016 um 19:57: > In this case there are no tcp connections allowed in pg_hba.conf. > > java by default only connects to tcp connections. psql will connect to local socket in the example above > > try psql -h localhost ... to see the same results > > Dave Cramer > > davec@postgresintl.com > www.postgresintl.com > > On 2 February 2016 at 13:54, Thomas Kellerer > wrote: > > rob stone schrieb am 02.02.2016 um 18:08: > > Hello, > > I downloaded the 9.5 release as Debian packages and everything is > working as intended except for obtaining a connection via the JDBC > driver. > > org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host > "127.0.0.1", user "timeman", database "timemanager", SSL off > at > > > I had the same problem, I could only resolve it by switching back to 1206 > > > > > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > > -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc