Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew7kj-0004cl-4I for pgsql-general@arkaria.postgresql.org; Wed, 14 Mar 2018 14:51:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ew7kh-000640-TU for pgsql-general@arkaria.postgresql.org; Wed, 14 Mar 2018 14:51:39 +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.89) (envelope-from ) id 1ew7kh-00063q-E2 for pgsql-general@lists.postgresql.org; Wed, 14 Mar 2018 14:51:39 +0000 Received: from mail-ot0-x234.google.com ([2607:f8b0:4003:c0f::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ew7ke-0000bz-Ne for pgsql-general@postgresql.org; Wed, 14 Mar 2018 14:51:38 +0000 Received: by mail-ot0-x234.google.com with SMTP id v4-v6so338514otj.1 for ; Wed, 14 Mar 2018 07:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgsqlrocket-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=vyOgYBwryKymPWhQh0CVTrCerOWRlGoUzW40MRugrDU=; b=nR2dpb4yGTg3TnWa7qGN8mdwQA4JwqsoQ0MrZXfpCl8yPZhgN6S8a2CJbOvCiG1p63 9GT/w+C7AK73vvjYe2+WLcwxqIn+smGO0LCKRTUM1VM4VTmpMd76WXnXh5lh6oYkGwMZ zdUeqyCdzcvUb6VHAhGrVNsapMlT58/3J/8doNEIIujIyLxHwaJCvgz2earYJu3/zh9w HO/t20Qp6KBPkO1wSeTnAGUdbIxHLpYy4hFfmh2kGI4Fpn/kn/JNu9wzVp7SWbg/HN1W q3GQ3lfRCqk8GUt3l7aGTSd+QexRnfOb9PpB9uawgQKoF5KxccjvA3dj5Aw0dALdjLOK Q56g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=vyOgYBwryKymPWhQh0CVTrCerOWRlGoUzW40MRugrDU=; b=qUtI9y3fI2r5Eq6gCOqHWVVo4FovozxhUZP+vykjzMTlHQiLePvVVolezlS071lx8S IfWVpMkg6UVKVSNhTlkqK+gI5WWZchfYy9t+ZYoaylhNCG7NK1+LS+CoypIJzsBTuhC2 mOVisK30WLLPECLWM3oWDP2XRfZqz0zqHKzDWGHEjzPj4p/2xdKZAT2ehQeo3PuuYaxk FvUSHzu0S31rcMkvKRcMXS8n1X4Lh3oF4Sj01C1B6JhJhaIbX7V4wA5CJQlcBKdMJBU6 UMAXZjrnzPwNXJ5d6w+cTr+g4USeCAGtBovbs/ECb3s/fZTEbft8Fjeq3X2y2xBcFo4K 6Gow== X-Gm-Message-State: AElRT7G6xwfmaysQdFqC68ns/PleymyZwHwOhMaMKTb0mn++5HzyzI2m GIYdeLytCf1vhPpNw7c+hNlPW51xGCY= X-Google-Smtp-Source: AG47ELsClwc/Bs0S2vMR5UmqfwBFL2zsS7tecftRi/TkMsXyRe3K6VljY/U2knK125HdNHseVaeukg== X-Received: by 10.157.17.138 with SMTP id v10mr3029844otf.135.1521039095567; Wed, 14 Mar 2018 07:51:35 -0700 (PDT) Received: from localhost.localdomain ([65.132.155.214]) by smtp.gmail.com with ESMTPSA id s12sm1469270oie.9.2018.03.14.07.51.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 07:51:34 -0700 (PDT) Subject: Re: JDBC connectivity issue To: Adrian Klaver , Postgres General References: <0e087d67-6403-d0c8-c61e-68c674f992f1@pgsqlrocket.com> <1ba83003-3c02-dafe-1056-4e05d791fbc6@pgsqlrocket.com> <0b51cb72-bb1d-dfab-3a35-24c1f0f80b7e@aklaver.com> From: chris Message-ID: <09e943bd-47a5-1413-73a0-78cae26a0636@pgsqlrocket.com> Date: Wed, 14 Mar 2018 08:51:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <0b51cb72-bb1d-dfab-3a35-24c1f0f80b7e@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I believe its Postgresql-9.4.1208.jre7.jar On 03/13/2018 05:48 PM, Adrian Klaver wrote: > On 03/13/2018 04:46 PM, chris wrote: >> I'm sorry that took a few days but I am running; >> >> >> Postgresql-9.4 >> >> and >> >> jre7.jar > > What we are looking for is the JDBC driver you are using? > >> >> Thanks in advance. >> >> >> On 03/08/2018 02:30 PM, chris wrote: >>> Given that the syntax looks correct for the url, how would we go >>> about debugging that it's not seeing the comma? >>> >>> >>> On 03/08/2018 02:27 PM, Adrian Klaver wrote: >>>> On 03/08/2018 01:12 PM, chris wrote: >>>>> Hi, >>>>> >>>>> I have a JDBC temping to connect to 2 postgres nodes in a hot >>>>> standby configuration. Running postgres 9.4 on centos6. >>>>> >>>>> What we are trying to accomplish is in an event of a failover, to >>>>> first try to connect to the master. If that fails to then reach >>>>> out to the standby. >>>>> >>>>> I looked online and found the suggested way to do this, but it's >>>>> not working. >>>>> >>>>> This is the JDBC line we have: >>>>> >>>>> /jdbc.url=jdbc:postgresql://10.16.10.12:5432,10.16.10.13:5432/app_db/ >>>>> >>>>> Here is the error we are getting:/ >>>>> / >>>>> >>>>> /2018-03-07 13:54:36, 994 ERROR:com.zaxxer.hikari.util.PropertyElf >>>>> - failed to set properly port number on target class >>>>> org.postgresql.ds.PGSimpleDataSource >>>>> java.langNumberFormatException:for input string: >>>>> "5432,10.16.10.13:5432"/ >>>> >>>> Lets try that again: >>>> >>>> To me it looks like whatever code you are using is trying to use >>>> "5432,10.16.10.13:5432" as the port number for 10.16.10.12. In >>>> other words it is not seeing the ',' as a separator for the two IP's'. >>>> >>>> Time to clean the glasses:) >>>> >>>>> >>>>> It looks like the first IP address has disappeared or is not set >>>>> right./ >>>>> / >>>>> >>>>> Thanks in advance for the help. >>>>> >>>>> >>>>> // >>>>> >>>>> >>>> >>>> >>> >> >> > >