Connection to AS400/DB2 database using JDBC Driver

LogicalObserverLogicalObserver Member Posts: 4 Learner I
Good day,

I am trying to connect to my AS400/DB2 databased using the Jt400 10.5.jar driver.

I am able to successfully connect (using test connection), however when running a simple SQL script (Read database operator) I am getting the below error:

  • Exception: java.lang.NullPointerException
  • Message: null
  • Stack trace:
  • com.rapidminer.operator.Operator.execute(
  • com.rapidminer.operator.execution.SimpleUnitExecutor.execute(
  • com.rapidminer.operator.ExecutionUnit$
  • com.rapidminer.operator.ExecutionUnit$
  • Method)
  • com.rapidminer.operator.ExecutionUnit.execute(
  • com.rapidminer.operator.OperatorChain.doWork(
  • com.rapidminer.operator.Operator.execute(
  • com.rapidminer.Process.executeRoot(
  • com.rapidminer.Process.lambda$executeRootInPool$5(
  • java.util.concurrent.ForkJoinTask.doExec(
  • java.util.concurrent.ForkJoinPool$WorkQueue.runTask(
  • java.util.concurrent.ForkJoinPool.runWorker(
Any assistance would be greatly appreciated.

Kind regards

Best Answer


  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn

    can you try it another Java based SQL client (SQuirrel SQL, SQL Workbench/J) with the same settings? 

  • jwpfaujwpfau Employee, Member Posts: 264 RM Engineering
    edited April 2021

    The failing code is first asking the jdbc driver if the last date value was null and if not is reading the value.

    Can you try to disable parallel execution, to rule out some concurrency issue with the jdbc driver?
    To disable parallel execution go through the parent operators click on "Show advanced parameter" and deselect "enable parallel execution".

    Otherwise you could use the DB2 VARCHAR_FORMAT function to convert the date/time/timestamp columns to string until a patch is available.

  • LogicalObserverLogicalObserver Member Posts: 4 Learner I
    @jwpfau, thanks so much for the feedback. 

    I do not see an enable parallel execution on the operators I am using (please see below). Additionally, I am not able to see the columns pull through in the Read_Database sql script builder.

  • LogicalObserverLogicalObserver Member Posts: 4 Learner I
    BalazsBarany I did try using the connection details with SQLSquirrel as well as DBeaver.

    I am able to successfully connect to the database from both of those clients using the same driver I have added in Rapidminer as below: (jt400-10.5.jar)
  • LogicalObserverLogicalObserver Member Posts: 4 Learner I
    @jwpfau That worked perfectly!!! Thank you so much!!! 
Sign In or Register to comment.