pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: Re: [EXTERNAL] Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)
Date: Thu, 24 Mar 2022 15:36:33 -0600
Message-ID: <f4b74374-28d8-eeae-fb0a-4c4c1d3b7b55@gmail.com> (raw)
In-Reply-To: <BY3PR09MB8627D40E10069992D4EE46E1C8199@BY3PR09MB8627.namprd09.prod.outlook.com>
References: <BY3PR09MB862794CBC601C194B6332FB7C8179@BY3PR09MB8627.namprd09.prod.outlook.com>
	<YjpSkOHebto4hoVm@paquier.xyz>
	<BY3PR09MB86271BB460206972302F1F96C8179@BY3PR09MB8627.namprd09.prod.outlook.com>
	<YjpbP/6q2q48NKaZ@paquier.xyz>
	<CADK3HHLkWr8tTP7AC9hWdzOK12srAvaS6_4axXdhEY-S7vec-w@mail.gmail.com>
	<BY3PR09MB86276FF5240D76E14329EB1CC8199@BY3PR09MB8627.namprd09.prod.outlook.com>
	<CAH7T-apqxqAR6tF=By+gZE9DDSmZ=qWfr8r0vsDHEi0-3Md65Q@mail.gmail.com>
	<CADK3HHLZs3DGxaBPyqvnsGRkpniiqS1KLGP_6A3G75LtRxo1Gw@mail.gmail.com>
	<BY3PR09MB8627D40E10069992D4EE46E1C8199@BY3PR09MB8627.namprd09.prod.outlook.com>



> public static void main(String[] args)  {
>
> PostgreSQLJDBC app = new PostgreSQLJDBC();
>
> int idx = 1;
>
> System.out.println("About to try connecting to postreSQL database ...");
>
> Connection db_con = app.connect();
>
> if (db_con == null) {
>
> System.out.println("Unable to connect to the database ... check the 
> logs for the exception message");
>
> }
>
> else {
>
> System.out.println("Successfully connected to the database!!  Try 
> running a query");
>
> }
>
> System.out.println("Inside main - about to enter a long loop");
>
> while (true) {
>
> System.out.printf("Looping a set number of times ... Loop Iteration:  
> %d%n", idx);
>
> idx++;
>
> try {
>
> TimeUnit.SECONDS.sleep(5);
>
> }
>
> catch (Exception e) {
>
> System.out.println(e.getMessage());
>
> }
>
> }
>
> }
>
> }
>
I think this while loop is not going to exit.
Maybe while (idx < 1000)

view thread (30+ messages)  latest in thread

Message-ID: <f4b74374-28d8-eeae-fb0a-4c4c1d3b7b55@gmail.com>
Permalink:  ../f4b74374-28d8-eeae-fb0a-4c4c1d3b7b55@gmail.com/
Also on:    postgresql.org/message-id/f4b74374-28d8-eeae-fb0a-4c4c1d3b7b55@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: robjsargent@gmail.com
  Subject: Re: [EXTERNAL] Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)
  In-Reply-To: <f4b74374-28d8-eeae-fb0a-4c4c1d3b7b55@gmail.com>
  References: <BY3PR09MB862794CBC601C194B6332FB7C8179@BY3PR09MB8627.namprd09.prod.outlook.com> <YjpSkOHebto4hoVm@paquier.xyz> <BY3PR09MB86271BB460206972302F1F96C8179@BY3PR09MB8627.namprd09.prod.outlook.com> <YjpbP/6q2q48NKaZ@paquier.xyz> <CADK3HHLkWr8tTP7AC9hWdzOK12srAvaS6_4axXdhEY-S7vec-w@mail.gmail.com> <BY3PR09MB86276FF5240D76E14329EB1CC8199@BY3PR09MB8627.namprd09.prod.outlook.com> <CAH7T-apqxqAR6tF=By+gZE9DDSmZ=qWfr8r0vsDHEi0-3Md65Q@mail.gmail.com> <CADK3HHLZs3DGxaBPyqvnsGRkpniiqS1KLGP_6A3G75LtRxo1Gw@mail.gmail.com> <BY3PR09MB8627D40E10069992D4EE46E1C8199@BY3PR09MB8627.namprd09.prod.outlook.com> <f4b74374-28d8-eeae-fb0a-4c4c1d3b7b55@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox