Re: [EXTERNAL] Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: [EXTERNAL] Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)
Date: 2022-03-24 21:36:33
Message-ID: f4b74374-28d8-eeae-fb0a-4c4c1d3b7b55@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> 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)

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2022-03-25 13:17:09 Re: [EXTERNAL] Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)
Previous Message McDermott, Becky 2022-03-24 21:12:36 RE: [EXTERNAL] Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)