Accessing Infor CloudSuite DataLake from RPG

Scott Klement's open source interface to using JDBC database drivers from RPG.
Post Reply
Posts: 1
Joined: Mon Jul 25, 2022 11:03 pm

Accessing Infor CloudSuite DataLake from RPG

Post by mcortilla »


I am trying to access Infor CloudSuite DataLake (hosted in Amazon Cloud) from a RPG program.
I have used as a template the MSSQLTEST RPG source program, using a specific JDBC driver provided by Infor (Infor Compass JDBC Driver), which I have copied to a IFS folder, and I change the CLASSPATH accordingly in the program.

The connection parameters I use are the following:

conn = JDBC_ConnProp('com.infor.idl.jdbc.Driver'
: prop );

When debugging, I see the issue comes when the JDBCR4 service program issues this command:

temp = Driver_ConnProp( drv : url: prop );

Here the program stays for a minute approximately (the status message says "Connecting to the database...") and afterwards, as the temp variable is *NULL, it finishes saying "Data Lake is not available".

Important to know that this driver uses OAuth2.0 authentication (it does not use the classical User and password), and the credentials file is stored in the same folder where the .jar driver is located.

I have redirected the STDOUT and STDERR to QSYSPRT, and the first log lines contain this:

Exception in thread "main" java.sql.SQLException: Data Lake is not available
at com.infor.idl.jdbc.Driver.connect(
Caused by: java.util.concurrent.CompletionException: com.infor.dmp.common.query.client.QueryClientAuthenticationException: Unable
perform authentication
at java.util.concurrent.CompletableFuture.encodeThrowable(
at java.util.concurrent.CompletableFuture.completeThrowable(
at java.util.concurrent.CompletableFuture$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

The question is: can the JDBCR4 program use OAuth2.0 authentication ?
I expect the Compass Driver uses the credentials file (it's a .ionapi file), but I am not sure it works.

In this .ionapi file there are two URLs that the driver must connect to:
https://mingle-sso.eu1.inforcloudsuite. ... TO_TRN/as/

I have asked the Infrastructure team to allow traffic from the system to those addresses, and theoretically it is allowed now.
Is there any way to know if the system can really access to them ?

Thanks in advance !

Post Reply