Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXV8M-0007kb-VD for pgsql-jdbc@arkaria.postgresql.org; Thu, 24 Mar 2022 21:36:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nXV8K-0004XH-2j for pgsql-jdbc@arkaria.postgresql.org; Thu, 24 Mar 2022 21:36:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXV8J-0004X8-LN for pgsql-jdbc@lists.postgresql.org; Thu, 24 Mar 2022 21:36:39 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nXV8H-00018d-EV for pgsql-jdbc@lists.postgresql.org; Thu, 24 Mar 2022 21:36:38 +0000 Received: by mail-pf1-x431.google.com with SMTP id y10so1616005pfa.7 for ; Thu, 24 Mar 2022 14:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to; bh=tso+5TReF7/GTNAmKrlZDqxaLTxGEAwHGc9jOmRwBPU=; b=lIcdFJJ+NLHqmQ+Vd9ae1U+CzMo06O5gIaSXZpv6KjHR4Lbm09hjlIqFa++HwzgjBm 3LVZIyAuj7pT9o4ZE9isq47IAJ9i6WtfyFyknNXuTjFf0UXxwCfzcbhPFXDWRYNAY2Tj y8tTP6q2wIYuabC9T+hCpvBWDbnE6XKVqMhIvaQxUv2B0U7eCc5jqsuKbJHap9Q1LS7o 5snzlsqr0iq8lQfPdvGg9GJRbBzEeDnmHNZgllt9PlRx3gLHmengjpK+BoxMM0S75v72 nx8fdXfyFOeHDJfCRzPyNc2fq2qm6u2PKtzHi2ZdqLopytVQRHfoT5wEPIHes47nUzQV 3tbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=tso+5TReF7/GTNAmKrlZDqxaLTxGEAwHGc9jOmRwBPU=; b=VZGhDxxPv364hm+z7OYx0V84DidoEVpagKrIEVbFewufBB/y/bF1iH+PqpVBm6Wka3 CgF6QjyigaaFeFJOTbCw1G8ywISH1SmjPAzaUEIioqX9HKOaIirKMYAYLc2GkvCbl4Th nt6ltH2hRKiFPNHBRqE5ZzwxC7lhnDQ+t4J++edPgRz3tMmPzT6nI2LJFb2lvW0E/2Eb rNGv/yaLLdsVUqTONWzhwXCdhkfAVX1/+/P5PeHtbxKcOBm4Eb0ZgiRqm0y3uU0wqZPq DEMf8lNHsjKutaP7l9fwtNOIbS4FG6o/S1ZUSOx8+KVJZopKbd6UUZ9VTLaGiU/d+NvT HQsA== X-Gm-Message-State: AOAM530TuggKQmJJm+lJxLV7nCD2nfqYv6Uk4jzOx7/YgKNTUwU3b4Bn PmK30UpJm8PiY/+jwXSlq27mDVHuPPI= X-Google-Smtp-Source: ABdhPJy4BizdwFu51YJsLcn/DyHkFp8Q9qMBsngivg9iK1RPG5frYPRDWl/oUycvsADDzfvWi2rHiQ== X-Received: by 2002:a63:3e01:0:b0:386:3916:182f with SMTP id l1-20020a633e01000000b003863916182fmr4463791pga.435.1648157795808; Thu, 24 Mar 2022 14:36:35 -0700 (PDT) Received: from [10.128.71.194] ([155.98.131.2]) by smtp.gmail.com with ESMTPSA id hg5-20020a17090b300500b001c795eedcffsm5788530pjb.13.2022.03.24.14.36.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Mar 2022 14:36:35 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------XvZNt3ePvo40kR51ikmVCVxc" Message-ID: Date: Thu, 24 Mar 2022 15:36:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [EXTERNAL] Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256) Content-Language: en-CA To: pgsql-jdbc@lists.postgresql.org References: From: Rob Sargent In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------XvZNt3ePvo40kR51ikmVCVxc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > 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) --------------XvZNt3ePvo40kR51ikmVCVxc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

 

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)

--------------XvZNt3ePvo40kR51ikmVCVxc--